aboutsummaryrefslogtreecommitdiff
path: root/main 2.cpp
blob: 87286101fbccaaafe43e800077686b7abd09714d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}