question archive An online retailer sells five products whose retail prices are as follows: Product 1, $2
Subject:MathPrice: Bought3
follows: Product 1, $2.98; Product 2, $4.50; Product 3, $9.98; Product 4, $4.49; Product 5, $6.87. Write Matlab program that reads a series of pairs of numbers as follows: a) Product number b) Quantity sold Your program should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the program should stop looping and display the final results.