#include using namespace std; int main() { char readingType; double temp; int ageGroup; /* Complete here */ /* */ do { cout << "\nA) Armpit\nM) Mouth\nE) Ear\nPlease select the reading type for body temperature mesurment: "; cin >> readingType; } while(readingType != 'A' && readingType != 'M' && readingType !='E'); cout << "Please enter the tempature measure: "; cin >> temp; switch (readingType) { case 'M': temp = temp - 0.5; break; case 'E': temp = temp - 0.8; break; default: break; } do { cout << "\n1) Babies and children\n2) Adults\n3) Adults over ages 65\nPlease select the age group or press one of the other numbers to exit "; cin >> ageGroup; switch (ageGroup) { case 1: if (temp <= 35.5) { cout << "Hypothermia" << endl; } else if (temp >= 36.8 && temp <= 37.8) { cout << "Normal" << endl; } else if (temp <= 38.6) { cout << "Fever" << endl; } else if(temp <= 40.5) { cout << "Hyperthermia" << endl; } else { cout << "Hyperpyrexia" << endl; } break; case 2: if (temp <= 35) { cout << "Hypothermia" << endl; } else if (temp >= 36.5 && temp <= 37.5) { cout << "Normal" << endl; } else if (temp <= 38.3) { cout << "Fever" << endl; } else if(temp <= 40) { cout << "Hyperthermia" << endl; } else { cout << "Hyperpyrexia" << endl; } break; case 3: if (temp <= 34.5) { cout << "Hypothermia" << endl; } else if (temp >= 36 && temp <= 37.2) { cout << "Normal" << endl; } else if ( temp > 37.2 && temp <= 38) { cout << "Fever" << endl; } else if(temp > 38 && temp <= 39.5) { cout << "Hyperthermia" << endl; } else if(temp > 39.5) { cout << "Hyperpyrexia" << endl; } break; default: break; } } while (ageGroup < 1 || 3 < ageGroup); return (0); }