From 8015b2bdef58999d2800be2cead8b3d9bfcdb131 Mon Sep 17 00:00:00 2001 From: cariblaker <91995306+cariblaker@users.noreply.github.com> Date: Wed, 13 Oct 2021 15:54:52 -0700 Subject: Add files via upload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This isn’t done but you wanted it on github so here it is! --- Menu.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Menu.cpp diff --git a/Menu.cpp b/Menu.cpp new file mode 100644 index 0000000..5cf1bef --- /dev/null +++ b/Menu.cpp @@ -0,0 +1,40 @@ +#include +#include +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; + + 3: + cout << "You have chosen Option 3. Display test scores"; + break; + se} + 9: + cout << "You have chosen Option 9. Exit"; + break; return 0; +} \ No newline at end of file -- cgit v1.2.3