View the step-by-step solution to:

add at least 1 menu to the following pseudocode // a program that calculates a stores sales for the entire week. // variables:...

// a program that calculates a stores sales for the entire week.

// variables: day1,day2,day3,day4,day5,total

Declare integer day1,day2,day3,day4.day5,total

// variable: array

Declare array with length 5.

//Display the message to user, get that input and store it in a variable.

Display "Prompt user for their sales for Monday:"

Input day1

//store day1 value in array

Array: day1 at index 0

Display "Prompt message for Tuesday:"

Input day2

//store day2 value in array

Array: day2 at index 1

Display "Prompt message for Wednesday:"

Input day3

//store day3 value in array

Array: day3 at index 3

Display "Prompt message for Thursday:"

Input day4

//store day4 value in array

Array: day4 at index 4

Display "Prompt message for Friday:"

Input day5

//store day5 value in array

Array: day5 at index 5

// use for-loop to check valid input

For: i to 5-1 //where i is 0

IF array[i] <= 0

Display "Day"+(i+1)+"has to be greater than 0"

RETURN

ENDIF

End for-loop

//Calculate the total entered

Call calculateTotal()

//let user know the total is

Display "Your total for the week is", total

//declare total as integer

Declare integer total

//Prompt user for total

Display "Enter total"

Input total

//decide if total meets store standards

...Display "total does not meets goal"

Else

...Display "total meets goal"

End If

Module calculateTotal()

Total=day1+day2+day3+day4+day5

End Module

Module Menu: DO Print "Menu option" ; Print "1) get input" ; Print "2) Calculate total" Print "3)... View the full answer

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.

-

Educational Resources
• -

Study Documents

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

Browse Documents