Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UUM Sport Center provides sport facilities to its customers who are either students, staff or non-UUM (outsiders). The types of facilities provided and their hourly

UUM Sport Center provides sport facilities to its customers who are either students, staff or non-UUM (outsiders). The types of facilities provided and their hourly charges are based on the customer categories as shown below: Charge Per Hour (RM) Type of Facility Student Staff Non-UUM Badminton Free 4.00 8.00 Squash Free 1.00 6.00 Sauna 3.00 5.00 10.00 The sport center wants you to " write a "program that can be used by its staff to calculate the charge to be paid by its customers. Six sample running of the program's GUI are shown below: This program uses two classes, SportChargeCalculatorUI and Customer, as shown in the UML class diagrams below: The SportChargeCalculatorUI class has GUI components whose names are shown as below: Customer - category : String - facType : String - hours : int + Customer(String category, String facType, int hours) + calculateCharge(): double SportChargeCalculatorUI //GUI components not shown here + SportChargeCalculatorUI () - calcBTNActionPerformed(): void hoursTF calcBTN outputTA studentRB staffRB nonUUMRB typeCB.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

How can we deal with long-lived and cumulative pollutants?

Answered: 1 week ago