aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcariblaker <[email protected]>2021-10-13 16:04:16 -0700
committerGitHub <[email protected]>2021-10-13 16:04:16 -0700
commit28c3eda10c3e544e98ef8beba7a14d1caa3656f7 (patch)
tree771e7c3106564a7ccbf7275a1a3bab91069ff7a5
parentAdd files via upload (diff)
downloadcst116-lab3-cariblaker-28c3eda10c3e544e98ef8beba7a14d1caa3656f7.tar.xz
cst116-lab3-cariblaker-28c3eda10c3e544e98ef8beba7a14d1caa3656f7.zip
Add files via uploadHEADmaster
Here’s the completed version
-rw-r--r--main 2.cpp40
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