#include #include #include using namespace std; //gives a best guess on whether you can dunk or not based on height int main () { cout << "Enter your heigh in cm to see if you might be able to dunk or not: "; int height {0}; cin >> height; if (!cin){ cerr << "Pleae round your height to the nearest whole number\n"; if (height <= 160) { cout << "Yea... Maybe in another life\n"; } else if (height <= 170) { cout << "It would take a miracle but not impossible\n"; } else if (height <= 180) { cout << "With athleticism and training it's definetly possible, but far from easy\n"; } else if (height <= 190) { cout << "There's a good chance you'll get it with little difficulty\n"; } else if (height >= 200) { cout << "If you can't dunk at this point, you're a disgrace\n"; } else { cout << "Sorry, no idea if you can dunk or not\n; } /* I thought a little bit about if there was any way to make this more efficient My first thought was to use a switch statement but realized that you can't use < or > to express a range of values for one case*/ return EXIT_SUCSESS }