SlideShare a Scribd company logo
#include<iostream.h>
#include<fstream.h>
#include<process.h>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include<ctype.h>
#include<conio.h>
#include<dos.h>

//===========================================================
// THIS CLASS CONTAINS FUNCTIONS RELATED TO DRAW BOX ETC.
//===========================================================

class shape
{
public :
void line_hor(int, int, int, char);
void line_ver(int, int, int, char);
void box(int,int,int,int,char);
};

//===========================================================
// THIS CLASS CONTROL ALL THE FUNCTIONS IN THE MENU
//===========================================================

class control
{
public :
void main_menu(void);
void help(void);
private:
void edit_menu(void);
};

//===========================================================
// THIS CLASS CONTAINS FUNCTIONS RELATED TO INITIAL DEPOSIT
//===========================================================

class initial
{
public :
void add_to_file(int,char t_name[30],char t_address[60],float);
void display_list(void);
void delete_account(int);
void update_balance(int,float);
void modify(void);
int last_accno(void);
int found_account(int);
char *return_name(int);
char *return_address(int);
float give_balance(int);
int recordno(int);
void display(int);
private:
void modify_account(int,char t_name[30],char t_address[60]);
void box_for_list(void);

int accno;
char name[30],address[60];
float balance;
};

//===========================================================
// THIS CLASS CONTAINS FUNCTIONS RELATED TO TRANSACTIONS
//===========================================================

class account
{
public :
void new_account(void);
void close_account(void);
void display_account(void);
void transaction(void);
void clear(int,int);
private :
void add_to_file(int,int,int,int,char,char t_type[10],float,float,float);
void delete_account(int);
int no_of_days(int,int,int,int,int,int);
float calculate_interest(int,float);
void display(int);
void box_for_display(int);
int accno;
char type[10]; //Cheque or Cash
int dd,mm,yy; //Date
char tran ; // Deposit or withdrawl
float interest,amount,balance;
};

//===========================================================
// FUNCTION TO DRAW HORIZONTAL LINE
//===========================================================

void shape::line_hor(int column1,int column2,int row,char c)
{
for(column1;column1< =column2;column1++)
{
gotoxy(column1,row);
cout< }
}

//===========================================================
// FUNCTION TO DRAW VERTICAL LINE
//===========================================================

