Create an application in java
Problem: A website sells three products whose retail prices are as follows: product 1, $2.98; product 2 $4.50; and product 3, $9.98.
Part 1: Write an application that reads a series of pairs of numbers as follows: 1) product number 2) quantity sold
Part -2: Your application should use a switch statement to determine the retail price for each product.
Part -3: It should calculate and display the total retail value of all products sold.
Part -4: Use a sentinel-controlled loop to determine when the application should stop looping display the final results. Solve this problem and provide the full code.