ICS 104 Project Due: Each student is required to submit a Jupiter notebook file in their ICS 104 Blackboard section. The

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

ICS 104 Project Due: Each student is required to submit a Jupiter notebook file in their ICS 104 Blackboard section. The

Post by answerhappygod »

Ics 104 Project Due Each Student Is Required To Submit A Jupiter Notebook File In Their Ics 104 Blackboard Section The 1
Ics 104 Project Due Each Student Is Required To Submit A Jupiter Notebook File In Their Ics 104 Blackboard Section The 1 (57.54 KiB) Viewed 133 times
Ics 104 Project Due Each Student Is Required To Submit A Jupiter Notebook File In Their Ics 104 Blackboard Section The 2
Ics 104 Project Due Each Student Is Required To Submit A Jupiter Notebook File In Their Ics 104 Blackboard Section The 2 (48.97 KiB) Viewed 133 times
Ics 104 Project Due Each Student Is Required To Submit A Jupiter Notebook File In Their Ics 104 Blackboard Section The 3
Ics 104 Project Due Each Student Is Required To Submit A Jupiter Notebook File In Their Ics 104 Blackboard Section The 3 (39.54 KiB) Viewed 133 times
ICS 104 Project Due: Each student is required to submit a Jupiter notebook file in their ICS 104 Blackboard section. The notebook should contain code and documentation that will help test the project. You are expected to submit it by 11:00P.M. on 11th December 2021. Question: You are to develop a Library Management System (LMS) that tracks the books borrowed by students in the university. The system administrator should be able to view the name of the students registered to the library. It should also keep track the number of members' visits. The system only keeps track of the number of books borrowed only (don't worry about the name of the books). Members can take up to five books in one visit. But they must return all books before borrowing another set. The system should have the following functions (all the functions are explained in this document): • main() • register Member(memberID, name) getAll Records() getMember Record(memberID) update Member Record(memberID, bookCount) deleteMember(memberID) Implement a well-structured Python program that uses the functions listed above. The system should enable the KFUPM Library's System Administrator to maintain the LMS. The information is kept in a text-file of the form: 1007 Ahmad Said 1 5.0 The first column is the members unique ID, the members' first and second names, number of books borrowed during the last visit, number of total visits, and the books borrowed per visit. The books borrowed per visit is calculated by dividing the number of books borsowed by the user until now by the total number of visits. Your main () program must have the following main menu: 1. Display all Members Record 2. Display the Record of a particular Member 3. Update a Member's Record 4. Add New Member 5. Delete Member 0. Exit Please select your choice: Your program must loop as long as the option 0 has not been selected. It must display an appropriate error message if an invalid choice is entered. After executing any of the options 1 to 5, your program must pause and display the message: "Press Enter key to continue ....Your program must display the main menu after pressing the Enter key Page 1 of 4

The other options must have the following behaviors: Option 1: Display all Members' Record It displays all the members' information recorded. The option must be implemented by reading directly from the text-file where the data was saved. It then waits for the Enter key to be pressed before returning control to the main menu. Below is a sample run: Please select your choice: 1 Member ID Member Name Borrowed Books Visits Books per visit 1007 Ahmad Said 5 1 5.00 1004 Fatima Hassan 2 5 10.20 1003 Suleiman Wasim 1 20 2.75 1002 Majed Sameer 1 3.00 Press Enter key to continue... 3 Option 2: Display the Record of a particular Member When a user selects option 2, the main function prompts for and reads a memberID. Then, it calls the function getMember Record(memberID). It searches for the memberID in the text-file. If the member is not found, an appropriate error message is displayed. Otherwise, the member's information is displayed. In both cases, the option waits for the Enter key to be pressed before returning control to the main menu. Please select your choice: 2 Enter Member ID: 1002 Member ID Member Name Borrowed Books Visits Books per visit 1002 Majed Sameer 3 1 3.00 Press Enter key to continue... Please select your choice: 2 Enter Member ID: 1552 Error: Invalid Member ID Press Enter key to continue... Page 2 of 4

Option 3. Update a Member's Record This option uses the function update Member Record/memberib, bookCount) to update a members record. It prompts for and reads a memberID, and the number of books they want to bomow hook Cound). We assume that the user makes sure they returned the previously borrowed books before lending them another set of books. The new book per visit can be calculated using Egn (2) and the new visit counts can be calculated using (3) ww book per visit = (book borrowed today old book per visit visit (visit 1) (2) visite visit+1 If the member ID and/or the number of books borrowed is negative, an appropriate error message is displayed. Otherwise, it searches for this memberID in the text file and update their record. Also, if the memberID is not found an appropriate error message is displayed, as shown by the test run below: Please select your choice: 4 Please enter Member ID: 1001 Please enter No. of book to borrow: 4 Member's information has been updated Press Enter key to continue Please select your choice: 4 Please enter Member ID: 2256 Please enter No. of book to borrow: 4 Enor: Invalid Member ID Press Enter key to continue Please select your choice: 4 Please enter Member ID: 1001 Please enter No. of book to borrow! Enor: Invalid No. of book to borrow Press Enter key to continue Control is returned to the main menu after pressing the Enter key Options 4. Add New Member To implement Option 4. search the text-file for the memberi input by the mer. If the memberi exist display an error otherwise append the new record to the end of the text file. Page 3 of 4 Options S. Delete Member To implement options, search the text-file for the memberID and deleted the member when found. If the member ID does not exist, display an error Note: Use the try.exception for each method that opens tile for reading
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply