Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lestion 10 of 16 Create a solution that accepts an integer input representing the score earned on a test. Output the letter grade basea u

image text in transcribed

Lestion 10 of 16 Create a solution that accepts an integer input representing the score earned on a test. Output the letter grade basea u the following grading scale: - If the score is greater than 90 (including 90), the letter grade is 'A'. - If the score is between 80 and 90 (including 80 ), the letter grade is " B ". - If the score is between 70 and 80 (including 70 ), the letter grade is " C ". - If the score is between 60 and 70 (including 60 ), the letter grade is " D. - If the score is less than 60 , the letter grade is "F". Additionally, output a teacher comment only during the following circumstances: - If the score is exactly 100, the teacher comment is 'Great work!" - If the score is less than 60 , the teacher comment is "Try again." The solution output should be in the format letter_grade optional_teacher_comment Sample Input/Output: If the input is 78 then the expected output is Alternatively, if the input is 45 then the exnected output is Innit to nunaram

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

Students also viewed these Databases questions

Question

What is rent seeking, and how is it related to regulatory capture?

Answered: 1 week ago

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago