3. A company sells five different products with prices shown in the following table Product Number Retail Price Unit (RM) 1 15.50 19.25 14.75 25.00 5 12.20 Write a program using switch-case statement...


3. A company sells five different products with prices shown in the following table<br>Product Number<br>Retail Price Unit (RM)<br>1<br>15.50<br>19.25<br>14.75<br>25.00<br>5<br>12.20<br>Write a program using switch-case statement that reads the product number and<br>number of units sold and display the amount to be paid.<br>Sample of the output shown as below<br>Please enter a product number: 5<br>Quantity : 4<br>Total amount to be paid: RM48.80<br>234<br>

Extracted text: 3. A company sells five different products with prices shown in the following table Product Number Retail Price Unit (RM) 1 15.50 19.25 14.75 25.00 5 12.20 Write a program using switch-case statement that reads the product number and number of units sold and display the amount to be paid. Sample of the output shown as below Please enter a product number: 5 Quantity : 4 Total amount to be paid: RM48.80 234

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here