Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

print(Welcome to a fever diagnosis system) print(Please answer the questions in yes or no, Thank you!) def coughing(): questions = input(Are you couging?) if(questions ==

print("Welcome to a fever diagnosis system")

print("Please answer the questions in yes or no, Thank you!")

def coughing():

questions = input("Are you couging?")

if(questions == 'yes'):

short_breath()

else:

headache()

def short_breath():

questions = input("Are you short of breath or wheezing or couging up phlegm?")

if(questions == 'yes'):

print("Possibilities include pneumonia or infection of airways")

else:

headache2()

def headache2():

questions = input("Do you have a headache?")

if(questions == 'yes'):

print("Possibilities include viral infection")

else:

raching()

def headache():

questions = input("Do you have headche?")

if(questions == 'yes'):

bending()

else:

aching()

def bending():

questions = input ("Are you experiencing any of the following: pain when bending your head forward, nausea or vomiting, bright light hurting your eyes, drowsiness or confusion")

if(questions == 'yes'):

print("Possibilities include menigitis")

else:

vomiting()

def vomiting():

questions = input("Are you vomiting or had diarrhead")

if(questions == 'yes'):

print("Possibilities include digestive tract infection")

else:

aching()

def aching():

questions = input("Do you have aching bones or aching joints")

if(questions == 'yes'):

print("Possibilities include viral infection")

else:

rash()

def rash():

questions = input("Do you have a rash")

if(questions == 'yes'):

print("Insufficient information to list possibilities")

else:

sore_throat()

def sore_throat():

questions = input("Do you have a sore throat?")

if(questions == 'yes'):

print("Possibolities include a throat infection")

else:

back_pain()

def back_pain():

questions = input("Do you have back pain just above the waist with chills and fever?")

if(questions == 'yes'):

print("Possibilities include kidney infection")

else:

urinating()

def urinating():

questions = input("DO you have pain urinating or are urinating more ofter")

if(questions == 'yes'):

print("Possinilities include a urinary tract infection")

else:

hot()

def hot():

questions = input("Have you spent the day in the sun or in hot condition")

if(questions == 'yes'):

print("Possibilities sunstroke or heat exhaustion")

else:

print("Insufficient information to list possibilities.")

Why this code can't run?

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions