Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

From the top of the code line all the way to where it says: SinusInfection(); th

ID: 3677654 • Letter: F

Question

From the top of the code line all the way to where it says: SinusInfection(); the code runs great. But the part of the code after that does not run. Can someone please tell me

how to fix it or rewrite it for me. Thanx. Code is below:

if(numOfDay>10)
cout<<" How is your head feeling? choose one: "<< " HEAVY for (Heavy and I can barely lift it off my pillow. "<<
"OR OKAY for (Okay, but the runny nose and sneezing won't quit."<<endl;
cin>> symptomType;
if(symptomType.compare("HEAVY")||("heavy")||("Heavy") == 0){
cout<< " With a typical sinus infection, feeling pain or pressure around "<<
"your eyes and nose is normal: blurred vision or a severe stiff neck. "<<
"That means the infection may have spread to your eyes or brain."<<endl<<endl;

cout<<" Does the rest of your body feel fatigue at all? YES/NO."<<endl;
cin>> ans;
if(ans.compare("yes") == 0)
FluSymptoms();

else


SinusInfection();


}


else if(symptomType.compare("OKAY")||("Okay")||("okay") == 0){
cout<<" your immune system is likely excited by some thing you're inhaling "<<
" Food allergies, however, often cause itchy mouth,skin "<<
" rashes, and GI trouble."<<endl<<endl;
cout<<"what is the color and texture of the mucus? "<<
"choose one: THICK for (It's Thick mix of green and yellow.) "<<
" Or CLEAR for (It's Clear and thin.)"<<endl;
cin>> color;


if(color.compare("Thick")||("THICK")||("thick")==0)
cout<< "Yep, it looks like you have sinus infection"<<endl;

else
Allergies();
}

Explanation / Answer

Instead of :

if(symptomType.compare("HEAVY")||("heavy")||("Heavy") == 0)

should be :

if(symptomType.compare("HEAVY") == 0 || symptomType.compare("heavy") == 0 || symptomType.compare("Heavy") == 0)

--------------------------------

Instead of :

if(color.compare("Thick")||("THICK")||("thick")==0)

should be :

if(color.compare("Thick") == 0 || color.compare("THICK") == 0 ||color.compare("thick") == 0)

Check whether it works , if not post a new question with full code and description.