In this exercise, you will create a program that allows the user to enter an unknown number

Question:

In this exercise, you will create a program that allows the user to enter an unknown number of sales amounts for each of three car dealerships: Dealership 1, Dealership 2, and Dealership 3. Use a three-element double array to accumulate each dealership’s sales amounts. The program should calculate the total sales and the percentage that each dealership contributed to the total sales. Display the total sales with a dollar sign and two decimal places. Display each percentage with one decimal place and a percent sign. If necessary, create a new project named Advanced35 Project and save it in the Cpp8\Chap11 folder. Enter your C++ instructions in a new source file named Advanced35.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Save and then run the program. Use the following sales amount for Dealership 1: 23000 and 15000. Use the following sales amounts for Dealership 2: 12000, 16000, 34000, and 10000. Use the following sales amounts for Dealership 3: 64000, 12000, and 70000. (Due to rounding, the percentages may not add up to exactly 100%.)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: