Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started