Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Correct if there is any mistake or error in the coding below and if can add array in the coding below. 2. Create a

1. Correct if there is any mistake or error in the coding below and if can add array in the coding below.
2. Create a flowchart with including array of the coding below.
3. Explain briefly about the flowchart that you have created based on the coding given below that includes array.
Coding is as shown below.
# Covid-19 home quarantine
#Name : HARSHINI D/O BASKARAN
#Date : 9/12/2021
#Email : saianiswarr3107@gmail.com
#ID : KA19091
# Use input to select whether they are suspecting to be Covid-19 positive due to any related symptoms or having contact with Covid-19 positive patient and need to be home quarantined for 10 - 14 days.
print('Are you a low risk person who start exhibiting Covid-19 symptom or travelled overseas or have contact with positive Covid-19 patient within the past 14 days? : [1]Yes [2]No')
select = eval ( input ('Enter your selection :'))
if select ==1 :
# User input their body temperature
bodyTemp = eval(input ( '1.Enter your current body temperature in degree celcius: '))
#user input whether they have 2 or more symmptoms listed below
print ('2. Do you exhibiting 2 or more symptoms listed below? ')
print (' a.Fever ')
print (' b.Chills ')
print (' c.Shivering ')
print (' d.body ache ')
print (' e.Headache ')
print (' f.Sore throat ')
print (' g.Nausea or vomitting ')
print (' h.Diarrhea ')
print (' i.Fatigue ')
print (' j.Runny nose or nasal congestion ')
print('Response : [1]yes [2]no')
response = eval (input ('Enter your response: '))
#User input other symptoms they faced if relavent
print ('3.Besides the symptom listed on question 2,are you exhibiting any other symptom listed below ? ')
print ('a.Cough')
print ('b.Difficulty breathing')
print ('c.Loss of smell')
print ('d.Loss of taste')
print('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
# User input whether they have visitted other country within last 14 days
print ('4.Do you visit any other country within the past 14 days?')
print ('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
# User input to whether they have fully vaccinated
print ('5.Are you fully vaccinated?')
print ('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
if response == 1:
print ('select : [1]yes [2]no')
select = eval(input('Travellers who are fully vaccinated (14 days after 2nd dose/28 days for single dose vaccines) are required to undergo mandatory quarantine at designated quarantine centres for a period of seven (7) days upon arrival in Malaysia':))
if select == 1:
ic=int (input('Enter OK'))
# User input to whether they are partially vaccinated
print ('6.Are you partially vaccinated?')
print ('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
if response == 1:
print ('select : [1]yes [2]no')
select = eval(input('Travelers who are unvaccinated OR have not completed the vaccination are required to go for mandatory quarantine for ten (10) days upon arrival in Malaysia':'))
if select == 1:
ic=int (input('Enter OK'))
#User input whether they have close contact with Covid-19 positive patient within last 14 days
print ('7.Do you have close contact with positive Covid-19 patient within the past 14 days?')
print ('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
if response == 1:
print ('select : [1]yes [2]no')
select = eval(input('Are the positive Covid-19 patient you have contact with your relative or friends?:'))
if select == 1:
ic=int (input('Enter the patients Ic number:'))
else :
print ('Please proceed to question 8.')
#User input whether they are MOH Covid-19 Volunteer within last 14 days
print ('8. Are you a MOH Covid-19 volunteer in the last 14days?: ')
print ('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
if response == 1:
place = input( 'Enter the place you work as MOH Covid-19 volunteer : ')
else :
print('Please proceed to question 9.')
#User input whether they have done Covid-19 viral test
print ('9. Have you done any Covid-19 viral test in any private or government clinic?')
print ('Response : [1]Yes with result positive [2]No')
response = eval (input('Enter your response: '))
if response ==1:
print (' You are required to quarantine at home for 14 days. You can seek for advices about Covid-19 via the website www.doctoroncall.com.my/coronavirus ')
elif response ==2 :
print (' If you are concern about your health condition , you can proceed to any government or private clinic to do Covid-19 viral test .')
else :
print('Sorry wrong response.')
#User input whether they want to continue
print ('10. Do you want to continue?')
print ('Response : [1]yes [2]no')
response = eval (input('Enter your response: '))
if response == 1:
place = input( 'Any other inquiries : ')
elif select == 2 :
print ( 'Thank you for your response. Please continue the good work of following the SOP to prevent the further spread of Covid-19. You may leave this site')
else :
print ('Sorry wrong selection')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

=+4 Develop and deliver the CCT program.

Answered: 1 week ago

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago