Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program Description: Write a program that allows a local car company to enter their monthly sales for the first 6 months of the year.

C++

Program Description: Write a program that allows a local car company to enter their monthly sales for the first 6 months of the year.

2. Prompt the user to enter the monthly sales for each month, starting with Month 1. For example: Enter the Sales for Month 1: Enter the Sales for Month 2:

3. Store each of the monthly sales into an array.

4. Once you have the sales for all six months, display the month with the highest sales and the month with the lowest sales.

Here's an example of what the display should look like: Highest Sales: Month 2 - $35,600 Lowest Sales: Month 5 - $10,400

Of course, since the information is coming from the user, you the programmer will not know which month is which. So think of how you can determine these values (and how you can use the indexes to indicate the correct months.

5. Ask the user if they would like the program to repeat. If so, the program can restart at step 2. If not, display a good-bye message and end the program.

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

Identify who attempts to harmonize SRI practices.

Answered: 1 week ago

Question

Use a three-step process to develop effective business messages.

Answered: 1 week ago