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

Scholarship Student Inheritance

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a scholarship-student subclass and print the student report with scholarship status.

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
95
120.0
Name: Lina
Mark: 95
Scholarship: 120.00
Status: ACTIVE
Input: student name = "Lina", course mark = 95, stipend amount = 120.0.
Key calculation(s): "Name: " + "Lina" = "Name: Lina" | "Mark: " + 95 = "Mark: 95".
Output:
Name: Lina
Mark: 95
Scholarship: 120.00
Status: ACTIVE
Sample #2
Public sample
Omar
86
75.5
Name: Omar
Mark: 86
Scholarship: 75.50
Status: ACTIVE
Input: student name = "Omar", course mark = 86, stipend amount = 75.5.
Key calculation(s): "Name: " + "Omar" = "Name: Omar" | "Mark: " + 86 = "Mark: 86".
Output:
Name: Omar
Mark: 86
Scholarship: 75.50
Status: ACTIVE

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