View the step-by-step solution to:


Based on the scenario you selected in the Module 01 Course Project - Overview, the additional

statements added in Module 02 Course Project, Module 03 Course Project, and Module 04 Course Project, you must now add at least 1 array to your program.

You need to submit updated documentation of this addition that includes the following:

  • Pseudocode that illustrates all calculations and a swap module(s).
  • Your updated flowchart must depict each step in the program, including the swapping.
  • All symbols must be connected by arrows that represent the flow of the program. The flow must make logical sense.
  • Your revised flowchart must illustrate the logic of your input validation loop.

I need to add to my current project I've attached my flowchart too

Pseudo Code:

1.        Module main()

2.            //Declare variables

3.            Declare total_Sales

4.            Declare mon_Sales

5.            Declare tues_Sales

6.            Declare wed_Sales

7.            Declare thur_Sales

8.            Declare fri_Sales

9.            Declare sat_Sales

10.         Declare sun_Sales

11.         Declare salesReturn

12.         Set total_Sales = 0

13.         Set mon_Sales = 0

14.         Set tues_Sales = 0

15.         Set wed_Sales = 0

16.         Set thur_Sales = 0

17.         Set fri_Sales = 0

18.         Set sat_Sales = 0

19.         Set sun_Sales = 0

20.         Set salesReturn = 0


22.         //Get daily sales for each day of the week separately

23.         Display "Input how many sales you had for Monday?"

24.         Input mon_Sales

25.         Display "Input how many sales you had for Tuesday?"

26.         Input tues_Sales

27.         Display "Input how many sales you had for Wednesday?"

28.         Input wed_Sales

29.         Display "Input how many sales you had for Thursday?"

30.         Input thur_Sales

31.         Display "Input how many sales you had for Friday?"

32.         Input fri_Sales

33.         Display "Input how many sales you had for Saturday?"

34.         Input sat_Sales

35.         Display "Input how many sales you had for Sunday?"

36.         Input sun_Sales

37.         //Display number of returns

38.         Display "Input number of returns for the entire week."

39.         Input salesReturn

40.         Call calculateSales()


42.     Module calculateSales()

43.     //Calculate how many sales the user had for the week

44.     Display "Input the number of returns to the store."

45.     Input salesReturn

46.     //Make sure the total number of returns is not less than 0

47.     While returns < 0

48.         Display "ERROR: the total number of returns cannot be less than 0."

49.         Display "Enter the correct number of returns."

50.         Input salesReturn


52.     If there were > 10 sale returns to the store Then

53.         Set total_Sales = (Set mon_Sales + Set tues_Sales + Set wed_Sales + Set thur_Sales + Set fri_Sales + Set sat_Sales + Set sun_Sales) - salesReturn

54.         Display "Your weekly sales were:" , total_Sales

55.     Else

56.         Set total_Sales = Set mon_Sales + Set tues_Sales + Set wed_Sales + Set thur_Sales + Set fri_Sales + Set sat_Sales + Set sun_Sales 

57.         Display "Your weekly sales were:" , total_Sales

58.         End if

59.     End Moduleflowchartproject.png


Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Software engineering tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors