Answered step by step
Verified Expert Solution
Question
1 Approved Answer
There are two categories of membership available at the UNIMAS library. One is for alumni, and the other is for non-alumni. Alumni pay a membership
There are two categories of membership available at the UNIMAS library. One is for alumni, and the other is for non-alumni. Alumni pay a membership fee of RM100.00 to borrow a maximum of two books for a period of thirty days. NonAlumni is open to non UNIMAS graduates and they are charged a membership fee of RM200.00 and can borrow a maximum of one book for a period of 25 days. This is Membership Class This is Alumni Class Alumni ID:AK2020 Name:Lionel Messi Library Member ID:K67543 Membership Fee: 100 Number of Borrowed Books Allowed:2 Borrowing Period: 30 This is Non Alumni Class IPTA Name:Universiti Sains Malaysia Name:Angel Di Maria Library Member ID: L98765 Membership Fee: 200 Number of Borrowed Books Allowed:1 Borrowing Period: 25 Figure 2: Sample Output Based on your answer in Question 2 A and the sample output in Figure 2, write a main program in C++ that creates three different objects from each of the classes that you have created, and each object must call the function displayMembershipinfo(). You may use the extract of the program below as a guide. \#include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started