Question: Write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment,
Write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses, and the total annual cost of these expenses.
Using the following test data: 310.34 104.95 78.34 12.34 8.12 45.00
Your output should look like this: Enter the monthly loan payment amount:
Enter the monthly cost of insurance:
Enter the monthly cost of gas:
Enter the monthly cost of oil:
Enter the monthly cost of tires:
Enter the monthly cost of maintenance:
The total monthly cost is $559.09. The total annual cost is $6709.08.
This is C++ and use visual studio 2017 please.
Use blank lines to separate the major parts of your main function. And show your output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
