Scenario: \"Flowers Forever\" wants a program that the clerks can useto calculat
ID: 3614756 • Letter: S
Question
Scenario: "Flowers Forever" wants a program that the clerks can usetocalculate and display each salesperson's annual bonus. The clerkwill need
to enter the salesperson's name and sales. The application shouldcalculate
the bonus based on the amount of sales as follows:
SALES BONUS
0-3000 0
3001-5000 50
5001-9999 100
10000+ 250
The program should echo input and output the calculated bonus. Calla function
to do the calculations. Turn in PDL, Code and sample data andresults.
Explanation / Answer
Dear User,Here contain pseudocode get salesperson
get salesamount
output "Calculating bonus for "+salesperson+" based on$"+salesamount+" in sales..."
thebonus= calcbonus(salesamount)
output "The bonus would be $"+thebonus function calcbonus(sales)
bonusamount= 0 //always good to initialize
if (sales <= 3000) then bonusamount= 0
if (sales > 3000 and sales <= 5000) then bonusamount= 50
if (sales > 5000 and sales < 10000) then bonusamount= 100
if (sales >= 10000) then bonusamount= 250
return bonusamount ITS HELPFUL TO YOU....
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.