aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab3/Lawrance CST116-Lab3.cpp
blob: d7b6b7d14be92f20056651d2a991f5f879bd1c08 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include <iostream>
using namespace std;

//5a
//6.4 Exercises
//int main()
//{
//    int a = 0;
//    cout << a++ << endl;
//    cout << ++a << endl;
//    cout << a + 1 << endl;
//    cout << a << endl;
//    cout << --a << endl;
//}

//5a
//7.2 Exercises
//int main()
//{
//	int money = 0;
//	int accounts = 0;
//
//	cout << "What is your balance?" << endl;
//	cin >> money;
//	cout << "How many accounts do you have open with us?" << endl;
//	cin >> accounts;
//
//	if (money >= 25000)
//		cout << "Your membership is Platinum";
//	else if (money < 25000 && money > 10000 && accounts == 2)
//		cout << "Your membership is Gold";
//	else if (money > 10000 && accounts == 1)
//		cout << "Your membership is Silver";
//	else if (money <= 10000)
//		cout << "Your membership is Copper";
//
//	return 0;
//}

//5b
//7.4 Exercises
//int main()
//{
//	char menu_selection;
//	cout << "Student Grade Program" << endl;
//	cout << "- Main Menu -" << endl << endl;
//	cout << "1. Enter name\n2. Enter test scores\n3. Display test scores\n9. Exit"
//		 << endl << endl;
//	cout << "Please enter your choice from the list above ";
//
//	cin >> menu_selection;
//
//	switch (menu_selection)
//	{
//	case '1':
//		cout << "Enter name";
//		break;
//	case '2':
//		cout << "Enter test scores";
//		break;
//	case '3':
//		cout << "Display test scores";
//		break;
//	case '9':
//		cout << "Exit";
//		break;
//	}
//}