To write a C++ program that:
Gets us started programming in C++
Utilizes the selection (if, if..else) construct.
Program Description :
Write a C++ program that performs the following tasks:
1. Prompts the user for three grades: a midterm grade, a project average, and a paper grade.
Please enter your midterm grade:
->
Please enter your project average:
->
Please enter your paper grade:
->
2. Indicates which of the three is the highest grade so far.
"Your highest grade is at XX%
where
::= "midterm" | "project" | "paper"
3. Indicates which of the three is the lowest grade so far:
"Your lowest grade is at XX%
where
::= "midterm" | "project" | "paper"
4. Computes the student's current overall average and displays it. The midterm counts 20%, the project average counts 30%, and the paper average counts 25%.
"Your current average is XX%"
5. Computes the minimum grade that the user would need to make on the final exam to receive a 70% for the course. The final is worth 25% of the course grade. Note that three outcomes are possible. Through tests on the exam score needed, you can determine and display one of the following:
"You need to make a grade of XX% on the final to have 70% for the course"
"You do not need to take the final to earn 70% for the course"
"No matter what you get on the exam, you cannot earn 70% for the course"
Notes:
Please create a brief document that names and describes all variables you declare in your program and indicates why you made them the data types you did.
Apply algebra to think of how to solve for the percentage needed to attain a 70% average overall.
Assume that the grades that are input are legal - on the range from 0 to 100. We will study how to do error checking later.