View the step-by-step solution to:

# create flowchart for the following pseudocode // a program that calculates a stores sales for the entire week. // variables:

create flowchart for the following pseudocode

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

//varaible : 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 vadid input

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

IF arra[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 what 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 meet goal"

Else

...Display "total meets goalEnd If

Module  calculateTotal()

End Module

Flowchart is used to show the flow of program. In flowchart, input, output and decision making have different... 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