Question: For this assignment, you will write a program that implements this from FamilDoctororg The decision tree helps the user determine if he has a cold
For this assignment, you will write a program that implements this from FamilDoctororg The decision tree helps the user determine if he has a cold or a flu or something else. PT[201]% gcc -Wall cold-c PT[202]./a.out Do you have a fever? (y) n Do you have a runny and/or itchy nose, sneezing, and itchy eyes? (y) y You nay have ALLERGIES PT[20 31% ./a . out Do you have a fever? (y) y Do you have a sore throat and headache wlthout nasal drainage? (y) n Did your symptoss start suddenly, and do you have a combination of symptoms Including muscle aches, chills a sore throat, runny nose or ough? (y) ou may have the FLU. PT[2041% ./a , out Do you have a fever? (y)s Do you have a runny and/or itchy nose, sneezing, and itchy eyes? (y) Do you have sneezing, a sore throat, headache, congestion and a runny nose (y) y You probably have a COLD. Do you have a fevert (y)y Do you have a sore throat and headache without nasal drainage? (y/m) Did your symptoms start suddenly, and do you have acombination of synptons Including musele aches, chills e sore throat, runny nose or cough? (y) Do you have a persistent cough that brings up yel1owish or arsenich mucus, wheezing and shortness of treath? (y) Do you have a headache or muscle aches, nauses or vositing, and uatery diaerhes? (y) You should go see a doctor PT[206 )5 O Type here to search 5 6 7 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
