Question: please write it by c programming only We will create a menu to select a user whether hoshe is a student or teacher. After selection
We will create a menu to select a user whether hoshe is a student or teacher. After selection of role, the user will enter his username and password which will give them access to the library management system Library Management System Teacher 2. Scadent 2. fuit Enter your choice 11 sh: 11 cis: not found If you logged in as a teacher then there will be access to different services like adid, remove or update the books. Also, there is an access to see the list of all the books (Use file for this) If you click on nad books then you can easily add the book by entering the book id, bock name and author name.(Write it in a file again) You can also delete or update the books, just seleet the option from the list. For updating you have to ask use the book id for updating. Then for updating you have to select that block and ask user for the new entry and take the new entry to the user and update the information of the book. For deleting you have to ask user the book id and then delete all blockibook id, name and motor name) and down list has to be slipped to up. List of all books part has to ask user that searching is with book id, book name or autor name. Then it has to show all information which is match with the user entry Teacher master in law attente Mbook Delete Book LR of If you logged in as a student then there will be access of different services like Borrow a book . Return a book List of books Student Login Please enter your sease: Student Please ester your password student 123 sh: 15 cis: not found 1. BOLEON a Book 2. Return a look List of All Books For borrowing function has to work with List of book menu. Borrowing function has to take book name and search and find if the book is exist or not. You have to show the finding book to use in List of bookme. Then you will give information about book in borrow part and ask the user if he or she want to borrow given book. If the book is borrowed you have use delete function to erase name of the book in the list For return function you have to take the all information to the student again and write it to the file. HOMEWORK We will create a menu to select a user whether he she is a student or teacher After selection of role, the user will enter his username and password which will give them access to the library management system Library Management System Teacher Student Enter your choice bh: 1: cis: not found . If you logged in as a teacher then there will be access to different services like add, remove or update the books. Also, there is an access to see the list of all the books. (Use file for this If you click on add books then you can easily add the book by entering the book id, bock name and author name.Write it in a file again) You can also delete or update the books, just select the option from the list. For updating you have to ask user the book is for updating. Then for updating you have to select that block and ask user for the new entry and take the new entry to the user and update the information of the book. For deleting you have to ask user the book id and then delete all blockbook id, name and autee name) and down list has to be slipped to up List of all books part has to ask user that searching is with book id, book name or autor rame. Then it has to show all information which is match with the user entry . Teacher Teater login is FREADY BUT 1. Add book data anybook 1. Delete Book 4. List of 12 soke Pete your cholen If you logged in as a student then there will be access of different services like: Borrow a book Return a book List of books . Student Login Please enter your en student Please enter your password student 123 sh: 1: cist not found 1. Borrow a Book Return a Book List of All Books Exit For borrowing function has to work with List of book menu. Borrowing function has to take book name and search and find if the book is exist or not. You have to show the finding book to user in List of back menu. Then you will give information about book in borrow part and ask the user if he or she want to borrow given book. If the book is borrowed you have use delete function to erase name of the book in the list For return function you have to take the all information to the student again and write it to the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
