From b15380920ebeeb59f08c6975ff2365c411cff0d7 Mon Sep 17 00:00:00 2001 From: austinsworld15 <91639488+austinsworld15@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:01:57 -0700 Subject: Update CST116F2021-Lab3-Guertin.cpp --- CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp b/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp index 7c242fc..77b28a7 100644 --- a/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp +++ b/CST116F2021-Lab3/CST116F2021-Lab3-Guertin.cpp @@ -76,5 +76,36 @@ int main() 5b 7.4 pg 161 #1 +#include +#include +using std::endl; +using std::cout; + +int main() +{ + + int selection; + + cout << "Student Grade program\n -Main Menu- \n\n1. Enter Name\n2. Enter test scores\n3. Display test scores\n9. Exit\n\nPlease enter your choice from the list above\n\n"; + std::cin >> selection; + + switch (selection) + { + case 1 : + cout << "\n\nYour choice is: Enter Name?\n\n"; + break; + case 2: + cout << "\n\nYour choice is: Enter Test Scores?\n\n"; + break; + case 3: + cout << "\n\nYour choice is: Display Test Scores?\n\n"; + break; + case 9: + cout << "\n\nYour choice is: to Exit?\n\n"; + break; + default: + cout << "\n\nYour selection is invalid... Try again\n\n"; + } +} -- cgit v1.2.3