Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions and problem statement * A college professor needs a soultion to compute a student's final letter grade. Each student has scores for three exams.

image text in transcribed
Instructions and problem statement * A college professor needs a soultion to compute a student's final letter grade. Each student has scores for three exams. The rubrie to be used is: -If the final grade is greater than 88, the student earns an A -It the final grade is greater than 78, but less than 89, the student earns a B If the final grade is greater than or equal to 69, but less than 79, the student earns ac -If the final grade is greater than 58, but less than or equal to 68, the student earns a D * -If the final grade is less than 59, the student is awarded an F * The solution must first compute a student's final average, after obtaining all three scores. The final average will then be submitted to the rubric, and the final output will be the letter grade Complete the progran by writing the correct C++ statements. . You should execute the program five time to make sure that all letter grades (A, 3.C,0,1) possible. Save a screenshot for each instance of the program's execution, and include them in your report. Name: YOUR NAME HERE, YOUR DRES 1/ write the appropriate include statement // write the appropriate using statement // Declare a method named printResults which receives 4 Integers and a character as parameters, 1/ and has no return value. This is the method's prototype Declare method naned personal info which has no parameters and no return value. // This is the method's prototype. int main Weite the statement that declares the integer variables 1/ finalAverage, scorel, score2, score) and Initializes them to a Nrite the statement that declared the character variable // lettergrade and initializes it to X W Pronpt the user to enter the three test scores, saving the 1 values in the appropriate variables. // Use the phrase "inter the score for test 11 1/ Then change the number to 2 and respectively 11 compute the final average and analyn the value to the correct variable // Using an if / else 1t/else selection control structure 1 implement the rubrio to obtain the correct value for the letter grade 11 and store the value in the appropriate variable. Your structure should only ask questions, that is nelade onay 11 four simple conditions. // call the print Results method 11 call the personal info method nyetem pune // for Vad udio only roturn 0; The printResults method receives Integers and a character as parameters, W and has no return value. It prints the phrase 1 "The student with test scores textil, test2), and test) 1/ scored a final average of (average and earned arn) grade). W Use testi, test2, test, average, and grade as the labela 1/ for the parameters // The personal Info method has no parameters and no return value. W It prints the phrase "Program developed by YOUR NAME), ID YOUR ID NUMBER" // where the square brackets and the text within a substitued with 1/ your personal information

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Frauds Of The Past Lessons For The Future A Student Led Journey Through The World Of Auditing

Authors: Dr. Manjari Sharma, Mr. Pragadeesh SP, Mr. Sivanaresh A

1st Edition

B0CGKRP289, 978-6206753247

More Books

Students also viewed these Accounting questions

Question

Does it have correct contact information?

Answered: 1 week ago