Lab 6
Lab 6
Fall 2021
CSE422L Data Analytics Lab
Submitted by: Ayaz Mehmood
Registration No.:18PWCSE1652
Section: A
Submitted to:
Engr. Mian Ibad Ali Shah
Last date of Submission:
11 February 2022
TASKS
Task 1:
1) Using function, find all the multiplicative factors of a number provided as input.
Code + Output:
Task 2:
Create a library system for DCSE using dictionaries (must include Student's information,
Books information
Code+Outputs:
List of Books and Semester Student Dictionary:
Student Registration in Library function:
Registering myself:
Borrowing a book from library:
Checking:
Registration done and DA book is been added in the borrowed list too:
Returning a book:
Checking:
Deregister from Library:
Checking:
Empty list because I have deregistered my self
Task 3:
Using functions, create an ATM system.
Code:
Output:
Successful Transaction:
Insufficient balance:
Wrong Pin:
Deposit money:
Task 4:
Design a calculator (+,-,*,/,pow) using functions
Code + Output:
All the functions definition: