Store bonuses: If store sales are $80,000 or more, store bonus is $3000 If store sales are $90,000 or more, store bonus is $4000 If store sales are $100,000 or more, store bonus is $5000 If store sales are $110,000 or more, store bonus is $6000 Employee bonuses: If percent of increase is 3% or more, employee bonus is $40 If percent of increase is 4% or more, employee bonus is $50 If percent of increase is 5% or more, employee bonus is $75 Step 3: Modify Module 5 by adding an if statement that will print a message if both the store bonus and the employee bonus are the highest amounts possible. (Reference: Logical Operators, page 147). //MODULE 5 //this module will display store and employee bonus info. Module printBonus(Real storeAmount, Real empAmount) Display “The store bonus is $”, storeAmount Display “The employee bonus is $”, empAmount If storeAmount == _____ AND empAmount == _____ Then Display “Congrats! You have reached the highest bonus amounts possible!” End If End Module
Store bonuses:
If store sales are $80,000 or more, store bonus is $3000
If store sales are $90,000 or more, store bonus is $4000
If store sales are $100,000 or more, store bonus is $5000
If store sales are $110,000 or more, store bonus is $6000
Employee bonuses:
If percent of increase is 3% or more, employee bonus is $40
If percent of increase is 4% or more, employee bonus is $50
If percent of increase is 5% or more, employee bonus is $75
Step 3: Modify Module 5 by adding an if statement that will print a message if both the store bonus and the employee bonus are the highest amounts possible. (Reference: Logical Operators, page 147).
//MODULE 5
//this module will display store and employee bonus info.
Module printBonus(Real storeAmount, Real empAmount)
Display “The store bonus is $”, storeAmount
Display “The employee bonus is $”, empAmount
If storeAmount == _____ AND empAmount == _____ Then
Display “Congrats! You have reached the highest bonus amounts possible!”
End If
End Module
Trending now
This is a popular solution!
Step by step
Solved in 3 steps