Previous Next
0 / 13
Module DEMO-33-61DEMO-OOP-33

Fee Receipt Header

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read a student name, the number of lab hours, and the hourly rate, then print a formatted receipt header.

Input Format

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

  1. student name
  2. lab hours
  3. hourly rate

Output Format

Print the exact report in this order:

  1. Student
  2. Hours
  3. Total Fee

Sample Testcases

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

Sample #1
Public sample
Lina
4
2.5
Student: Lina
Hours: 4
Total Fee: 10.00
Input: student name = "Lina", lab hours = 4, hourly rate = 2.5.
Key calculation(s): total = 4 * 2.5 | "Student: " + "Lina" = "Student: Lina" | "Hours: " + 4 = "Hours: 4".
Output:
Student: Lina
Hours: 4
Total Fee: 10.00
Sample #2
Public sample
Omar
3
5.0
Student: Omar
Hours: 3
Total Fee: 15.00
Input: student name = "Omar", lab hours = 3, hourly rate = 5.0.
Key calculation(s): total = 3 * 5.0 | "Student: " + "Omar" = "Student: Omar" | "Hours: " + 3 = "Hours: 3".
Output:
Student: Omar
Hours: 3
Total Fee: 15.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