2.
2 Create a registration system
Write a python code on google colab to do the following and save it (.ipynb)
Registration scenario:
● Welcome the user and check ask the user to choose between signup and
login
● When the user chooses “sign up “ ask him to insert the username
● Give user hint the password should contain capital and small letters and
the password length should be exactly 8 characters
● ASK THE USER TO ENTER A PASSWORD
● Check if the password is strong or not (a strong password contains capital
and small letters )
● Check the password length , the password must be exactly 8 characters
(no more no less , no numbers or special characters only capital and
small letters are accepted )
● If a password is strong , move forward to the next step , if its weak ,
display the message weak password please try again , and loop until the
user inserts a strong password
● Ask the user to confirm his password
● If the confirmed password matches the first entered one -> show the
message “ successful registration“
● Is the passwords are mismatched -> show the message “ passwords
mismatched , please try again .”
2.3 create a booking management system
Login scenario :
● Display the message “please login”
● Ask the user to insert the username and password
● If the username and password are correct move to the next step , if they are
incorrect display “incorrect username or password “
● If the user credential is correct , display welcome + username
● Display the 5 services to the user and ask him to choose which service he needs:
1 اصدار رخصه سياره اول مره
2 تجديد رخصه سياره
3 اصدار رخصه قياده اول مره
4 تجديد رخصه قياده
5اصدار بدل فاقد
● Display the lsit of days from sunday to thursday indexed by 1 ,2,3,4,5
Ex:
Please select day
1 sunday
2 monday
3 tuesday
4 wednesday
5 thurday
● Ask the user to select a day by selecting a number equivalent to day
● If there are no available slots on the selected day -> display there are no
available slots
● Display the available slots from 9:00, 10:00 ,11:00 ,12:00 ,1:00 for the selected
day and the available remaining reservations for each of available slot
● Each slot can accept up to 10 bookings in total
● If thursda is 4 ,7,7,10,1 there ar only 4 available slots as the forth slots is fully
booked (10)
● ask the user to insert personal details (full name , ID number)
● Display a confirmation message for the following : full name , ID number , select service ,
booked date , week day , b ooked slot
● Save and submit the file as [Link]
Rubric for task 2
task Check item Pass criteria
2.1 Mean calculation Display the results of mean Mean is correctly
calculation function for the calculated for eacg of
bookings of the first service the first service
Crowd analysis Function to calculate the most It exits and is correct
crowded day and results are
correct
Function to calc the least Exists and is correct
crowded day
Use the created functions to calc Correctly identifies
the most and leats crowded day weekday with the
for service #1 highest value for the
first service
2.2 Create registration Welcome and menu missing
system
Username input Accepts it and stores
it
Password hint 8 char upper and
lowercase only
Password check Only letters 8 char ,
upper and lowercase
Password confirmation Reenter password
and compare it to the
first
Confirmation message Successful
registration
Mismatch message “Passwords
mismatched”
2.3 Bms - login Login prompt Please login
Username validation Checks input against
stored username and
moves on if correct
Password validation Checks if correct
Login messages “Incorrect username
or password “
“Welcome +
username “
Bms - booking Personal data collection Asks for and stores
full name and id
number
Services display Lists all 5 services in
arabic
Services selection Allows user to select
1 service from 1 -5
Displays weekdays list and asks All weekdays are
user to select the desired day displayed correctly
user can select the
desired day from 1 to
5
Slot display Shows time slots for
the selected day from
9 am 10 am 11 am 12
pm and 1 pm with its
current booking as
per table
Booking logic Accepts reservations
where free 10 is the
limit per time slot
Confirmation and Booking confirmation Displays full name ,
submission id , service , selected
date , time slot
File save Saved as [Link]