Question: Example if age < ##: print ( message 1 ) else: print ( message 2 ) If age is less than ## , then results

Example
if age < ##:
print(message1)
else:
print(message2)
If age is less than ##, then results will be :
message1
If age not less than ##, then results will be:
message2
Specifications (Part 3a)
Collect name, birthdate, and temperature from keyboard.
Calculate age from birthdate
Prevent entry if age is less than 21 and display message why entry not
allowed.
If age over 21, check temperature to prevent sick patrons or zombies
If temperature over 99.9, patron not allowed because of fever
If temperature under 90.0, zombie not allowed entry
Repeat
Example
if age < ##:
print(message)
else:
if temp > ##:
print(message)
else:
if temp < ##:
print(message)
else:
print(message)
How To Do Part 3b
If age over 21, check temperature to prevent sick patrons or zombies
If temperature over 99.9, patron not allowed because of fever
If temperature under 90.0, zombie not allowed entry
Change else from under 21 if to elif
elif condition should test temperature for over 99.9 and display fever
message if true
If false, elif condition should test temperature for under 90.o and display
zombie message if true
Otherwise, display welcome message
Test program to make sure appropriate message displayed
Example
if age < ##:
print(message)
elif temp > ##:
print(message)
elif temp < ##:
print(message)
if and elif are lined up to the same left margin
Loops
Specifications (Part 4)
Collect name, birthdate, and temperature from keyboard.
Calculate age from birthdate
Prevent entry if age is less than 21 and display message why entry not
allowed.
If age over 21, check temperature to prevent sick patrons or zombies
If temperature over 99.9, patron not allowed because of fever
If temperature under 90.0, zombie not allowed entry
Repeat
How To Do Part 4
Repeat
Enclose all logic from first input prompt through all conditional
statements inside of while statement
while :
If you use a variable check ... use ==
Example
repeat_status ='y'
while repeat_status =='y':
var1= input("?")
var2= input("?")
var3= input("?")
var4=2022-int(var2)
var5= float(var3)
if var4< ##:
print(message)
elif var5> ##:
print(message)
elif var5< ##:
print(message)
else:
print(message)
repeat_status = input("Would you like to replay? ")
The .lower in the while line changes all entered values to lower case so
either can be entered and verified against the lower case y.
Turning in you work
Name your ZIPPED file:
Your Last Name_Section_Python_Capstone.py
Make sure the file is zipped or compressed before sending the file.
Then email me that file.
I will grade them promptly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!