Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

CCDI (G10 Adv) - Checkpoint 3 - SA

(100 marks total)

Student Name Menaa Esam


Student ID 524496 Section
School Name Al bahya Date Completed 11-21-22

Please complete Part A and Part B, then return to your teacher as instructed.

Part A (40 marks)

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)

Checkpoint 3 - SA Page 1 of 4 CCDI – G10 Adv (2022-23-T1)


Checkpoint 3 - SA Page 2 of 4 CCDI – G10 Adv (2022-23-T1)
Part B (60 marks)

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'.

 Otherwise, print 'GRAY 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"

Checkpoint 3 - SA Page 3 of 4 CCDI – G10 Adv (2022-23-T1)


Checkpoint 3 - SA Page 4 of 4 CCDI – G10 Adv (2022-23-T1)

You might also like