char quitKey;
//Delay
cout << "Press any key and Enter to end program: ";
cin >> quitKey;
//End of Program
return 0;
}
// Function to get Loan Payment Cost
float getLoanPayment()
{
float loanPaymentCost;
cout << "Enter the Loan Payment Cost and press ENTER" << endl;
cin >> loanPaymentCost;
//return result
return loanPaymentCost;
}
// Function to get Insurance Cost
float getInsurance()
{
float insuranceCost;
cout << "Enter the Insurance Cost and Press Enter" << endl;
cin >> insuranceCost;
//return result
return insuranceCost;
}
// Function to get Gas Cost
float getGas()
{
float gasCost;
cout << "Enter the gas cost and Press Enter" << endl;
cin >> gasCost;
// return result
return gasCost;
}
// Function to get Oil cost
float getOil()
{
float oilCost;
cout << "Enter the oil cost and press Enter" << endl;
cin >> oilCost;
// return result
return oilCost;
}
// Function to get Tires Cost
float getTires()
{
float tiresCost;
cout << " Enter the tire cost and press Enter" << endl;
cin >> tiresCost;
// return result
return tiresCost;
}
// Function to get Maintenance cost
float getMaintenance()
{
float maintenanceCost;
cout << " Enter the maintenance cost and press Enter" << endl;
cin >> maintenanceCost;
// return result
return maintenanceCost;
}
void showResult(float loanPaymentCost, float insuranceCost, float gasCost, float oilCost, float tiresCost, float maintenanceCost)
{
//Display all the purchase amount, state tax, county tax, total tax, and total of sale
cout << "Loan Payment Cost= " << loanPaymentCost << endl;
cout << "Insurance Cost = " << insuranceCost << endl;
cout << "Gas Cost = " << gasCost << endl;
cout << "Oil Cost = " << oilCost << endl;
cout << "Tires Cost = " << tiresCost << endl;
cout << "Maintenance Cost= " << maintenanceCost << endl;
}