Program: Write the program OrderCalculator.java.
When your program begins you must display a description of the program for the user and what inputs the user will be required to enter.
OrderCalculator
A mail-order company sells five products whose retail prices are as follows:
- Product 1 $2.98
- product 2 $4.50
- product 3 $9.98
- product 4 $4.49
- product 5 $6.87.
Prepare an application that reads a series of pairs of numbers as given:
Part 1: product number (must be a number in the range of 1-5 or the sentinel value. use a validation loop)
Part 2: quantity sold
Your program should use a switch statement to find the retail price for each product.
It should display and calculate the total number of items purchased and the retail value of the items purchased..
Use a sentinel-controlled loop to decide when the program should stop looping and show the final output.