Answer to Question #25614 in C++ for red rose

Question #25614
1. Based on an automobile's model year and weight, the state of New Jersey determines the weight class and registration fee by using the following schedule:

Model Year Weight Weight Registration
Class Fee
----------------------------------------------------------------
1970 or earlier Less than 2700 lbs 1 $16.50
2700 to 3800 lbs 2 $25.50
More than 3800 lbs 3 $46.50
----------------------------------------------------------------
1971 to 1979 Less than 2700 lbs 4 $27.00
2700 to 3800 lbs 5 $30.50
More than 3800 lbs 6 $52.50
----------------------------------------------------------------
1980 or later Less than 3500 lbs 7 $19.50
3500 or more lbs 8 $52.50

Using this information, write a C++ program that accepts an automobile's year and weight and determines and displays its weight class and registration fee.

2. Write a C++ program that accepts a character as input data and determines whether the character is an uppercase letter. An uppercase letter is any character that's greater than or equal to "A" and less than or equal to "Z". If the entered character is an uppercase letter, display the message "The character is an uppercase letter". If the entered letter isn't uppercase, display the message "The character just entered is not an uppercase letter".

3. As a part-time student, you took two courses last term. Write a C++ program that calculates and displays your grade point average (GPA) for the term. Your program should prompt the user to enter the grade and credit hours for each course. This information should then be displayed with the lowest grade first, and the GPA for the term should be calculated and displayed. A warning message should be printed if the GPA is less than 2.0 and a congratulatory message if the GPA is 3.5 or above.

SAMPLE OUTPUT:

Subject 2: Grade - 0.0 Credit - 3

Subject 1: Grade - 3.0 Credit - 3

Your GPA is 1.5
Warning! Your GPA sucks!



4. Write a C++ program that accepts three numbers as input, and then sorts the three numbers and diplays them in ascending order. Eg: if the input values are 8 6 4, the program should display them in the numerical order 4 6 8.
1
Expert's answer
2013-03-04T09:42:03-0500

Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
03.11.14, 15:53

Dear visitor, please use panel for submitting new questions

Assignment Expert
03.11.14, 15:53

Dear visitor, please use panel for submitting new questions

lama
01.11.14, 12:50

Write a Complete C++ program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is $500. There is a surcharge of $100 if the driver is under 25 and an additional surcharge for the number of accidents:

lama
01.11.14, 12:50

Write a Complete C++ program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is $500. There is a surcharge of $100 if the driver is under 25 and an additional surcharge for the number of accidents:

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS