Question: Q3. Write a Java program for an online retailer that would look like the following during execution: [04 Marks] For your information: The online retailer

 Q3. Write a Java program for an online retailer that would

look like the following during execution: [04 Marks] For your information: The

Q3. Write a Java program for an online retailer that would look like the following during execution: [04 Marks] For your information: The online retailer sells only five products with fixed prices as follows: In order to get full mark on this question you have to make sure to do the following: A. Write a Java application using Eclipse that do the following: 1. Request from the user to input the Product ID (i.e 1,2,3,4 or 5). 2. Request from the user to input the Product Quantity. 3. Use switch-case statement to calculate the total (i.e. total = total + product price * product quantity). 4. Your program shall run forever until the user input zero for product ID using do-while statement. B. Attach to your answers the source code. C. Attach to your answers an example run of the program (print screen of outputs). Q5. Write a Java program to enter the numbers till the user wants and at the end the program should display the largest and smallest numbers entered [04 Marks] xan= Enter the number 5 Enter the number 2 Do you want to continue Y ? Y Enter the number 10 Do you want to continue y?n Largest number =10 Smallest number =2

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!