You are on page 1of 2

28-12-2022 Week-7 LAB Task:

###########################

1. WAP to add two matrices using nested lists.


--------------------------------------
2. Write a Python program to check the validity of password input by users.
Validation :

At least 1 letter between [a-z] and 1 letter between [A-Z].


At least 1 number between [0-9].
At least 1 character from [$#@].
Minimum length 6 characters.
Maximum length 16 characters.
-------------------------------------------
3. Write a Python program to find numbers between 100 and 400 (both included)
where each digit of a number is an even number. The numbers obtained should be
printed in a comma-separated sequence.
------------------------------------------
4. Write a Python program to construct the following pattern, using a nested
loops
Expected Output:

1
22
333
4444
55555
666666
7777777
88888888
999999999
--------------------------------------------
5. WAP that prints a histogram of frequencies of characters occurring in a
message.
Test data: msg=hello hi
Expected output: h **
e *
l **
o *
i *
----------------------------------------
6. Collect atleast 15 real-time medical symptoms from google. WAP to display 15
symptoms to patient and ask or prompt him/her to enter their illhealth symptoms
from the list displayed. Analyse the given symptoms and display the disease name to
the patient.
----------------------------------------------
7. Generate Supermarket bill with the below constraints:

Input details:(Accept from user)


Customer Name, Customer address, Customer mobile
Item category: food/cosmetics/luxury
Item name
Item count
Item price

Output details:
price calculation= food===(item price+ 1% of item price)*itemcount
cosmetics===(item price+ 2% of item price)*item count
luxury===(item price+ 5% of item price)*item count
total price=sum of all items price

Ask if doorstep delivery is required


if yes====charges : 2% of total price
total price=total price+delivery charges

deductions==
if regular customer then: 1% of total price will be the discount

finally print the NET BILL= total price-deductions


and display "thanku and visit again"
------------------------------------
8. Engineering UnderGraduate timetable is as follows:
period1 duration: 9:10 - 10:10am
period2 duration: 10:10 - 11:10am
period3 duration: 11:15 - 12:15pm
period4 duration: 1:00 - 2:00pm
period5 duration: 2:00 - 3:00pm
period6 duration: 3:15 - 4:15pm

Accept any 10 faculty details like: name, busy periods


With the given input data, draft the invigilation duties for the faculty who are
free during the invigilation duration. Forenoon invigilation time: 10:30 - 11:30am,
afternoon invigilation time: 2:00 - 3:00pm
Note: invigilators should report 15minutes early to AEC for their invigilation duty

output format:
---------------------------------------
CBIT Academic Examination Cell
----------------------------------------
Name FN duty AN duty
-----------------------------------------
kkk x
ppp x
sss x x
.
.
.
-------------------------------------------
x - represents invigilation duty

You might also like