void shape::line_ver(int row1,int row2,int column,char c)
{
for(row1;row1 {
gotoxy(column,row1);
cout< }
}

//============================================================
// FUNCTION TO DRAW BOX LINE
//============================================================

void shape::box(int column1,int row1,int column2,int row2,char c)
{
char ch=218;
char c1,c2,c3,c4;
char l1=196,l2=179;
if(c==ch)
{
c1=218;
c2=191;
c3=192;
c4=217;
l1=196;
l2=179;
}
else
{
c1=c;
c2=c;
c3=c;
c4=c;
l1=c;
l2=c;
}
gotoxy(column1,row1);
cout< gotoxy(column2,row1);
cout< gotoxy(column1,row2);
cout< gotoxy(column2,row2);
cout< column1++;
column2–;
line_hor(column1,column2,row1,l1);
line_hor(column1,column2,row2,l1);
column1–;
column2++;
row1++;
row2–;
line_ver(row1,row2,column1,l2);
line_ver(row1,row2,column2,l2);
}

//============================================================
// FUNCTION TO DISPLAY MAIN MENU AND CALL OTHER FUNCTIONS
//============================================================

void control::main_menu(void)
{
char ch;
while (1)
{
clrscr();
shape s;
s.box(10,5,71,21,219);
s.box(9,4,72,22,218);
textcolor(LIGHTBLUE+BLINK);
textbackground(BLACK);
gotoxy(32,7);
cprintf(– B A N K I N G –);
gotoxy(35,9);
cprintf(– OPTIONS –);
textcolor(LIGHTBLUE);
textbackground(BLACK);
gotoxy(30,11);
cout<=EXIT–;
gotoxy(5,5);
cout< =EXIT–;
textbackground(BLACK);
gotoxy(3,3);
for(int i=1;i< =76;i++) cprintf(– –);
textbackground(BLACK);
textcolor(LIGHTBLUE+BLINK); textbackground(BLACK);
gotoxy(30,3);
cprintf(–MODIFY ACCOUNT SCREEN–);
textcolor(LIGHTBLUE); textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
gotoxy(62,5);
cout< char ch;
display(t_accno);
account a;
do
{
a.clear(5,13);
gotoxy(5,13);
cout< FOR NO CHANGE–;
valid=1;
gotoxy(15,15);
gets(t_name);
strupr(t_name);
if(t_name[0]==–0')
return;
if(strlen(t_name)>25)
{
valid=0;
gotoxy(5,23);
cprintf(–7NAME SHOULD NOT GREATER THAN 25?);
getch();
}
}while(!valid);
if(strlen(t_name)>0)
modified=1;
do
{
a.clear(15,16);
a.clear(5,23);
gotoxy(5,23);
cout< FOR NO CHANGE–;
valid=1;
gotoxy(15,16);
gets(t_address);
strupr(t_address);
if(t_address[0]==–0')
return;
if(strlen(t_address)>55)
{
valid=0;
gotoxy(5,23);
cprintf(–7SHOULD NOT BLANK OR GREATER THAN 55?);
getch();
}
}while(!valid);
if(strlen(t_address)>0)
modified=1;
if(!modified)
return;
a.clear(5,23);
do
{
a.clear(5,18);
gotoxy(5,18);
cout< =EXIT–;
textbackground(BLACK);
gotoxy(3,3);
for(i=1;i< =76;i++)
cprintf(– –);
textbackground(BLACK);
textcolor(LIGHTBLUE+BLINK); textbackground(BLACK);
gotoxy(32,3);
cprintf(–OPEN NEW ACCOUNT–);
textcolor(LIGHTBLUE);
textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
int t_accno;
t_accno=ini.last_accno();
t_accno++;
if(t_accno==1)
{
ini.add_to_file(t_accno,–abc–,–xyz–,1.1);
ini.delete_account(t_accno);
add_to_file(t_accno,1,1,1997,–D',–INITIAL–,1.1,1.1,1.1);
delete_account(t_accno);
}
char t_name[30],t[10],t_address[60];
float t_bal=0.0, t_balance=0.0;
gotoxy(5,6);
cout< gotoxy(5,8);
cout<=EXIT–;
gotoxy(5,5);
cout< =EXIT–;
gotoxy(5,5);
cout< =EXIT–;
textbackground(BLACK);
gotoxy(3,3);
for(int i=1;i< =76;i++) cprintf(– –);
textbackground(BLACK);
textcolor(LIGHTBLUE+BLINK); textbackground(BLACK);
gotoxy(29,3);
cprintf(–TRANSACTION IN ACCOUNT–);
textcolor(LIGHTBLUE); textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
gotoxy(5,6);
cout<=EXIT–;
gotoxy(5,5);
cout< =EXIT–;
textbackground(BLACK);
gotoxy(3,3);
for(int i=1;i< =76;i++) cprintf(– –);
textbackground(BLACK);
textcolor(GREEN+BLINK); textbackground(BLACK);
gotoxy(30,3);
cprintf(–CLOSE ACCOUNT SCREEN–);
textcolor(LIGHTBLUE); textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
gotoxy(62,5);
cout< getch();
}
//===============================================================
//THIS IS MAIN FUNCTION CALLING HELP AND MAIN MENU
//FUNCTIONS
//===============================================================

void main(void)
{
control c;
c.help();
c.main_menu();
}

More Related Content

What's hot

Writing DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby ConfWriting DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby Conf
Jason Garber
 
07 php
07 php07 php
07 php
CBRIARCSC
 
6. hello popescu 2
6. hello popescu 26. hello popescu 2
6. hello popescu 2
Razvan Raducanu, PhD
 
Advance Techniques In Php
Advance Techniques In PhpAdvance Techniques In Php
Advance Techniques In Php
Kumar S
 
7. copy1
7. copy17. copy1
5. hello popescu
5. hello popescu5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
 
Candies for everybody - Meet Magento Italia 2015
Candies for everybody - Meet Magento Italia 2015Candies for everybody - Meet Magento Italia 2015
Candies for everybody - Meet Magento Italia 2015
Alberto López Martín
 
Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.
Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.
Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.
Meet Magento Italy
 
De 0 a 100 con Bash Shell Scripting y AWK
De 0 a 100 con Bash Shell Scripting y AWKDe 0 a 100 con Bash Shell Scripting y AWK
De 0 a 100 con Bash Shell Scripting y AWK
Adolfo Sanz De Diego
 
About the dangers of refactoring
About the dangers of refactoringAbout the dangers of refactoring
About the dangers of refactoring
Andrei Pratasavitski
 
ShopC++
ShopC++ShopC++
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functions
Soumyajit Dutta
 
C++ Sobrecarga
C++ SobrecargaC++ Sobrecarga
C++ Sobrecarga
Ivan Ricarte
 
Let's write secure drupal code!
Let's write secure drupal code!Let's write secure drupal code!
Let's write secure drupal code!
Balázs Tatár
 

What's hot (14)

Writing DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby ConfWriting DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby Conf
 
07 php
07 php07 php
07 php
 
6. hello popescu 2
6. hello popescu 26. hello popescu 2
6. hello popescu 2
 
Advance Techniques In Php
Advance Techniques In PhpAdvance Techniques In Php
Advance Techniques In Php
 
7. copy1
7. copy17. copy1
7. copy1
 
5. hello popescu
5. hello popescu5. hello popescu
5. hello popescu
 
Candies for everybody - Meet Magento Italia 2015
Candies for everybody - Meet Magento Italia 2015Candies for everybody - Meet Magento Italia 2015
Candies for everybody - Meet Magento Italia 2015
 
Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.
Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.
Alberto López: Candies for everybody: hacking from 9 a.m. to 6 p.m.
 
De 0 a 100 con Bash Shell Scripting y AWK
De 0 a 100 con Bash Shell Scripting y AWKDe 0 a 100 con Bash Shell Scripting y AWK
De 0 a 100 con Bash Shell Scripting y AWK
 
About the dangers of refactoring
About the dangers of refactoringAbout the dangers of refactoring
About the dangers of refactoring
 
ShopC++
ShopC++ShopC++
ShopC++
 
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functions
 
C++ Sobrecarga
C++ SobrecargaC++ Sobrecarga
C++ Sobrecarga
 
Let's write secure drupal code!
Let's write secure drupal code!Let's write secure drupal code!
Let's write secure drupal code!
 

Viewers also liked

ObserveQuestionDesign_PatMooney
ObserveQuestionDesign_PatMooneyObserveQuestionDesign_PatMooney
ObserveQuestionDesign_PatMooney
moonstrous
 
Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...
Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...
Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...
Marshall Junction Partners
 
Hack met 1
Hack met 1Hack met 1
Hack met 1
mrebola
 
χατζιδακισ τριτο προγραμμα
χατζιδακισ τριτο προγραμμαχατζιδακισ τριτο προγραμμα
χατζιδακισ τριτο προγραμμαAnastasia Thymniou
 
Perroo
PerrooPerroo
ΡΕΝΕ ΝΤΕΚΑΡΤ
ΡΕΝΕ ΝΤΕΚΑΡΤΡΕΝΕ ΝΤΕΚΑΡΤ
ΡΕΝΕ ΝΤΕΚΑΡΤ
Anastasia Thymniou
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Stanford GSB Corporate Governance Research Initiative
 

Viewers also liked (7)

ObserveQuestionDesign_PatMooney
ObserveQuestionDesign_PatMooneyObserveQuestionDesign_PatMooney
ObserveQuestionDesign_PatMooney
 
Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...
Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...
Marshall Junction Partners | Press Release | Corsis, Promotions.com and Sockw...
 
Hack met 1
Hack met 1Hack met 1
Hack met 1
 
χατζιδακισ τριτο προγραμμα
χατζιδακισ τριτο προγραμμαχατζιδακισ τριτο προγραμμα
χατζιδακισ τριτο προγραμμα
 
Perroo
PerrooPerroo
Perroo
 
ΡΕΝΕ ΝΤΕΚΑΡΤ
ΡΕΝΕ ΝΤΕΚΑΡΤΡΕΝΕ ΝΤΕΚΑΡΤ
ΡΕΝΕ ΝΤΕΚΑΡΤ
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 

Similar to Banking system.cpp

PHP object calisthenics
PHP object calisthenicsPHP object calisthenics
PHP object calisthenics
Giorgio Cefaro
 
Why is crud a bad idea - focus on real scenarios
Why is crud a bad idea - focus on real scenariosWhy is crud a bad idea - focus on real scenarios
Why is crud a bad idea - focus on real scenarios
Divante
 
Use of django at jolt online v3
Use of django at jolt online v3Use of django at jolt online v3
Use of django at jolt online v3
Jaime Buelta
 
I need help with implementing the priority queue data structure with a.docx
I need help with implementing the priority queue data structure with a.docxI need help with implementing the priority queue data structure with a.docx
I need help with implementing the priority queue data structure with a.docx
hendriciraida
 
Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5
Stephan Schmidt
 
Nativescript angular
Nativescript angularNativescript angular
Nativescript angular
Christoffer Noring
 
Data structures and algorithms lab1
Data structures and algorithms lab1Data structures and algorithms lab1
Data structures and algorithms lab1
Bianca Teşilă
 
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
James Titcumb
 
Perl.Hacks.On.Vim Perlchina
Perl.Hacks.On.Vim PerlchinaPerl.Hacks.On.Vim Perlchina
Perl.Hacks.On.Vim Perlchina
guestcf9240
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
kinan keshkeh
 
please help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdfplease help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdf
arishmarketing21
 
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
James Titcumb
 
Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12
Hitesh Patel
 
CppTutorial.ppt
CppTutorial.pptCppTutorial.ppt
CppTutorial.ppt
HODZoology3
 
Cpp tutorial
Cpp tutorialCpp tutorial
Cpp tutorial
Vikas Sharma
 
Extending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorExtending MySQL Enterprise Monitor
Extending MySQL Enterprise Monitor
Mark Leith
 
R57php 1231677414471772-2
R57php 1231677414471772-2R57php 1231677414471772-2
R57php 1231677414471772-2
ady36
 
Scala 2 + 2 > 4
Scala 2 + 2 > 4Scala 2 + 2 > 4
Scala 2 + 2 > 4
Emil Vladev
 
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Arc & Codementor
 
Project hotel on hotel management fo
Project  hotel on hotel management foProject  hotel on hotel management fo
Project hotel on hotel management fo
Sunny Singhania
 

Similar to Banking system.cpp (20)

PHP object calisthenics
PHP object calisthenicsPHP object calisthenics
PHP object calisthenics
 
Why is crud a bad idea - focus on real scenarios
Why is crud a bad idea - focus on real scenariosWhy is crud a bad idea - focus on real scenarios
Why is crud a bad idea - focus on real scenarios
 
Use of django at jolt online v3
Use of django at jolt online v3Use of django at jolt online v3
Use of django at jolt online v3
 
I need help with implementing the priority queue data structure with a.docx
I need help with implementing the priority queue data structure with a.docxI need help with implementing the priority queue data structure with a.docx
I need help with implementing the priority queue data structure with a.docx
 
Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5
 
Nativescript angular
Nativescript angularNativescript angular
Nativescript angular
 
Data structures and algorithms lab1
Data structures and algorithms lab1Data structures and algorithms lab1
Data structures and algorithms lab1
 
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
 
Perl.Hacks.On.Vim Perlchina
Perl.Hacks.On.Vim PerlchinaPerl.Hacks.On.Vim Perlchina
Perl.Hacks.On.Vim Perlchina
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
 
please help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdfplease help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdf
 
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
 
Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12
 
CppTutorial.ppt
CppTutorial.pptCppTutorial.ppt
CppTutorial.ppt
 
Cpp tutorial
Cpp tutorialCpp tutorial
Cpp tutorial
 
Extending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorExtending MySQL Enterprise Monitor
Extending MySQL Enterprise Monitor
 
R57php 1231677414471772-2
R57php 1231677414471772-2R57php 1231677414471772-2
R57php 1231677414471772-2
 
Scala 2 + 2 > 4
Scala 2 + 2 > 4Scala 2 + 2 > 4
Scala 2 + 2 > 4
 
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
 
Project hotel on hotel management fo
Project  hotel on hotel management foProject  hotel on hotel management fo
Project hotel on hotel management fo
 

Recently uploaded

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 

Recently uploaded (20)

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 

Banking system.cpp

  • 1. #include<iostream.h> #include<fstream.h> #include<process.h> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<conio.h> #include<dos.h> //=========================================================== // THIS CLASS CONTAINS FUNCTIONS RELATED TO DRAW BOX ETC. //=========================================================== class shape { public : void line_hor(int, int, int, char); void line_ver(int, int, int, char); void box(int,int,int,int,char); }; //=========================================================== // THIS CLASS CONTROL ALL THE FUNCTIONS IN THE MENU //=========================================================== class control { public : void main_menu(void); void help(void); private: void edit_menu(void); }; //=========================================================== // THIS CLASS CONTAINS FUNCTIONS RELATED TO INITIAL DEPOSIT //=========================================================== class initial { public : void add_to_file(int,char t_name[30],char t_address[60],float); void display_list(void); void delete_account(int); void update_balance(int,float); void modify(void); int last_accno(void); int found_account(int); char *return_name(int); char *return_address(int); float give_balance(int); int recordno(int); void display(int); private: void modify_account(int,char t_name[30],char t_address[60]); void box_for_list(void); int accno; char name[30],address[60]; float balance; }; //===========================================================
  • 2. // THIS CLASS CONTAINS FUNCTIONS RELATED TO TRANSACTIONS //=========================================================== class account { public : void new_account(void); void close_account(void); void display_account(void); void transaction(void); void clear(int,int); private : void add_to_file(int,int,int,int,char,char t_type[10],float,float,float); void delete_account(int); int no_of_days(int,int,int,int,int,int); float calculate_interest(int,float); void display(int); void box_for_display(int); int accno; char type[10]; //Cheque or Cash int dd,mm,yy; //Date char tran ; // Deposit or withdrawl float interest,amount,balance; }; //=========================================================== // FUNCTION TO DRAW HORIZONTAL LINE //=========================================================== void shape::line_hor(int column1,int column2,int row,char c) { for(column1;column1< =column2;column1++) { gotoxy(column1,row); cout< } } //=========================================================== // FUNCTION TO DRAW VERTICAL LINE //=========================================================== void shape::line_ver(int row1,int row2,int column,char c) { for(row1;row1 { gotoxy(column,row1); cout< } } //============================================================ // FUNCTION TO DRAW BOX LINE //============================================================ void shape::box(int column1,int row1,int column2,int row2,char c) { char ch=218; char c1,c2,c3,c4; char l1=196,l2=179; if(c==ch) { c1=218; c2=191; c3=192; c4=217; l1=196;
  • 3. l2=179; } else { c1=c; c2=c; c3=c; c4=c; l1=c; l2=c; } gotoxy(column1,row1); cout< gotoxy(column2,row1); cout< gotoxy(column1,row2); cout< gotoxy(column2,row2); cout< column1++; column2–; line_hor(column1,column2,row1,l1); line_hor(column1,column2,row2,l1); column1–; column2++; row1++; row2–; line_ver(row1,row2,column1,l2); line_ver(row1,row2,column2,l2); } //============================================================ // FUNCTION TO DISPLAY MAIN MENU AND CALL OTHER FUNCTIONS //============================================================ void control::main_menu(void) { char ch; while (1) { clrscr(); shape s; s.box(10,5,71,21,219); s.box(9,4,72,22,218); textcolor(LIGHTBLUE+BLINK); textbackground(BLACK); gotoxy(32,7); cprintf(– B A N K I N G –); gotoxy(35,9); cprintf(– OPTIONS –); textcolor(LIGHTBLUE); textbackground(BLACK); gotoxy(30,11); cout<=EXIT–; gotoxy(5,5); cout< =EXIT–; textbackground(BLACK); gotoxy(3,3); for(int i=1;i< =76;i++) cprintf(– –); textbackground(BLACK); textcolor(LIGHTBLUE+BLINK); textbackground(BLACK); gotoxy(30,3); cprintf(–MODIFY ACCOUNT SCREEN–); textcolor(LIGHTBLUE); textbackground(BLACK); int d1,m1,y1; struct date d; getdate(&d); d1=d.da_day;
  • 4. m1=d.da_mon; y1=d.da_year; gotoxy(62,5); cout< char ch; display(t_accno); account a; do { a.clear(5,13); gotoxy(5,13); cout< FOR NO CHANGE–; valid=1; gotoxy(15,15); gets(t_name); strupr(t_name); if(t_name[0]==–0') return; if(strlen(t_name)>25) { valid=0; gotoxy(5,23); cprintf(–7NAME SHOULD NOT GREATER THAN 25?); getch(); } }while(!valid); if(strlen(t_name)>0) modified=1; do { a.clear(15,16); a.clear(5,23); gotoxy(5,23); cout< FOR NO CHANGE–; valid=1; gotoxy(15,16); gets(t_address); strupr(t_address); if(t_address[0]==–0') return; if(strlen(t_address)>55) { valid=0; gotoxy(5,23); cprintf(–7SHOULD NOT BLANK OR GREATER THAN 55?); getch(); } }while(!valid); if(strlen(t_address)>0) modified=1; if(!modified) return; a.clear(5,23); do { a.clear(5,18); gotoxy(5,18); cout< =EXIT–; textbackground(BLACK); gotoxy(3,3); for(i=1;i< =76;i++) cprintf(– –); textbackground(BLACK); textcolor(LIGHTBLUE+BLINK); textbackground(BLACK); gotoxy(32,3);
  • 5. cprintf(–OPEN NEW ACCOUNT–); textcolor(LIGHTBLUE); textbackground(BLACK); int d1,m1,y1; struct date d; getdate(&d); d1=d.da_day; m1=d.da_mon; y1=d.da_year; int t_accno; t_accno=ini.last_accno(); t_accno++; if(t_accno==1) { ini.add_to_file(t_accno,–abc–,–xyz–,1.1); ini.delete_account(t_accno); add_to_file(t_accno,1,1,1997,–D',–INITIAL–,1.1,1.1,1.1); delete_account(t_accno); } char t_name[30],t[10],t_address[60]; float t_bal=0.0, t_balance=0.0; gotoxy(5,6); cout< gotoxy(5,8); cout<=EXIT–; gotoxy(5,5); cout< =EXIT–; gotoxy(5,5); cout< =EXIT–; textbackground(BLACK); gotoxy(3,3); for(int i=1;i< =76;i++) cprintf(– –); textbackground(BLACK); textcolor(LIGHTBLUE+BLINK); textbackground(BLACK); gotoxy(29,3); cprintf(–TRANSACTION IN ACCOUNT–); textcolor(LIGHTBLUE); textbackground(BLACK); int d1,m1,y1; struct date d; getdate(&d); d1=d.da_day; m1=d.da_mon; y1=d.da_year; gotoxy(5,6); cout<=EXIT–; gotoxy(5,5); cout< =EXIT–; textbackground(BLACK); gotoxy(3,3); for(int i=1;i< =76;i++) cprintf(– –); textbackground(BLACK); textcolor(GREEN+BLINK); textbackground(BLACK); gotoxy(30,3); cprintf(–CLOSE ACCOUNT SCREEN–); textcolor(LIGHTBLUE); textbackground(BLACK); int d1,m1,y1; struct date d; getdate(&d); d1=d.da_day; m1=d.da_mon; y1=d.da_year; gotoxy(62,5); cout< getch(); }
  • 6. //=============================================================== //THIS IS MAIN FUNCTION CALLING HELP AND MAIN MENU //FUNCTIONS //=============================================================== void main(void) { control c; c.help(); c.main_menu(); }