Create a simple C program using while, do while and for statements 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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Create a simple C program using while, do while and for statements 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. 

Here are the following details on the different options.
 - Create a program that will Register the user from the library. The program should determine if the added user is a teacher or a student. 
 - Here are the details you need in order to register the user.
 -- Complete Name
 -- ID Number
 -- Address
 -- Contact information
 -- Email Address
 -- Birthday(mm/dd/yy)

- Create a program that add books to the library system.
Details on the books are as follows:
 -- Book title/name
-- Description
-- Author
-- Category(e.i science, math, English, history, etc..)
-- Quantity

- Create a program that lists or displays all books added to the system. Display the details of the books.

- Create a program that allows the user to select the books from the list of added books. These books to be selected should be added to the reserved. The items added to the reserved section should also be counted.
The program should sum up all the books added to the reserved area. Allow your program to let the user be able to borrow books from the reserved list. Before the books to be borrowed, review or display the books added to the reserved section. Lastly, a program should be able to confirm or check out or borrow the books. It should also verify if the user exists in the list of registered users and should be able to verify if the books selected exist in the list of books added. Notify the user if it does not satisfies the condition mentioned.

Implement using ALL of the three loops. *Note: ALL three loops must be present in your code. NO using of struct or functions. NO using of the global variable.

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY