{"id":"5c484862-df84-4549-8337-4046c221fea3","name":"Grading System","description":"1. You are given as input marks of a student.\r\n2. Display an appropriate message based on the following rules:\r\n \t 2.1 for marks above 90, print excellent.\r\n \t 2.2 for marks above 80 and less than equal to 90, print good.\r\n \t 2.3 for marks above 70 and less than equal to 80, print fair.\r\n \t 2.4 for marks above 60 and less than equal to 70, print meets expectations.\r\n \t 2.5 for marks less than equal to 60, print below par.\r\n\r\nNote -> Only change the code in area after - // code here","inputFormat":"Input is handled for you and provided as variable marks","outputFormat":"Appropriate message as per student's marks","constraints":"No constraints","sampleCode":{"cpp":{"code":"#include<iostream>\r\nusing namespace std;\r\nvoid gradingSystem(int m)\r\n{\r\n // write your code here\r\n}\r\nint main()\r\n{\r\n int marks;\r\n cin>>marks;\r\n gradingSystem(marks);\r\n return 0;\r\n}"},"java":{"code":"import java.util.*;\r\n\r\npublic class Main {\r\n\r\n public static void main(String[] args) {\r\n Scanner scn = new Scanner(System.in);\r\n int marks = scn.nextInt();\r\n // Write your code here\r\n }\r\n}"},"python":{"code":"marks=int(input()))\r\n\r\n#write your code here"}},"points":10,"difficulty":"easy","sampleInput":"92","sampleOutput":"excellent","questionVideo":"https://www.youtube.com/embed/zCC3QcXKM3o","hints":[],"associated":[{"id":"9e70c295-da03-4bbb-abf4-034e7b3f535c","name":"One IF statement can have multiple","slug":"one-if-statement-can-have-multiple","type":4},{"id":"b68fba69-89bf-40c7-b6ab-2424914d5d2c","name":"Which of the following condition has topmost priority?","slug":"which-of-the-following-condition-has-topmost-priority","type":4},{"id":"df4e2e1a-c86f-40a7-905f-4e79c3e7d025","name":"If the condition of IF statement is an expression, then what should be the type of the result of the expression?","slug":"if-the-condition-of-if-statement-is-an-expression-then-what-should-be-the-type-of-the-result-of-the-expression","type":4},{"id":"f14feba1-5673-4f90-8538-4bb7cc4aaafd","name":"What kind of statement is the IF statement?","slug":"what-kind-of-statement-is-the-if-statement","type":4}],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"72157774-7fd0-4b8e-88dc-037800acd626","name":"Getting Started","slug":"getting-started-9996","type":0},{"id":"c5cdbc29-2e5e-49dd-8cb8-430675523931","name":"Grading System","slug":"grading-system","type":1}],"next":{"id":"3a03448e-94bb-4a46-9a0a-13ac11573083","name":"Grading System","type":3,"slug":"grading-system"},"prev":{"id":"a70d0ad9-4e1c-4292-8f47-516c7059d39d","name":"Conditional Operators In Programming Language","type":0,"slug":"conditional-operators-in-programming-language"}}}

Grading System

1. You are given as input marks of a student. 2. Display an appropriate message based on the following rules: 2.1 for marks above 90, print excellent. 2.2 for marks above 80 and less than equal to 90, print good. 2.3 for marks above 70 and less than equal to 80, print fair. 2.4 for marks above 60 and less than equal to 70, print meets expectations. 2.5 for marks less than equal to 60, print below par. Note -> Only change the code in area after - // code here

{"id":"5c484862-df84-4549-8337-4046c221fea3","name":"Grading System","description":"1. You are given as input marks of a student.\r\n2. Display an appropriate message based on the following rules:\r\n \t 2.1 for marks above 90, print excellent.\r\n \t 2.2 for marks above 80 and less than equal to 90, print good.\r\n \t 2.3 for marks above 70 and less than equal to 80, print fair.\r\n \t 2.4 for marks above 60 and less than equal to 70, print meets expectations.\r\n \t 2.5 for marks less than equal to 60, print below par.\r\n\r\nNote -> Only change the code in area after - // code here","inputFormat":"Input is handled for you and provided as variable marks","outputFormat":"Appropriate message as per student's marks","constraints":"No constraints","sampleCode":{"cpp":{"code":"#include<iostream>\r\nusing namespace std;\r\nvoid gradingSystem(int m)\r\n{\r\n // write your code here\r\n}\r\nint main()\r\n{\r\n int marks;\r\n cin>>marks;\r\n gradingSystem(marks);\r\n return 0;\r\n}"},"java":{"code":"import java.util.*;\r\n\r\npublic class Main {\r\n\r\n public static void main(String[] args) {\r\n Scanner scn = new Scanner(System.in);\r\n int marks = scn.nextInt();\r\n // Write your code here\r\n }\r\n}"},"python":{"code":"marks=int(input()))\r\n\r\n#write your code here"}},"points":10,"difficulty":"easy","sampleInput":"92","sampleOutput":"excellent","questionVideo":"https://www.youtube.com/embed/zCC3QcXKM3o","hints":[],"associated":[{"id":"9e70c295-da03-4bbb-abf4-034e7b3f535c","name":"One IF statement can have multiple","slug":"one-if-statement-can-have-multiple","type":4},{"id":"b68fba69-89bf-40c7-b6ab-2424914d5d2c","name":"Which of the following condition has topmost priority?","slug":"which-of-the-following-condition-has-topmost-priority","type":4},{"id":"df4e2e1a-c86f-40a7-905f-4e79c3e7d025","name":"If the condition of IF statement is an expression, then what should be the type of the result of the expression?","slug":"if-the-condition-of-if-statement-is-an-expression-then-what-should-be-the-type-of-the-result-of-the-expression","type":4},{"id":"f14feba1-5673-4f90-8538-4bb7cc4aaafd","name":"What kind of statement is the IF statement?","slug":"what-kind-of-statement-is-the-if-statement","type":4}],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"72157774-7fd0-4b8e-88dc-037800acd626","name":"Getting Started","slug":"getting-started-9996","type":0},{"id":"c5cdbc29-2e5e-49dd-8cb8-430675523931","name":"Grading System","slug":"grading-system","type":1}],"next":{"id":"3a03448e-94bb-4a46-9a0a-13ac11573083","name":"Grading System","type":3,"slug":"grading-system"},"prev":{"id":"a70d0ad9-4e1c-4292-8f47-516c7059d39d","name":"Conditional Operators In Programming Language","type":0,"slug":"conditional-operators-in-programming-language"}}}
plane

Editor


Loading...

Grading System

easy

1. You are given as input marks of a student. 2. Display an appropriate message based on the following rules: 2.1 for marks above 90, print excellent. 2.2 for marks above 80 and less than equal to 90, print good. 2.3 for marks above 70 and less than equal to 80, print fair. 2.4 for marks above 60 and less than equal to 70, print meets expectations. 2.5 for marks less than equal to 60, print below par. Note -> Only change the code in area after - // code here

Constraints

No constraints

Format

Input

Input is handled for you and provided as variable marks

Output

Appropriate message as per student's marks

Example

Sample Input

92

Sample Output

excellent

Question Video

Discussions

Show Discussion

Related Resources

related resources

Turning Off Zen Mode