Uses a switch statement to compute your last semester gpa

Assignment Help Computer Engineering
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.

Reference no: EM132196192

Questions Cloud

Write a program to calculate the hashing table of input data : Write a program to calculate the hashing table of input data. The program reads from the standard input the table size k.
Determine the evolution of the concentration : Determine the evolution of the concentration of A within the container. In the second part, repeat it but this time consider that A reacts with B according
Was communism in many ways no different than nazism : 1. Was Communism in many ways no different than Nazism? Discuss.
Why did japanese soldiers fight to the death : How did Social Darwinism play into German policy towards the Jews and other subject peoples?
Uses a switch statement to compute your last semester gpa : Write a program that uses a do... while loop to display all the even numbers from 1 to 30.
Secure equal rights for all people in america at this time : What kind of plan would be best to secure equal rights for all people in America at this time?
Display the contents of a file in curses mode : If the contents of the file are too big to fit on the screen, then your program needs to allow the user to scroll through the output.
Create a 2-d array that are populated by random numbers : Write a C++ program that creates a 2-dimensional array of 10x5 elements that are populated by random numbers between 0 and 49.
Women in pre-modern christian societies like : What were the lives like for women in Pre-Modern Christian Societies like?

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is a microprocessor

What is a microprocessor. Besides computers, what other products have microprocessors. What current household products that do not contain microprocessors do you think will contain microprocessors in the next 20 years. Why

  Identify the telecommunications service

Identify the telecommunications service, and be sure to list the particular details concerning the service. Explain your reasoning.

  Provide subclasses serial and parallel

Provide subclasses Serial and Parallel, each of which contains an ArrayList. A Serial circuit models a series of circuits, each of which can be single resistor.

  Cloud computing to the rescuewrite a two to three 4-5 page

cloud computing to the rescuewrite a two to three 4-5 page paper in which you1. describe the hardware software and

  Appraise the individual and organizational consequences of

compare and contrast the mis in place in two distinctly different organizations.nbspcompare each organizations usenbsp

  Create a seating reservation program for podunk airlines

Create a seating reservation program for Podunk Airlines. The air fleet consists of a single plane with a seating capacity of 12.

  Java program to declare an integer array and initializing it

Write down a complete Java program that declares an integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, and 7}. The program must have the following methods:1) void displayOddPositions (). This method displays array elements in the odd..

  Create a trigger for auditing

Create a trigger for auditing ?create trigger audit_customers on the Custoners table.

  To compute the sum of the values in an array

To compute the sum of the values in an array, add the first value to the sum of the remaining values, computing recursively.

  Write down an application that plays "guess the number"

Write an application that plays "guess the number" as follows: Your application chooses number to be guessed by selecting an integer at random in range 1-1000.

  Calculate the values you will have to use linear algebra

To calculate the values, you will have to use linear algebra. For that you can use the python library called numpy

  What is the lumpiness of segmented markets

What is the Lumpiness of segmented markets and how can they be overcome explain with an example? What are the other features that relates to technology.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd