Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Amanda Cho, a supervisor in a retail clothing store, wants to acknowledge highac

ID: 670089 • Letter: A

Question

Amanda Cho, a supervisor in a retail clothing store, wants to acknowledge highachieving salespeople.Create the pseudocode for the following:

a) A program that continuously accepts each salesperson’s first and last names, the number of shifts worked in a month, number of transactions completed this month, and the dollar value of those transactions. Display each salesperson’s name with a productivity score, which is computed by first dividing dollars by transactions and dividing the result by shifts worked. Display three asterisks after the productivity score if it is 50 or higher.

b) A program that accepts each salesperson’s data and displays the name and a bonus amount. The bonuses will be distributed as follows:

If the productivity score is 30 or less, the bonus is $25.

If the productivity score is 31 or more and less than 80, the bonus is $50.

If the productivity score is 80 or more and less than 200, the bonus is $100.

If the productivity score is 200 or higher, the bonus is $200.

Explanation / Answer

while n<100:

enter firstname f

enter lastname f

enter number of shifts worked s

enter number of transactions t

enter dollar value of transactions val

productivity score=val/t

productivity score=productivity score/s

if productivity score>50

display productivity score "***"

end if

else   display productivity score

end else

end while

end

2nd

INPUT salespersons data

if data.productivity score<=30

bonus =25

else if data.productivity score<80

bonus=50

else if data.productivity score<200

bonus=100

else

bonus=200

end else

display data.fname

display data.lname

display bonus

END

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote