Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. (15 points) Suppose you are writing a program to calculate your final score for CSE1310 class and assign a letter grade based on

9. (15 points) Suppose you are writing a program to calculate your final score for CSE1310 class and assign a

9. (15 points) Suppose you are writing a program to calculate your final score for CSE1310 class and assign a letter grade based on your final score. As you know, in your CSE1310 class, assignments make up 30% of the grade, class tests make up 40% of the grade, and benchmark quizzes are worth 30% of the grade. Write a program that asks the user to enter three integers (the class test score, benchmark quiz score and assignment score on a scale 0-100). Your program should calculate the final score based on the grading scheme mentioned above and display the final score and corresponding letter grade based on the following rules: If the grade is between 90 and 100 inclusive, print an "A" If the grade is between 80 and 89 inclusive, print a "B" If the grade is between 70 and 79 inclusive, print a "C" If the grade is between 60 and 69 inclusive, print a "D" If the grade is between 50 and 59 inclusive, print an "E" If the grade is less than 50, print an "F" In the example outputs shown below, user inputs are marked in blue Example Output 1: Please enter your class test score (0-100): 92 Please enter your benchmark quiz (0-100): 90 Please enter your assignment (0-100):95 Final score 92 Letter Grade A

Step by Step Solution

3.43 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

9 include using namespace std int main declare variables int testScore benchmarkQuiz assignment fi... 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

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions