-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMT_Bank_System.cpp
More file actions
123 lines (85 loc) · 2.32 KB
/
Copy pathIMT_Bank_System.cpp
File metadata and controls
123 lines (85 loc) · 2.32 KB
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
// imports
#include <iostream>
#include <string>
using namespace std;
// Main class
int main(){
int window ;
cout<< "choose"<<"\n "<<"1- Admin Window."<<"\n 2- Client Window.";
// if choose 1 view Admin Window
// if choose 2 view Client Window
cin>> window ;
if (window == 1 ){
cout<<"Enter Admin Username and Password ";
}
else if (window == 2 ) {
cout<<"Enter Bank Account ID and Password ";
}
else{
cout<<"Sorry, Please choose 1 or 2 or 3 ";
}
cout <<"Alaa";
return 0;
}
// Admin calss
class Admin_Window{
public:
void init_vew_window();
void creat_Account();
void open_existing_account();
void Exit_System();
};
void init_vew_window(){
int mode;
printf("1- Creat Acount \n2- Open Existing Acount \n3- Exit System");
cin>> mode ;
}
void Exit_System(){
exit(0);
}
// user class
class User_Window{
};
// Creat Acount class
class Creat_Bank_Account{
// information about user account
private:
string FullName;
string FullAdress;
string Account_Status; // by defult active
string Guardian;
int NationalID;
int age;
int BankAcountID;
int GuardianID;
int Balance;
int passowrd; // generate random
public:
// define conatractor
Creat_Bank_Account();
Creat_Bank_Account(string FullName, string FullAdress, string Account_Status, string Guardian );
// put getter and setter for each attribute
// define methods that can user do
void init_Client_Window(); // show main_menu
void Change_Account_Password();
void Get_Cash(float cash_amount);
void Deposit_in_Account(float cash_amount);
void Return_to_main_menu();
};
// implement methods
Creat_Bank_Account::Creat_Bank_Account(){
}
Creat_Bank_Account::Creat_Bank_Account(string FullName, string FullAdress, string Account_Status, string Guardian ){
}
// put getter and setter for each attribute
// define methods that can user do
void Creat_Bank_Account::init_Client_Window(){
} // show main_menu
void Creat_Bank_Account::Change_Account_Password(){
}
void Creat_Bank_Account::Get_Cash(float cash_amount){
}
void Creat_Bank_Account::Deposit_in_Account(float cash_amount){
}
void Creat_Bank_Account::Return_to_main_menu(){
}