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

Graduate Learner Inheritance

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a graduate-learner subclass that extends a learner base class and prints the extended report.

Input Format

Input is given as whitespace-separated tokens for the base-class fields first, followed by the child-class fields.

Output Format

Print the exact multiline report required by the problem.

Sample Testcases

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

Sample #1
Public sample
Lina
3.8
120
Name: Lina
GPA: 3.80
Thesis Pages: 120
Input: learner name = "Lina", GPA = 3.8, thesis pages = 120.
Key calculation(s): "Name: " + "Lina" = "Name: Lina" | "GPA: " + String.format("%.2f", 3.8) = "GPA: 3.80".
Output:
Name: Lina
GPA: 3.80
Thesis Pages: 120
Sample #2
Public sample
Omar
3.5
90
Name: Omar
GPA: 3.50
Thesis Pages: 90
Input: learner name = "Omar", GPA = 3.5, thesis pages = 90.
Key calculation(s): "Name: " + "Omar" = "Name: Omar" | "GPA: " + String.format("%.2f", 3.5) = "GPA: 3.50".
Output:
Name: Omar
GPA: 3.50
Thesis Pages: 90

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