final double YearDep= 0.15; //this is for each year a car loses of the value before
double HybridDepreciation= HybridCarCost * Math.pow(1-YearDep,5);
double HybridFuelCost=(Miles*5*GasCost)/HybridCarMPG;
double GasPowerDepreciation=GasPowerCost * Math.pow(1-YearDep,5);
double GasPowerFuelCost=(Miles *5*GasCost)/GasPowerMPG;
double HybridTotalCost=HybridCarCost - HybridDepreciation + HybridFuelCost;
double GasPowerTotalCost= GasPowerCost - GasPowerDepreciation + GasPowerFuelCost;
System.out.printf("The total cost for the " + HybridName + " " + "is" +" $"+ HybridTotalCost);
System.out.println();
System.out.printf("The total cost for the " + GasPowerName + " "+ "is" + " $"+ GasPowerTotalCost);