-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
35 lines (33 loc) · 855 Bytes
/
Main.cpp
File metadata and controls
35 lines (33 loc) · 855 Bytes
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
#include <iostream>
#include "functions.h"
#include "TrafficDepartment.h"
using namespace std;
int main() {
int choice;
do {
cout << endl << "====== TRAFFIC FINE SYSTEM ======" << endl;
cout << "1. Generate Fine" << endl;
cout << "2. Check Violation History" << endl;
cout << "3. Admin Panel" << endl;
cout << "4. Exit" << endl;
cout << "Select Option: ";
choice = inputIntRange(1, 4);
cout << endl;
switch (choice) {
case 1: {
generateFine();
break;
}
case 2: {
checkViolationHistory();
break;
}
case 3: {
TrafficDepartment td;
td.adminMenu();
break;
}
}
} while (choice != 4);
return 0;
}