Question: Part 1 Person class Write a Person class that tracks subscribers to a library, with these member attributes: full name identifier (numeric) email address Person
Part 1 Person class Write a Person class that tracks subscribers to a library, with these member attributes: full name identifier (numeric) email address Person has these member functions: Constructor - initializes new object get and set function for each attribute Write a main program with these capabilities: Create test data for four people Display all people Edit attributes of an existing Person Part 2 - Book Class Write a Book class that tracks all books in a library, with these member attributes: title author status - indicates if Book is checked out borrower the Person object that has currently checked out book, if any Book has these member functions: Constructor - initializes new object get and set function for borrower member variable checkOut - enables Person to check out Book - do not allow if book is checked out checkIn - enables Person to check in Book Homework 3 Page 2 Extend your main program of part 1 with these capabilities: Create test data for six books display all books in library, along with name of borrower (if any) enable people to check books in and out Challenge 1 1) Change the borrower member variable to a pointer to a Person object. 2) The library has multiple copies of each book. Track the number of copies of each book, and track one borrower for each copy. Do not allow a person to check out a book if all copies are already checked out.
c++ PROGRAM. PLEASE DO NOT USE DATA STRUTURE BECAUSE I USE CPP.SH TO RUN PROGRAMS.THKS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
