#include using namespace std; int main() { double ClassA=15, ClassB=12, ClassC=9; double total=0, input; // Gets the number of ClassA tickets sold cout << endl << "Enter the # of ClassA tickets sold: "; cin >> input; // full if-else with a nestged if-else if (input < 5) { if (input < 2) // give discouraging input { cout << endl << "Are you even trying?" << endl; } else { cout << endl << "That wasn't too many!" << endl; } } else { // good sales then cout << endl << "Great Sales Volumes!" << endl; } // end out if total = total + (ClassA * input); // Gets the number of ClassB tickets sold cout << endl << "Enter the # of ClassB tickets sold: "; cin >> input; total = total + (ClassB * input); // if by themselves - all 3 will trigger for 100 if (input > 50) { cout << endl << "Over 50"; } if (input > 60) { cout << endl << "Over 60"; } if (input > 70) { cout << endl << "Over 70"; } // Gets the number of ClassC tickets sold cout << endl << "Enter the # of ClassC tickets sold: "; cin >> input; total = total + (ClassC * input); // if plus an else-if - only 1 triggers if (input > 50) { cout << endl << "Over 50!"; } else if (input > 40) { cout << endl << "Over 40"; } else if (input > 30) { cout << endl << "Over 30"; } else { // triggers for # 29. cout << endl << "None of the above!"; } // prints the total to the screen cout << endl <<"Total = $" << total; // getchar(); system("pause"); // or use this one to pause the return 0; }