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

Team Leader Inheritance

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a team-leader subclass that extends an employee base class and prints the calculated pay.

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
40
50.0
Employee: Lina
Hours: 40
Pay: 450.00
Input: employee name = "Lina", worked hours = 40, leadership allowance = 50.0.
Key calculation(s): "Employee: " + "Lina" = "Employee: Lina" | "Hours: " + 40 = "Hours: 40".
Output:
Employee: Lina
Hours: 40
Pay: 450.00
Sample #2
Public sample
Omar
35
25.0
Employee: Omar
Hours: 35
Pay: 375.00
Input: employee name = "Omar", worked hours = 35, leadership allowance = 25.0.
Key calculation(s): "Employee: " + "Omar" = "Employee: Omar" | "Hours: " + 35 = "Hours: 35".
Output:
Employee: Omar
Hours: 35
Pay: 375.00

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