Question: SSS PLEASE QRITE SIMPLE PROGRAM IN JAVA Write a program that can define Membership as in the UML-class diagram below. Membership -Business Code: String -AnnualFee:
SSS PLEASE QRITE SIMPLE PROGRAM IN JAVA

Write a program that can define Membership as in the UML-class diagram below. Membership -Business Code: String -AnnualFee: Double +allMutator Methods Class membership contains a business code and annual fee. The program will set 4 objects of membership; diamond, gold, premium and silver. These object will be set with data as in Table 1.0. From the main program can a customer can register their name and choose the membership category and the program will display the annual fee and message on the screen. Compile and save as ML_YourName.c. Copy- paste the successfully compiled code in the space provided. [25 Marks] Table 1.0 Code Annual Fee Output Message 4,000 Diamond Club 2 3,500 Gold Club 3 2,000 Premium Club Other 1,000 Silver Club Sample Output: 1. Diamond 2) Gold 3) Premium Other) Silver Please enter your name and your choice: Ali 3 Premium Club The annual fee is 2000.00 Program ended with exit code: 0 1. Diamond 2) Gold 3) Premium Other) Silver Please enter your name and your choice: Maria 1 Diamond Club The annual fee is 4000.00 Program ended with exit code: 0 1. Diamond 2) Gold 3) Premium Other) Silver Please enter your name and your choice: Laila Silver Club The annual fee is 1000.00 Program ended with exit code: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
