Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Code salescpp include iostream using namespace std int main double s72t0 declared ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started