Please follow Java conventions and guidelines to write a good and readability program. QUESTION Five7Two Fitness Centre

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please follow Java conventions and guidelines to write a good and readability program. QUESTION Five7Two Fitness Centre

Post by answerhappygod »

Please Follow Java Conventions And Guidelines To Write A Good And Readability Program Question Five7two Fitness Centre 1
Please Follow Java Conventions And Guidelines To Write A Good And Readability Program Question Five7two Fitness Centre 1 (45.59 KiB) Viewed 48 times
Please follow Java conventions and guidelines to write a good and readability program. QUESTION Five7Two Fitness Centre provides facilities such as aerobic and strength training equipment to members of the public. It opens daily from 10 am to 10 pm. The centre charges its customers based on the duration (number of hours) each customer uses its facilities daily. These charges however, varies depending on the customer's type (member or non- member) and the type of the day (weekdays or weekends). The table below shows the hourly rate based on the customer and day types: Workday Weekend Member RM3.00 RM400 Neo-Member RM5.00 RM6.00 Based on above scenario: . • Write a Java program that accepts customer's information including name, customer's type, duration (between I to 12 hours only), type of the day and date, and then displays the total charge for customer. You are required to create 2 classes named Customer and TestCustomer. Declare appropriate data members for the class Customer and include the following methods as well: Constructor - to initialize name, name, customer's type, duration and type of the day and date values that are received through the parameters of the method. calculateCharge() - calculates the total charges -display Charge() - displays the output similar as shown below Customer Name: Ali Customer Type: Member Duration: 3 hours Type of the day: Weekend Date: 22 June 2022 Total Charge: RM 12.00 - The class TestCustomer will contain the main method that consists of the statements to read the user input and invoke the methods of the class Customer.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply