Question: i need a python solution to this question IAU Book is an online library that allows people to borrow books online . Write a Python

i need a python solution to this question

IAU Book is an online library that allows people to borrow books online.

Write a Python program that contains the following: - [4 Marks]

Books module that contains: -

A dictionary of the books code and name. [0.25 Mark]

Book code

Book name

CYS 404

Advance digital forensics

CYS 406

Programing for Python

CYS 401

Information Security

Display function: -prints all the books in the dictionary [0.5 Mark]

Search for a book function: - it checks whether the course code entered by the user exists in the library or not and prints the result to the user. If it exists print the book name, and if it doesn't exist notify the user that the code doesnt exist. [0.5 Mark]

Borrow a book function: - It will check if the book (entered by the user) is available in the dictionary or not. If yes, it will ask the user to enter his first name, last name, and phone number. After that it will print a bill to the user as shown below: -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!