Asked by Alejandro
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
Answered by
Steve
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
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.