Write a flowgorithm program to calculate the total sales for the week and display the result.

preview_player
Показать описание
The student's programming assignment.
Submit the flowchart in Flowgorithm that solves the following exercise.

Description:
Design a program using Flowgorithm or any flowcharting software that asks the user to enter a store's sales for each day of the week. The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result.
PSEUDOCODE AND FLOWCHART IS REQUIRED FOR THIS CLASSWORK.

#SolveMyProgrammingTask
#flowgorithm
Рекомендации по теме
Комментарии
Автор

PSEUDOCODE
// Initialize an array to store sales for each day of the week
Declare Real sales[7]
Declare Real totalsales
Declare Integer i

// Initialize total sales variable
Set totalsales = 0

// Loop through each day of the week
For i = 0 To 6

// Prompt user for sales amount for the current day
Display "Enter sales for Day ", i + 1, ": $"
Input sales[i]

// Add sales amount to total_sales
Set totalsales = totalsales + sales[i]
End For

// Display total sales for the week
Display "Total sales for the week: $", totalsales

SolveMyProgrammingTask