Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago

Question

What your favourite topic in mathematics?

Answered: 1 week ago

Question

Briefly describe vegetative reproduction in plants.

Answered: 1 week ago