Question
C++ Your program will be creating 10 library books. Each library book will have title, author, and publication year. Each library book will be stored
C++
Your program will be creating 10 library books. Each library book will have title, author, and publication year. Each library book will be stored as a structure and your program will have an array or vector (your choice) of library books (an array of structures or a vector of structures). You will code the information for all 10 library books directly in your C++ program. The user of your program should be able to select what they want to do from a menu of the following things and your program needs to do what the menu selection indicates:
* Print the entire list of library books
* Ask the user to enter a publication year and print the list of library books where the publication year is greater than or equal to that year
* Ask the user for an author and print the list of library books written by that author
In all three instances, the printed list must include the author, title, and publication year.
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