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

Store Loyalty Account

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create Main.java and LoyaltyAccount.java.

Implement the class using private fields plus getters and setters.

Use the object to print the required report exactly as described.

Input Format

Input is given as whitespace-separated tokens in the order stated in the question.

Output Format

Print the exact multiline report required by the question.

Sample Testcases

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

Sample #1
Public sample
Lina
120
Customer: Lina
Tier: GOLD
Input: customer = "Lina", points = 120.
Key calculation(s): "Customer: " + "Lina" = "Customer: Lina" | "Tier: " + 120 >= 100 ? "GOLD" : "STANDARD" = "Tier: GOLD".
Output:
Customer: Lina
Tier: GOLD
Sample #2
Public sample
Omar
80
Customer: Omar
Tier: STANDARD
Input: customer = "Omar", points = 80.
Key calculation(s): "Customer: " + "Omar" = "Customer: Omar" | "Tier: " + 80 >= 100 ? "GOLD" : "STANDARD" = "Tier: STANDARD".
Output:
Customer: Omar
Tier: STANDARD

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