Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions