diff options
| -rw-r--r-- | main 2.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main 2.cpp b/main 2.cpp new file mode 100644 index 0000000..8728610 --- /dev/null +++ b/main 2.cpp @@ -0,0 +1,40 @@ +#include <iostream> +#include <iomanip> +using std::cout; +using std::cin; +using std::endl; + +int main() +{ + int input = 0; + + cout.width(34); + cout << "Student Grade Program\n"; + cout.width(30); + cout << "- Main Menu -\n"; + + cout << "\n\t\t1. Enter name \n"; + cout << "\t\t2. Enter test scores \n"; + cout << "\t\t3. Display test scores \n"; + cout << "\t\t9. Exit \n"; + + cout << "\nPlease enter your choice from the list above: "; + cin >> input; + + switch ( input ) + { + case 1: + cout << "You have chosen Option 1. Enter name'" << endl; + break; + case 2: + cout << "You have chosen Option 2. Enter test scores"; + break; + case 3: + cout << "You have chosen Option 3. Display test scores"; + break; + case 9: + cout << "You have chosen Option 9. Exit"; + break; + } + return 0; +}
\ No newline at end of file |