Asked by Boye
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.
Answers
Answered by
oobleck
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
}
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
}
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.