Question: Write an algorithm and a C++ program that asks the user to enter a store's sales for each day of the week. The amounts

Write an algorithm and a C++ program that asks the user to 

Write an algorithm and a C++ program that asks the user to enter a store's sales for each day of the week. The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result. Use a function to sort the sales in ascending order. Display the results as shown the following sample output. Sample output: Enter the sales for day 1: $10455 Enter the sales for day 2: $9078 Enter the sales for day 3: $12846 Enter the sales for day 4: $11611 Enter the sales for day 5: $8972 Enter the sales for day 6: $13488 Enter the sales for day 7: $10187 Total Sales: $76637 Day 5 2 7 Sales 8972 9078 10187 10455 11611 12846 13488

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Code salescpp include iostream using namespace std int main double s72t0 declared ... 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 Programming Questions!