The Virus Stops Here | Human Factors

Team Updates

#COVID-19 Prgram Draft 1
#This survey is meant to be taken by people who have all this information readily available such as a government official
defcovid_impacts():
counter=0.0
prompt="This is a survey testing to see if your city is at risk of a COVID-19 outbreak. Please answer the questions as directed.\n"
print(prompt)
intl_travel=input("Does your city have an international airport?\nYes or no? ")
#type convert the response to an int just in case
#intl_travel = int(intl_travel)
ifintl_travel.lower() =='yes':
counter+=5.0
print(counter)
print('\n')
population=input("What is the population of your metropolitan area? ")
population=int(population)
if (population<1500000):
counter+=2.0
elif (population>=1500000) and (population<=3000000):
counter+=3.0
elif (population>3000000):
counter+=4.0
print(counter)
print('\n')
pop_dens=input("What is the population density of your city/town in people/sq. mile? ")
#type convert the response to an float just in case
pop_dens=float(pop_dens)
if (pop_dens>0.0) and (pop_dens<=1.0):
counter+=0.0
elif (pop_dens>1.0) and (pop_dens<=5.0):
counter+=1.0
elif (pop_dens>5.0) and (pop_dens<=25.0):
counter+=2.0
elif (pop_dens>25.0) and (pop_dens<=250.0):
counter+=3.0
elif (pop_dens>250.0) and (pop_dens<=1000.0):
counter+=4.0
elif (pop_dens>1000.0):
counter+=5.0
print(counter)
print('\n')
public_transportation=input("Is public transportation heavily relied upon in your city?\nYes or no?")
#public_transportation = int(public_transportation)
ifpublic_transportation.lower() =='yes':
counter+=5
print(counter)
print('\n')
major_highways=input("Is your city within close proximity of any major highways, interstates, or freeways?")
ifmajor_highways.lower() =='yes':
counter+=5
print(counter)
print('\n')
covid_impacts()
splarkinSamuel Larkin