Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

6. Use short-range goals to assist in achieving long-range goals.

Answered: 1 week ago