Question
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
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. Please copy and paste the output. Thank you very much! This is my first time taking a computer methods class so I am struggling. If you could help, I would really appreciate it!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started