Modify the algorithm shown earlier in Figure 1-5 so that it gives a 25% discount if the
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 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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: