Question: Create this program as a GUI program please make sure its in Java as a GUI(Graphical User Interface). The cost to become a member of
Create this program as a GUI program please make sure its in Java as a GUI(Graphical User Interface). The cost to become a member of a fitness center is as follows: (a) the Senior citizens discount is 30%; (b) if the membership is bought and paid for 12 or more months in advance, the discount is 15%; or (c) if more than 5 personal training sessions are purchased, the discount on each session is 20%. Write a menu driven program that determines the cost of a new membership. Your program must contain a method that displays the general information about the fitness center and its charges, a method to get all the necessary information to determine the membership cost, and a method to determine the membership cost. Use appropriate parameters to pass information in and out of a method. Then you need to get the input from the user , using JTextField for the input, Jlabel to describe what you want them to input and some buttons. (Calculate, Exit) 1. The user can choose 1 or 2 (Yes, No) for Senior or it can be a yes or no input. 2. Have the user enter number of months, or you can give them choices. 6, 12, 18 month options. 3. Have the user enter number of training sessions they wish to purchase. Finally, when the user clicks on the Calculate button. You will show their membership cost please make sure its a GUI method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
