Create a simple C program for a library system. Here are the specifications of the library system. - create an option to select the following. 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. Use your creativity in presenting your output but here's my sample output. Sample Output: Welcome to CIT Library. Select the following: 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. 6. Exit Input your choices: 1 Welcome to the registration of users. Please provide the following details: -- Complete Name : Juliet Mendez -- ID Number: 99887766 -- Address: Cebu City -- Contact information: 1234321 -- Email Address: jsm@test.com -- Birthday(mm/dd/yy) 09/09/99 ---- Confirm if the details are correct(Y/N): Y Welcome to CIT Library. Select the following: 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. 6. Exit Input your choices: 2 Provide the number of books to be added: 1 Please add books to the inventory. -- Book title/name: The Calculus -- Description: The calculus 1 book -- Author: Lewis -- Category(e.i science, math, English, history, etc..): Math -- Quantity: 5 ---- Confirm if the details are correct(Y/N): Y Welcome to CIT Library. Select the following: 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. 6. Exit Input your choices: 4 The following are the list of books added in the system. -- Book title/name: The Calculus -- Description: The calculus 1 book -- Author: Lewis -- Category(e.i science, math, English, history, etc..): Math -- Quantity: 5 -- Number of borrowers: 2 -- Name of borrower: Juliet Mendez -- Status of borrower: Student ---- Go back to the main menu? (Y/N): Y Welcome to CIT Library. Select the following: 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. 6. Exit Input your choices: 3 The following is the list of books reserved for the system. -- Book title/name: The Calculus -- Author: Lewis -- Category(e.i science, math, English, history, etc..): Math -- Remaining books to borrow: 3 -- Name of borrower: Juliet Mendez -- Id Number: 123321 ---- Confirm if the details are correct(Y/N): Y Welcome to CIT Library. Select the following: 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. 6. Exit Input your choices: 5 The following is the list of books reserved for the system. -- Book title/name: The Calculus -- Author: Lewis -- Category(e.i science, math, English, history, etc..): Math -- Name of borrower: Juliet Mendez -- Id Number: 123321 ---- Confirm if the details are correct(Y/N): Y Welcome to CIT Library. Select the following: 1. Register Users 2. Add to Books 3. Reserve a Book to borrow 4. Display all books added to the inventory 5. Display all books reserved by the student/teacher. 6. Exit Input your choices: 6 Thank you for visiting CIT Library! Keep coming back! ?

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 13PE
icon
Related questions
Question

Create a simple C program for a library system. Here are the specifications of the library system. - create an option to select the following.
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.
Use your creativity in presenting your output but here's my sample output. Sample Output:
Welcome to CIT Library.
Select the following:
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.
6. Exit
Input your choices: 1
Welcome to the registration of users. Please provide the following details:
-- Complete Name : Juliet Mendez
-- ID Number: 99887766
-- Address: Cebu City
-- Contact information: 1234321
-- Email Address: jsm@test.com
-- Birthday(mm/dd/yy) 09/09/99
---- Confirm if the details are correct(Y/N): Y
Welcome to CIT Library.
Select the following:
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.
6. Exit
Input your choices: 2
Provide the number of books to be added: 1
Please add books to the inventory.
-- Book title/name: The Calculus
-- Description: The calculus 1 book
-- Author: Lewis
-- Category(e.i science, math, English, history, etc..): Math
-- Quantity: 5
---- Confirm if the details are correct(Y/N): Y
Welcome to CIT Library.
Select the following:
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.
6. Exit
Input your choices: 4
The following are the list of books added in the system.
-- Book title/name: The Calculus
-- Description: The calculus 1 book
-- Author: Lewis
-- Category(e.i science, math, English, history, etc..): Math
-- Quantity: 5
-- Number of borrowers: 2
-- Name of borrower: Juliet Mendez
-- Status of borrower: Student
---- Go back to the main menu? (Y/N): Y
Welcome to CIT Library.
Select the following:
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.
6. Exit
Input your choices: 3
The following is the list of books reserved for the system.
-- Book title/name: The Calculus
-- Author: Lewis
-- Category(e.i science, math, English, history, etc..): Math
-- Remaining books to borrow: 3
-- Name of borrower: Juliet Mendez
-- Id Number: 123321
---- Confirm if the details are correct(Y/N): Y
Welcome to CIT Library.
Select the following:
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.
6. Exit
Input your choices: 5
The following is the list of books reserved for the system.
-- Book title/name: The Calculus
-- Author: Lewis
-- Category(e.i science, math, English, history, etc..): Math
-- Name of borrower: Juliet Mendez
-- Id Number: 123321
---- Confirm if the details are correct(Y/N): Y
Welcome to CIT Library.
Select the following:
1. Register Users
2. Add to Books
3. Reserve a Book to borrow
4. Display all books added to the inventory
5. Display all books reserved by the student/teacher.

6. Exit
Input your choices: 6
Thank you for visiting CIT Library! Keep coming back! ?

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT