Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a java program. The cost to join a gym is: 1) Senior citizens: get a 30% d

ID: 3804105 • Letter: W

Question

Write a java program.

The cost to join a gym is:

1) Senior citizens: get a 30% discount.

2.) If twelve or more months in advance are bought and paid for, a 15% discount is applied to the membership.
The user enters the number of months.

3) Personal Training sessions: 20% discount on each session if more than 12 are bought.

This will be a menu-driven, GUI program that determines the cost of a new membership.Using JTextField for input and JLabel to describe what you want the user to input and buttons (calculate and exit).
-Senior Discount - The user chooses 0 or 1, yes or no, for senior.
-The user enters the number of months for membership.
   -The user enters the number of personal training sessions.
     

Program needs the following methods:

a. A method that displays general info about the gym and the charges using a JTextField
   Membership cost: $400
   Cost per training session: $70 per person
   List the discounts in this space

b. A method the gets all the information to determine the membership cost.

c. A method to determine the membership cost.

Explanation / Answer

01 #include 02 #include 03 using namespace std; 04 05 06    07 void display() 08 { 09        10     cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote