Skip to content

Entity Manager

Create a program that lets the user enter and display details associated with a book. This should include your own struct to manage the book data, with a function to read in the book, and a procedure to output the details of the book. Also show a simple menu, with an associated enumeration. Use the enumeration in a read menu option function.

An example of this running is shown below.

Book entry system.
Enter the name of the book: Programmers Guide
Enter book location: https://programmers.guide
Enter number of pages: 500
Menu:
1 - Read book
2 - Print book
3 - Quit
Option: 2
Book details:
Title: Programmers Guide
Location: https://programmers.guide
Pages: 500
Menu:
1 - Read book
2 - Print book
3 - Quit
Option: 3