Knowee
Questions
Features
Study Tools

Akulya has received her semester results. The performance in the exam is graded with letters S, A, B, C, D, E, and F. Help her to understand the mark range for a grade with respect to the mark obtained in the exam .  Input FormatRead the course nameRead the markOutput FormatPrint the course namePrint the markPrint the GradeSample InputICSE102L89Sample OutputICSE102L89A GradeInputOutputProcessing InvolvedSolution AlternativesAlgorithm/ Pseudocode

Question

Akulya has received her semester results. The performance in the exam is graded with letters S, A, B, C, D, E, and F. Help her to understand the mark range for a grade with respect to the mark obtained in the exam .  Input FormatRead the course nameRead the markOutput FormatPrint the course namePrint the markPrint the GradeSample InputICSE102L89Sample OutputICSE102L89A GradeInputOutputProcessing InvolvedSolution AlternativesAlgorithm/ Pseudocode

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The problem is asking to create a program that will determine the grade of a student based on the mark obtained in the exam. The program will read the course name and the mark as input and print the course name, the mark, and the grade as output.

Here is a simple algorithm to solve the problem:

  1. Read the course name.
  2. Read the mark.
  3. If the mark is greater than or equal to 90, then the grade is 'S'.
  4. Else if the mark is greater than or equal to 80, then the grade is 'A'.
  5. Else if the mark is greater than or equal to 70, then the grade is 'B'.
  6. Else if the mark is greater than or equal to 60, then the grade is 'C'.
  7. Else if the mark is greater than or equal to 50, then the grade is 'D'.
  8. Else if the mark is greater than or equal to 40, then the grade is 'E'.
  9. Else the grade is 'F'.
  10. Print the course name.
  11. Print the mark.
  12. Print the grade.

This algorithm uses a series of if-else statements to determine the grade based on the mark. It assumes that the mark is an integer between 0 and 100.

This problem has been solved

Similar Questions

Akulya has received her semester results. The performance in the exam is graded with letters S, A, B, C, D, E, and F. Help her to understand the mark range for a grade with respect to the mark obtained in the exam .

Branching-3Akulya has received her semester results. The performance in the exam is graded with letters S, A, B, C, D, E, and F. Help her to understand the mark range for a grade with respect to the mark obtained in the exam .  Input FormatRead the course nameRead the markOutput FormatPrint the course namePrint the markPrint the GradeSample InputICSE102L89Sample OutputICSE102L89A Grade

A student marking system receives input of student’s total mark from lecturer. If a studentgets total mark of 75 or above, the system will print ‘A’. If a student’s mark is between 65 to74, the system will print out ‘B’. While ‘C’ will be printed out if the mark is between 50 to 64.Whichever the total mark is below 50, ‘F’ will be printed

Problem StatementA computer science teacher assigned the students a programming task that calculates and displays grades based on test marks. The teacher wants the program to take a student's test mark as input and determine their grade using the following criteria:If the mark is between 90 and 100 (inclusive), assign grade A.If the mark is between 80 and 89 (inclusive), assign grade B.If the mark is between 70 and 79 (inclusive), assign grade C.If the mark is between 60 and 69 (inclusive), assign grade D.If the mark is between 45 and 59 (inclusive), assign grade E.For marks below 45 assign grade F.If the mark is greater than 100 or a negative number, it displays "Invalid input". Help the students to accomplish the given task.Note: This question helps in clearing AMCAT exam.Input format :The input consists of a single integer, representing the student's mark.Output format :The output displays "Grade: " followed by the grade for the given mark based on the given criteria.If the mark is greater than 100 or a negative number, the output displays "Invalid input".Refer to the sample output for the formatting specifications.Code constraints :In the given scenario, the test cases fall under the following constraints:0 ≤ student's mark ≤ 100Sample test cases :Input 1 :100Output 1 :Grade: AInput 2 :85Output 2 :Grade: BInput 3 :79Output 3 :Grade: CInput 4 :63Output 4 :Grade: DInput 5 :56Output 5 :Grade: EInput 6 :0Output 6 :Grade: FInput 7 :-5Output 7 :Invalid inputInput 8 :126Output 8 :Invalid input

A school has following rules for grading system:           a. Below 25 - F               b. 25 to 45 - E             c. 45 to 50 - D               d. 50 to 60 - C          e. 60 to 80 - B              f. Above 80 -    A                                                                                                                     Ask user to enter marks and print the corresponding grade.

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.