In: Computer Science
A local department store is having a BOGOHO (Buy One, Get One Half Off) sale. The manager wants a program that allows salesclerks to enter the prices of two items. The program should calculate and display the total amount the customer owes. The half-off should always be taken on the item having the lowest price. If the items cost $24.99 and $10, the half-off would be taken off the $10 item. If both prices are equal, take the half-off on the second item.
a) Make an IPO Chart for the problem than desk-check the algorithm twice. For the first desk-check, use 24.99 and 10 as the prices. For the second check use 11.50 and 30.99.
b) List the input, processing, and output items, as well as the algorithm, in a chart. Then code the algorithm into a program.
c) Desk-check the program using the same data used to desk-check the algorithm.
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
Kindly revert for any queries
Thanks.