Question: Question 2 [ 3 0 marks ] 2 . 1 As the owner of Mo'Muscle gym, you've created a system to track membershipdetails. Your job

Question 2[30 marks]2.1 As the owner of Mo'Muscle gym, you've created a system to track membershipdetails. Your job is to use an array to store information about four different types ofmemberships using a for loop. Use Systems.out.println(); to display information.(20 marks)This is what the output will look like:Criteria MarksDeclare instancevariables.3 marksConstructor to initialisemembership details. 4 MarksDeclare and initialise anarray of the programobjects.9 MarksIterate through the arrayof memberships and printdetails.4 Marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!