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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started