Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program to create the following files: Book.h Book.cpp Author.h Author.cpp In Main.cpp create a list of books and write the following functions:
Write a C++ program to create the following files: Book.h Book.cpp Author.h Author.cpp In Main.cpp create a list of books and write the following functions: 1. 2. Add new book to add a new book. Borrow book to barrow a book Note: Use the blow class diagram to solve the problem without making any changes. Book -title: string -borrowed: boolean -authors: Author[l +Book(title, authors) +get_title():string +is_borrowed(): boolean +set_title(title):voiod +set_authors(Authors):void +set borrowed(boolean):void Author -name: string -email: string +Author(name, email) +get_name():string set_name(name):void +set_email(email):void Write a C++ program to create the following files: Book.h Book.cpp Author.h Author.cpp In Main.cpp create a list of books and write the following functions: 1. 2. Add new book to add a new book. Borrow book to barrow a book Note: Use the blow class diagram to solve the problem without making any changes. Book -title: string -borrowed: boolean -authors: Author[l +Book(title, authors) +get_title():string +is_borrowed(): boolean +set_title(title):voiod +set_authors(Authors):void +set borrowed(boolean):void Author -name: string -email: string +Author(name, email) +get_name():string set_name(name):void +set_email(email):void
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