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
![look like the following during execution: [04 Marks] For your information: The](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f973640d3c1_03566f97363a3094.jpg)
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 onlv five products with fixed prices as follows: In order to get full mark on this question you have to make sure to do the tollowing: 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 4.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). Q4. Write a Java program that reads any odd integer between 100 and 1000 and compute the product of all the digits in the integer number. Q5. Write a Java program to read the numbers till the user enters zerol0) and at the end [04 Marks] the program should display the sum of all numbers entered Iest Dega [04 Marks] Input an bdd integer between 10 and 1000: 555 Solution: - Expencted outout. The sum of all digits in 555 is 625 E. 9.55=625 Solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
