Bank Program In C++ Still In Progress
Hello guys how are you all i hope you all are fine and having an amazing day.
Today i,m going to share a bank program with you all though it is not an complete program but still i,m sharing it with you
I hope you will understand it
#include < iostream >
#include < conio.h >
using namespace std;
class Bank
{
char name[30];
char accountName[30];
char type [20];
int deposit , with ;
int intialBal;
public:
void mainMenu(void);
void getInfo();
void getdeposit();
void withdraw();
void accountInfo();
void check(void);
};
void Bank ::mainMenu()
{
int select;
cout<< "\t\nchose you option from 1-6 \n";
cout<< "\t1.create A New Account \n";
cout<< "\t2.Deposit Your Money \n";
cout<< "\t3.Check Your Balance \n";
cout<< "\t4.Withdraw Amount \n";
cout<< "\t5.Your,s Account all info \n";
cout<< "\t6.Exit \n";
cin>>select;
switch (select)
{
case 1 :
getInfo();
break;
case 2:
getdeposit();
break;
case 3:
check();
break;
}
}
void Bank ::getInfo()
{
int go;
cout<< "\n\t\tEnter your name : ";
cin>>name;
cout <<endl;
cout<< "\t\tEnter Account name : ";
cin>>accountName;
cout<<endl;
cout<< "\t\tEnter Your Account Type : ";
cin>>type;
cout<<endl;
cout<< "\t\tHow much money you want to deposit : ";
cin>>deposit;
cout<<"\n\t\tHit '0' to GoTo MainMenu : ";
cin>>go;
if (go==0)
{
mainMenu();
}
else{
return;
}
}
void Bank ::getdeposit()
{
int go;
cout<< "\n\t\tHow much money you want to deposit :";
cin>>deposit;
deposit+=intialBal;
cout<<"\n\t\tHit '0' to GoTo MainMenu :";
cin>>go;
if (go==0)
{
mainMenu();
}
}
void Bank ::check()
{
cout<< "Your current Balance is : " <<deposit <<endl;
}
int main()
{
getch();
Bank object;
object.mainMenu();
object.getInfo();
return 0;
}
keep it up...
thank u
Hey, Bro Are You Programmer?
yes my friend'
ya CODING MUGY SMAJ NI ATI
to demagh chalaya kar na
keep it up
Thanks man carry on
Keep it up
Congratulations @wajahatsardar! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the total payout received
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Brother give me some ideas for steemit
Thank you