aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcariblaker <[email protected]>2021-10-13 15:54:52 -0700
committerGitHub <[email protected]>2021-10-13 15:54:52 -0700
commit8015b2bdef58999d2800be2cead8b3d9bfcdb131 (patch)
tree7a84eb62d08c2dbfeb0d948ee8beb5694fe3e3a4
parentAdd online IDE url (diff)
downloadcst116-lab3-cariblaker-8015b2bdef58999d2800be2cead8b3d9bfcdb131.tar.xz
cst116-lab3-cariblaker-8015b2bdef58999d2800be2cead8b3d9bfcdb131.zip
Add files via upload
This isn’t done but you wanted it on github so here it is!
-rw-r--r--Menu.cpp40
1 files changed, 40 insertions, 0 deletions
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 <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;
+
+ 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