-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
359 lines (319 loc) · 10.2 KB
/
main.cpp
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
#include <iostream>
#include <string>
#include "src/header/alevel.h"
using namespace ALevelN;
using namespace ALevelTest;
#include "src/header/btecnqf.h"
using namespace BTECNationalNQF;
#include "src/header/coremaths.h"
using namespace CoreMaths;
#include "src/header/tlevel.h"
using namespace TLevel;
#include "src/header/aqatechnical.h"
using namespace AQATechnicalN;
#include "src/header/extendedproject.h"
using namespace ExtendedProjectN;
#include "src/header/btecqcf.h"
using namespace BTECNationalQCF;
void SelectedALevel(); // 1
void SelectedBTECNQF(); // 2
void SelectedBTECQCF(); // 3
//void SelectedBTECRQF(); // 4
void SelectedCoreMaths(); // 6
void SelectedTLevels(); // 8
void SelectedAQATechnical(); // 9
void SelectedExtendedProject(); // 10
void SelectedRunTests();
int main()
{
std::cout << "=========================================" << std::endl;
std::cout << "UCAS GRADE CALCULATOR" << std::endl;
std::cout << "Written by: @WillTheDeveloper and @colsak" << std::endl;
std::cout << "=========================================" << std::endl;
int selection; // Create the variable for the selection below.
std::cout << "Which qualification type are you doing?" << std::endl;
std::cout << "[1] A Levels" << std::endl; // Done
std::cout << "[2] BTEC NQF" << std::endl; // Done
std::cout << "[3] BTEC QCF" << std::endl;
std::cout << "[4] BTEC RQF" << std::endl;
std::cout << "[5] Cambridge PREU" << std::endl;
std::cout << "[6] Core maths" << std::endl; // Done
std::cout << "[7] OCR Cambridge Technical" << std::endl;
std::cout << "[8] T Levels" << std::endl; // Done
std::cout << "[9] AQA Technicals" << std::endl; // Done
std::cout << "[10] Extended Project" << std::endl; // Done
std::cout << "=========================================" << std::endl;
std::cout << "Enter selection number: ";
std::cin >> selection; // Store the number entered by the user.
switch (selection) {
case 1:
SelectedALevel();
break;
case 2:
SelectedBTECNQF();
break;
case 3:
SelectedBTECQCF();
break;
// case 4:
// SelectedBTECRQF();
// break;
case 6:
SelectedCoreMaths();
break;
case 8:
SelectedTLevels();
break;
case 9:
SelectedAQATechnical();
break;
case 10:
SelectedExtendedProject();
break;
case 69:
SelectedRunTests();
break;
}
}
std::string Grades()
{
std::string pts; // Create the variable for the input below to be passed to subsequent method.
std::cout << "What grade did you get? ";
std::cin >> pts;
return pts;
}
void SelectedBTECQCF()
{
int selection;
std::cout << "Which type of BTEC QCF?" << std::endl;
std::cout << "NOTE: These are all from Pearson." << std::endl;
std::cout << "[0] Not sure" << std::endl;
std::cout << "[1] 90-Credit Diploma" << std::endl;
std::cout << "[2] Certificate" << std::endl;
std::cout << "[3] Diploma" << std::endl;
std::cout << "[4] Extended Diploma" << std::endl;
std::cout << "[5] Subsidiary Diploma" << std::endl;
std::cout << "Enter selection number: ";
std::cin >> selection;
switch (selection) {
case 1: {
BTECNationalQCF::Pearson90DiplomaGrades();
std::string pts;
pts = Grades();
std::cout << BTECNationalQCF::Pearson90Diploma(pts) << " points." << std::endl;
break;
}
case 2: {
BTECNationalQCF::PearsonCertificateGrades();
std::string pts;
pts = Grades();
std::cout << BTECNationalQCF::PearsonCertificate(pts) << " points." << std::endl;
break;
}
case 3: {
BTECNationalQCF::Pearson90DiplomaGrades();
std::string pts;
pts = Grades();
std::cout << BTECNationalQCF::PearsonDiploma(pts) << " points." << std::endl;
break;
}
case 4: {
BTECNationalQCF::PearsonExtendedDiplomaGrades();
std::string pts;
pts = Grades();
std::cout << BTECNationalQCF::PearsonExtendedDiploma(pts) << " points." << std::endl;
break;
}
case 5: {
BTECNationalQCF::PearsonSubsidiaryDiplomaGrades();
std::string pts;
pts = Grades();
std::cout << BTECNationalQCF::PearsonSubsidiaryDiploma(pts) << " points." << std::endl;
break;
}
}
}
void SelectedALevel()
{
int selection;
std::cout << "Which type of A Level?" << std::endl;
std::cout << "[0] Not sure" << std::endl;
std::cout << "[1] Standard A Levels" << std::endl;
std::cout << "[2] A Level (9 Unit Award)" << std::endl;
std::cout << "[3] A Level Double Award" << std::endl;
std::cout << "[4] AS Level" << std::endl;
std::cout << "[5] AS Level Double Award" << std::endl;
std::cout << "Enter selection number: ";
std::cin >> selection;
switch (selection) {
case 1: {
ALevelN::ALevelGrades();
std::string pts;
pts = Grades();
std::cout << ALevelN::ALevel(pts) << " points." << std::endl;
break;
}
case 2: {
ALevelN::ALevelNineUnitAwardGrades();
std::string pts;
pts = Grades();
std::cout << ALevelN::ALevelNineUnitAward(pts) << " points." << std::endl;
break;
}
case 3: {
ALevelN::ALevelDoubleAwardGrades();
std::string pts;
pts = Grades();
std::cout << ALevelN::ALevelDoubleAward(pts) << " points." << std::endl;
break;
}
case 4: {
ALevelN::ASLevelGrades();
std::string pts;
pts = Grades();
std::cout << ALevelN::ASLevel(pts) << " points." << std::endl;
break;
}
case 5: {
ALevelN::ASLevelDoubleAwardGrades();
std::string pts;
pts = Grades();
std::cout << ALevelN::ASLevelDoubleAward(pts) << " points." << std::endl;
break;
}
}
}
void SelectedBTECNQF()
{
int selection;
std::cout << "Which type of BTEC NQF?" << std::endl;
std::cout << "[0] Not sure" << std::endl;
std::cout << "[1] National Award" << std::endl;
std::cout << "[2] National Certificate" << std::endl;
std::cout << "[3] National Diploma" << std::endl;
std::cout << "Enter selection number: ";
std::cin >> selection;
switch (selection) {
case 1: {
BTECNationalNQF::NationalAwardGrades();
std::string grade;
grade = Grades();
std::cout << BTECNationalNQF::NationalAward(grade) << std::endl;
break;
}
case 2: {
BTECNationalNQF::NationalCertificateGrades();
std::string grade;
grade = Grades();
std::cout << BTECNationalNQF::NationalCertificate(grade) << std::endl;
break;
}
case 3: {
BTECNationalNQF::NationalDiplomaGrades();
std::string grade;
grade = Grades();
std::cout << BTECNationalNQF::NationalDiploma(grade) << std::endl;
break;
}
}
}
void SelectedCoreMaths()
{
int selection;
selection = 1;
switch (selection) {
case 1:
CoreMaths::CoreMathsGrades();
std::string pts;
pts = Grades();
std::cout << CoreMaths::CoreMathsUCASGrade(pts) << std::endl;
break;
}
}
void SelectedTLevels()
{
int selection;
selection = 1;
switch (selection) {
case 1:
TLevel::TLevelGrades();
std::string grade;
grade = Grades();
std::cout << TLevel::TLevelUCASGrade(grade) << std::endl;
break;
}
}
void SelectedAQATechnical()
{
int selection;
std::cout << "Which type of AQA Technical are you doing?" << std::endl;
std::cout << "[1] Level 3 Foundation Technical" << std::endl;
std::cout << "[2] Level 3 Technical (1080)" << std::endl;
std::cout << "[3] Level 3 Technical (540)" << std::endl;
std::cout << "[4] Level 3 Technical (720)" << std::endl;
std::cout << "Enter selection number: ";
std::cin >> selection;
switch(selection) {
case 1: {
AQATechnicalN::L3FoundationTechnicalGrades();
std::string pts;
pts = Grades();
std::cout << AQATechnicalN::L3FoundationTechnical(pts) << std::endl;
break;
}
case 2: {
AQATechnicalN::L3Technical1080Grades();
std::string pts;
pts = Grades();
std::cout << AQATechnicalN::L3Technical1080(pts) << std::endl;
break;
}
case 3: {
AQATechnicalN::L3Technical540Grades();
std::string pts;
pts = Grades();
std::cout << AQATechnicalN::L3Technical540(pts) << std::endl;
break;
}
case 4: {
AQATechnicalN::L3Technical720Grades();
std::string pts;
pts = Grades();
std::cout << AQATechnicalN::L3Technical720(pts) << std::endl;
break;
}
}
}
void SelectedExtendedProject()
{
int selection;
selection = 1;
switch(selection) {
case 1: {
ExtendedProjectN::ExtendedProjectGrades();
std::string pts;
pts = Grades();
std::cout << ExtendedProjectN::ExtendedProject(pts) << std::endl;
break;
}
}
}
void SelectedRunTests()
{
int selection;
std::cout << "What would you like to test?" << std::endl;
std::cout << "[0] All" << std::endl;
std::cout << "[1] A Levels" << std::endl;
std::cout << "Enter selection number: ";
std::cin >> selection;
/*switch (selection) {
case 0: {
std::cout << ALevelTest::RunTests() << std::endl;
break;
}
case 1: {
std::cout << ALevelTest::TestALevel() << std::endl;
break;
}
}*/
}