Question: Hi, please help me solve the problem, thanks. Question 6 An electronics shop has announced the following seasonal discounts on the purchase of certain items.

Hi, please help me solve the problem, thanks.

Hi, please help me solve the problem, thanks. Question 6 An electronics

Question 6 An electronics shop has announced the following seasonal discounts on the purchase of certain items. Purchase Amount Discount on Laptop Discount on Desktop PC 0-250 0.0% 5.0% 251 - 570 5.0% 7.6% 571 - 1000 7.5% 10.0% More than 1000 10.0% 15.0% Write a program based on the above criteria to input name, address, amount of purchase and type of purchase (L for Laptop and D for Desktop) by a customer. Compute and print the net amount to be paid by a customer along with his name and address. (20 Marks) Discount = (discount rate/100)* amount of purchase Net amount = amount of purchase discount Sample output: Enter name: Bella Enter address: Dunearn Enter amount of purchase: $560 Enter type of purchase (L for Laptop/D for Desktop): L Name: Bella Address: Dunearn Net amount: $ 532.00 Do you wish to continue purchase: Y Enter name: Jacob Enter address: Bugis Enter amount of purchase: $800 Enter type of purchase (L for Laptop/D for Desktop): Invalid type of purchase. Do you wish to continue purchase: Y Enter name: Jacob Enter address: Bugis Enter amount of purchase: $800 Enter type of purchase (L Tor Laptop/D Tor Desktop): D Name: Jacob Address: Bugis Net amount: $720.00 Do you wish to continue purchase: m You have exit purchase screen, Goodbye

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!