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

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%.)

Step by Step Solution

3.31 Rating (186 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include using namespace std int main int sales34 d... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Microsoft Visual C# Introduction Questions!