The management of Good Name Company Limited decided to pay a bonus of 15.4% of total sales to every salesperson of the company who made total sales of GHS 1,000.00 or more in a week.

a) Devise an algorithm for the program, which will compute and display the bonus of each salesperson of the company. The program should prompt the user to enter the sales values at a time for each day in the week.

b) Develop a flowchart for the algorithm.

day = ["Sunday",...,"Saturday"]

for each person {
print "name:"
read name
sales=0
for i=1..7 {
print day[i]," sales: "
read s
sales += s
}
bonus = (sales >= 1000) ? 0.154*sales : 0
print name,sales,bonus
}