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
```
1. Initialize an empty one-dimensional array called "sales" of size 7 to store the sales for each day of the week.
2. Initialize a variable called "totalSales" to 0 to hold the total sales for the week.
3. Create a loop to prompt the user to enter the sales for each day of the week.
4. Within the loop, for each day of the week:
4.1. Prompt the user to enter the sales for that day.
4.2. Read the input and store it in the corresponding index of the "sales" array.
4.3. Add the sales for that day to the "totalSales" variable.
5. After the loop ends, display the total sales for the week by printing the value of the "totalSales" variable.
```
Here's the pseudocode in more detail:
```
sales <- empty array of size 7 # Initialize an empty array to store the sales for each day
totalSales <- 0 # Initialize the total sales for the week to 0
for i <- 0 to 6 do # Loop from Monday to Sunday
print "Enter the sales for day ", i+1, ": " # Prompt the user to enter the sales for that day
read sales[i] # Read the input and store it in the "sales" array at the corresponding index
totalSales <- totalSales + sales[i] # Add the sales for that day to the total sales
print "Total sales for the week: ", totalSales # Display the total sales for the week
```
Note: The pseudocode assumes that the days of the week are represented by indices 0 to 6 in the "sales" array, where 0 represents Monday and 6 represents Sunday. Adjust the code accordingly if the indexing starts from a different day or if there are more or fewer than 7 days.
2. Create a loop that will iterate 7 times (for each day of the week) and perform the following steps for each iteration:
a. Ask the user to enter the sales amount for the current day.
b. Store the entered sales amount in the sales[] array at the corresponding index (day of the week - 1).
3. Declare a variable called totalSales and initialize it to 0.
4. Create another loop that iterates over the sales[] array and performs the following steps for each element:
a. Add the value of the current sales element to the totalSales variable.
5. Display the totalSales variable, which represents the total sales for the week.
-------
Here is the pseudocode for the program:
```
DECLARE sales[7]
DECLARE totalSales
FOR i = 1 TO 7
DISPLAY "Enter sales for day " + i + ":"
INPUT sales[i-1]
ENDFOR
SET totalSales = 0
FOR i = 0 TO 6
SET totalSales = totalSales + sales[i]
ENDFOR
DISPLAY "Total sales for the week: " + totalSales
```
Note: In the pseudocode, the variable i is used as a counter for the loops. The index of the array starts from 0, so when accessing elements of the sales array, we use i-1.