// switch statement practice // Personality test that calculates // aptitude of passing my class. #include #include using namespace std; int main() { char answer; cout << "Star Trek is better than Star Wars? ('y' or 'n')" << endl; cin >> answer; // change this from an IF-IF ELSE Statement // to a Switch Statement if(answer == 'y'){ cout << "Wrong! You are likely to fail my class!" << endl; } else if(answer == 'n'){ cout << "Correct! You will likely get an A in my class!!" << endl; } else{ cout << "Invalid Input. This does not bode well for you." << endl; } return 0; }