-
Notifications
You must be signed in to change notification settings - Fork 1
/
banking_record_management_system.cpp
106 lines (88 loc) · 2.22 KB
/
banking_record_management_system.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
// Banking Record Management System (by VISHAL JOSHI)
// header files used
#include <iostream>
#include <iomanip> // for functions setw(), setfill()
#include <fstream> // for implementing files
#include <cctype> // for function toupper()
#include "Diff.h" // contains decorative functions
#include "File.h" // contains definition of Files
#include "Intro.h" // contains defintion for introduction menu
using namespace std;
int main()
{
char ch;
int num;
Bank();
getch();
system("cls");
intro();
system("color 90"); // to change foreground color to blue and background color to yellow
do
{
system("cls");
cout << "\n\n\n\tMAIN MENU";
cout << "\n\n\t01. CREATE ACCOUNT";
cout << "\n\n\t02. DEPOSIT MONEY TO AN ACCOUNT";
cout << "\n\n\t03. WITHDRAW MONEY FROM AN ACCOUNT";
cout << "\n\n\t04. BALANCE ENQUIRY OF AN ACCOUNT";
cout << "\n\n\t05. ALL ACCOUNT HOLDER LIST FROM BANK DATABASE";
cout << "\n\n\t06. MODIFY AN ACCOUNT";
cout << "\n\n\t07. CLOSE AN ACCOUNT";
cout << "\n\n\t08. EXIT";
cout << "\n\n\tSelect Your Option (1-8) ";
cin >> ch;
system("cls");
switch (ch)
{
case '1':
write_account();
break;
case '2':
cout << "\n\nEnter Account Number. : ";
cin >> num;
deposit_withdraw(num, 1);
break;
case '3':
cout << "\nEnter the account Number. : ";
cin >> num;
deposit_withdraw(num, 2);
break;
case '4':
cout << "Enter the account Number. : ";
cin >> num;
display_sp(num);
break;
case '5':
if (PassWord()) // if password goes wrong 3 times , return to main menu
break;
display_all();
break;
case '6':
if (PassWord()) // if password goes wrong 3 times , return to main menu
break;
cout << "\n\n\n\nEnter The account No. :";
cin >> num;
modify_account(num);
break;
case '7':
if (PassWord()) // if password goes wrong 3 times , return to main menu
break;
cout << "\n\n\n\nEnter The account No. : ";
cin >> num;
delete_account(num);
break;
case '8':
system("color E9");
End();
cout << "\n\n\t\t\t\t\t\tThanks for Visiting our portfolio\n\n\n";
system("cls");
thank();
break;
default:
cout << "\nEnter Valid option\n ";
}
cin.ignore();
cin.get();
} while (ch != '8');
return 0;
}