Professional Documents
Culture Documents
CCDI-22-23-T1-G10Adv-Checkpoint 3
CCDI-22-23-T1-G10Adv-Checkpoint 3
Please complete Part A and Part B, then return to your teacher as instructed.
Design a Python program to write the sequence of numbers between 2 integer numbers.
Your program should ask the user to enter 2 numbers, then print all the numbers between these
2 numbers. For example, if a user enters 3 and 10, then the output is 4, 5, 6, 7, 8 and 9.
Write the program using any loop structure of your choice, then copy/paste your Part A code into
the box below:
# menaa 10 adv
for num in range(num1+1,9,8)
print(num)
A hospital in Abu Dhabi needs to determine if visitors can walk freely within the building. Visitors
will receive a green or gray entry pass based on their Covid-19 vaccination status and days
since their last PCR test. The hospital has asked you to create the program using the following
logic:
If the visitor is 'VACCINATED' and their 'PCR is <= 30 days', then print 'GREEN PASS'.
If the visitor is 'NOT VACCINATED' and their 'PCR is <= 7 days', then print 'GREEN PASS'.
Afterwards, copy/paste your complete Part B code into the box below:
# menaa 10 adv
vaccine = input ("please enter vaccine status: ")
PCR = input ("enter the number of days since last PCR: ")
PCR = int (PCR)
if vaccine == "vaccinated":
if PCR<= 30:
else:
yes=="green pass"