Reference no: EM132196192
Write a C++ program for the following:
a) Write a program that uses a switch statement to compute your last semester gpa.
b) Write a program that uses a do... while loop to display all the even numbers from 1 to 30.
c) Write a program that gets the cos(theta) and the quadrant in which the angle is in and displays the angle in degrees. Your program should use a swith statement. For example: if cos(theta) = -0.5 and (theta) is in quadrant ll, then (theta) - 120 degrees.
d) A mail order house sells 5 different products whose retail prices are: Product 1 ($2.98), Product 2 ($4,50), Product 3 ($9.98), Product 4 ($3), and Product 5 ($1). Your program should use a switch statement to determine the retail price for each product.
Your program 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.