Previous Next
0 / 15
Module DEMO-33-68DEMO-OOP-33

Grade Comment Method

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read one mark, implement gradeComment, and print the returned text.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. student mark

Output Format

Print the exact report in this order:

  1. Comment

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
90
Comment: EXCELLENT
Input: student mark = 90.
Key calculation(s): if (90 >= 85) { | if (90 >= 70) { | "Comment: " + result = "Comment: EXCELLENT".
Output:
Comment: EXCELLENT
Sample #2
Public sample
74
Comment: GOOD
Input: student mark = 74.
Key calculation(s): if (74 >= 85) { | if (74 >= 70) { | "Comment: " + result = "Comment: GOOD".
Output:
Comment: GOOD

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings