Flowchart please
Module Main()
// Create an array to hold the sales for six days.
Constant Integer SIZE = 6
Declare Real sales[SIZE]
// Get the sales.
Call getSales(sales, SIZE)
// Display the total sales.
Call showTotal(sales, SIZE)
End Module
// getSales module
Module getSales(Real Ref sales[], Integer size)
Declare Integer index // Loop counter
// Get the sales for a week.
For index = 0 To size - 1
Display "Enter the sales for day #", index + 1
Input sales[index]
End For
End Module
// showTotal module
Module showTotal(Real sales[], Integer size)
Declare Integer index // Loop counter
Declare Real total = 0 // Accumulator
// Calculate the total.
For index = 0 To size - 1
total = total + sales[index]
End For
// Display the total.
Display "The total sales are ", currencyFormat(total)
End Module
Flowchart please

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









