Answered step by step
Verified Expert Solution
Link Copied!

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

Starting Out With Java From Control Structures Through Data Structures

Authors: Tony Gaddis

6th Edition

0133957055, 978-0133957051

More Books

Students also viewed these Programming questions

Question

What is the effect of word war second?

Answered: 1 week ago

Question

Describe the limitation of static methods.

Answered: 1 week ago