Question: Modify the algorithm shown earlier in Figure 1-5 so that it gives a 25% discount if the customer buying a TV is an employee of
Modify the algorithm shown earlier in Figure 1-5 so that it gives a 25% discount if the customer buying a TV is an employee of the store; all other customers buying a TV should receive a 15% discount.
Figure 1-5
repeat for (each customer buying a TV)
enter the original price of the TV
calculate the discount by multiplying the original price by 15%
calculate the total due by subtracting the discount from the original price
print a bill showing the original price, discount, and total due
end repeat
Step by Step Solution
3.44 Rating (160 Votes )
There are 3 Steps involved in it
repeat for each customer buying a TV enter the original price of the TV if the custom... View full answer
Get step-by-step solutions from verified subject matter experts
