Design a simple program that asks the user to enter a store's sales for each day of the week. The amounts must be stored in an array using a loop - see below. Use another loop to calculate the total sales for the week and display the result. Also calculate the average of the daily sales and report that. Notes A loop structure with a single input instruction must be used to populate the array with the user's entries for the daily sales amounts After the user has entered the daily sales amounts, a separate loop must be used to accumulate the daily amounts into the total sales for the week Report out an average daily sales amount in addition to the total sales for the week. Submit a pseudocode file.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.2: Formatting Numbers For Program Output
Problem 9E: (Electrical eng.) The combined resistance of three resistors connected in parallel, as shown in...
icon
Related questions
Question
100%

Design a simple program that asks the user to enter a store's sales for each day of the week. The amounts must be stored in an array using a loop - see below. Use another loop to calculate the total sales for the week and display the result. Also calculate the average of the daily sales and report that.

Notes

  • A loop structure with a single input instruction must be used to populate the array with the user's entries for the daily sales amounts
  • After the user has entered the daily sales amounts, a separate loop must be used to accumulate the daily amounts into the total sales for the week
  • Report out an average daily sales amount in addition to the total sales for the week.

Submit a pseudocode file.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT