-
Notifications
You must be signed in to change notification settings - Fork 0
/
DemoWallet.c
169 lines (165 loc) · 4.16 KB
/
DemoWallet.c
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
/* Project Name: Student Assistant
Developed By: Jameur Rahman Fida
Contact: fida.cse@gmail.com
fb.me/fida97
github.com/fida97 */
//Demo Wallet C Code
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
int DemoWallet()
{
int code;
printf("\t\t\tWelcome To Demo Wallet\n\n");
printf("\t\t\tPlease Enter Your Wallet Pin\n\n\t\t\t");
scanf("%d",&code);
system ("cls");
switch(code)
{
case 1234:
{
int code1;
printf("\n\t\t\tLog In Successful\n\n");
printf("\t\t\tChoose An Option:\n\n\t\t\t1.Send Money\n\t\t\t2.Buy Airtime\n\t\t\t3.Payment\n\t\t\t4.Cash Out\n\t\t\t5.Cheak Balence\n\n\t\t\t");
scanf("%d",&code1);
system ("cls");
switch(code1)
{
case 1:
{
int a,b;
int code2;
printf("\n\t\t\tEnter A Number: ");
scanf("%d",&a);
printf("\n\t\t\tEnter Amount: ");
scanf("%d",&b);
system ("cls");
printf("\n\t\t\tSend Money Taka %d To %d\n\n\t\t\t1.Confirm\t2.Close\n\n\t\t\t",b,a);
scanf("%d",&code2);
system ("cls");
switch(code2)
{
case 1:
{
int pin;
printf("\n\t\t\tPlease Enter Your Wallet Pin\n\n\t\t\t");
scanf("%d",&code);
system ("cls");
switch(code)
{
case 1234:
{
printf("\n\t\t\tSend Money Taka %d To %d Has Been Successful.\n\n\t\t\t",b,a);
mainmenu();
break;
}
break;
default:
puts("\n\t\t\tWrong Pin");
mainmenu();
break;
}
return(0);
break;
}
}
break;
}
case 2:
{
int a,b;
int code2;
printf("\n\t\t\tEnter Airtime Number: ");
scanf("%d",&a);
printf("\n\t\t\tEnter Amount: ");
scanf("%d",&b);
system ("cls");
printf("\n\t\t\tBuy Airtime Taka %d To %d\n\n\t\t\t1.Confirm\t2.Close\n\n\t\t\t",b,a);
scanf("%d",&code2);
system ("cls");
switch(code2)
{
case 1:
{
int pin;
printf("\n\t\t\tPlease Enter Your Wallet Pin\n\n\t\t\t");
scanf("%d",&code);
system ("cls");
switch(code)
{
case 1234:
{
printf("\n\t\t\tBuy Airtime Taka %d To %d Has Been Successful.\n\n\t\t\t",b,a);
mainmenu();
break;
}
break;
default:
puts("\n\t\t\tWrong Pin");
mainmenu();
break;
}
break;
}
}
break;
}
case 3:
puts("\n\t\tPlease Contact With Jameur Fida To Activate Your Demo Wallet.");
mainmenu();
break;
case 4:
{
int a,b;
int code2;
printf("\n\t\t\tEnter Agent Number: ");
scanf("%d",&a);
printf("\n\t\t\tEnter Amount: ");
scanf("%d",&b);
system ("cls");
printf("\n\t\t\tCash Out Taka %d To %d\n\n\t\t\t1.Confirm\t2.Close\n\n\t\t\t",b,a);
scanf("%d",&code2);
system ("cls");
switch(code2)
{
case 1:
{
int pin;
printf("\n\t\t\tPlease Enter Your Wallet Pin\n\n\t\t\t");
scanf("%d",&code);
system ("cls");
switch(code)
{
case 1234:
{
printf("\n\t\t\tCash Out Taka %d To %d Has Been Successful.\n\n\t\t\t",b,a);
mainmenu();
break;
}
break;
default:
puts("\n\t\t\tWrong Pin");
mainmenu();
break;
}
break;
}
}
break;
}
case 5:
puts("\n\t\tPlease Contact With Jameur Fida To Activate Your Demo Wallet.");
mainmenu();
break;
}
break;
}
default:
puts("\n\t\t\tWrong Pin");
mainmenu();
return(0);
break;
getch();
return(0);
}
}