Question
Design a program that asks the user to enter a store's sales for each day of the week. The amounts should be stored in an one dimensional array. use loop to calculate the total sales for the week and display the results. (In Pseudocode)
Answers
days = ("Sunday",...,"Saturday")
total=0
for i=1..7
display days[i]
read amt[i]
total += amt[i]
end for
for i=1..7
display days[i],amt[i]
end for
display "TOTAL:",total
total=0
for i=1..7
display days[i]
read amt[i]
total += amt[i]
end for
for i=1..7
display days[i],amt[i]
end for
display "TOTAL:",total
Related Questions
write a program that asks the user to enter today's sales rounded to the nearest $100 for each of th...
how do you design a program that asks the user to enter a store's sales for each day of the week. th...
A software company sells a package that retails for $99. Quantity
discounts are given below:
Quant...