maimonides1
Member
- Oct 13, 2018
- 13
- 5
Kama mada inavosema kwa wale beginners was c++ tupeane maujuzi.
Kama mada inavosema kwa wale beginners was c++ tupeane maujuzi.
Tulia wabobezi wajemi chenga hapo
endl;download project hii (.EXE) iliyoandikwa kwa C++ kwa kutumia BORLAND C++ 4.5 , na source code zipo hapo chini.. Dropbox - ATM.EXE.exe
Program hii inaRun kwenye 32 bit windows
#include<iostream.h>
#include<ocf/autodefs.h>
int main()
{
int choice;
char r;
char nationality[15];
char response;
char name4[12];
char name5[13];
char password[8];
char name[13];
char name2[15];
char name3[15];
bool again=true;
float principal;
char employer[15];
char gender[7];
char maritalstatus[8];
char guarantor[13];
char occupation[20];
char accountname[40];
char accountnumber[10];
float amount;
char branchname[15];
char tellername[20];
while(again==true)
{
cout<<"MAIN MENU "<<endl;
cout<<"1.CREATE NEW BANK ACCOUNT"<<endl;
cout<<"2.DEPOSIT MONEY"<<endl;
cout<<"3.WITHDRAW MONEY"<<endl;
cout<<"4.CHECK BALANCE"<<endl;
cout<<"5.CLOSE ACCOUNT"<<endl;
cout<<"6.QUIT"<<endl;
cout<<"WHAT DO YOU WANT TO DO ";
cin>>choice;
switch(choice)
{
//start of switch clause
case 1:
cout<<" "<<endl;
cout<<"YOU WANT TO OPEN NEW BANK ACCOUNT"<<endl;
cout<<" "<<endl;
cout<<"enter your names"<<endl;
cout<<"first name"<<" ";
cin>>name;
cout<<"middle name"<<" ";
cin>>name2;
cout<<"last name"<<" ";
cin>>name3;
cout<<"nationality"<<endl;
cin>>nationality;
cout<<"principal"<<endl;
cin>>principal;
cout<<"employer"<<endl;
cin>>employer;
cout<<"gender"<<endl;
cin>>gender;
cout<<"marital status"<<endl;
cin>>maritalstatus;
cout<<"name of your guarantor"<<endl;
cin>>guarantor;
cout<<"occupation (skill) "<<endl;
cin>>occupation;
cout<<"congratulations your new account has been established"<<endl;
cout<<"your balance is "<<principal<<endl;
cout<<"your account number is "<<endl;
cout<<"CBOA0114568987"<<endl;
cout<<"with account name of"<<endl;
cout<<name<<" "<<name2<<" "<<name3<<endl;
cout<<".........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 2:
cout<<"YOU WANT TO DEPOSIT"<<endl;
cout<<"account name"<<endl;
cout<<"first name"<<endl;
cin>>accountname;
cout<<"middle name"<<endl;
cin>>name4;
cout<<"last name"<<endl;
cin>>name5;
cout<<"account number"<<endl;
cin>>accountnumber;
cout<<"amount"<<endl;
cin>>amount;
cout<<"branch name"<<endl;
cin>>branchname;
cout<<"teller name"<<endl;
cin>>tellername;
cout<<"your account have been credited by Tshs "<<amount<<" "<<endl;
cout<<"THANK YOU "<<endl;
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 3:
cout<<"YOU WANT TO WITHDRAW CASH "<<endl;
cout<<"enter your password"<<endl;
cin>>password;
cout<<"withdraw amount"<<endl;
cin>>amount;
cout<<"DO YOU WANT A RECEIPT Y/N?"<<endl;
cin>>r;
if(r=='y'||r=='Y')
{
cout<<"TAKE YOUR MONEY"<<endl;
cout<<"your account has been debited by Tshs "<<amount<<endl;
cout<<"TAKE YOUR RECEIPT"<<endl;
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
}
else if(r=='n'||r=='N')
{
cout<<"TAKE YOUR MONEY"<<endl;
cout<<"your account has been debited by Tshs "<<amount<<endl;
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
}
else
{
cout<<"INVALID KEY PRESS Y or N";
}
break;
case 4:
cout<<"YOU WANT TO CHECK BALANCE"<<endl;
cout<<"enter your password"<<endl;
cin>>password;
cout<<"DO YOU WANT A RECEIPT Y/N?"<<endl;
cin>>r;
if(r=='y'||r=='Y')
{
cout<<"Your balance is Tshs.120,000/="<<endl;
cout<<"TAKE YOUR RECIEPT"<<endl;
}
else if(r=='n'||r=='N')
{
cout<<"your balance is Tshs.120,000/="<<endl;
}
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 5:
cout<<"YOU WANT TO CLOSE ACCOUNT"<<endl;
cout<<"enter your password"<<endl;
cin>>password;
cout<<"are you sure you want to close and DRAW all"<<endl;
cout<<" amount of money from your current account Y/N ?";
cin>>response;
if(response=='y'||response=='Y')
{
cout<<"take your money"<<endl;
cout<<"WELCOME AGAIN"<<endl;
}
else
{
cout<<"continue with our services"<<endl;
}
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 6:
cout<<"THIS WILL EXIT THE SYSTEM Y/N ?"<<endl;
cin>>response;
if(response=='n'||response=='N')
{
again=true;
}
else if(response=='y'||response=='Y')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break ;
return 0;
}
}
}
Kama mada inavosema kwa wale beginners was c++ tupeane maujuzi.
La pronto usivamie fani za watu utaumbuka,kwenye c++ hakuna printf na scanf hiyo ni c programming,but any way hongera kwa kuwa na mwanga kidogo wa programming.Hahahahaaaa....umenikumbusha mbali.....printf....scanf
Ukienda kwenye Atm ilivyo user friendly nyuma yake kumbe kuna codes za kufa mtudownload project hii (.EXE) iliyoandikwa kwa C++ kwa kutumia BORLAND C++ 4.5 , na source code zipo hapo chini.. Dropbox - ATM.EXE.exe
Program hii inaRun kwenye 32 bit windows
#include
#includeautodefs.h>
int main()
{
int choice;
char r;
char nationality[15];
char response;
char name4[12];
char name5[13];
char password[8];
char name[13];
char name2[15];
char name3[15];
bool again=true;
float principal;
char employer[15];
char gender[7];
char maritalstatus[8];
char guarantor[13];
char occupation[20];
char accountname[40];
char accountnumber[10];
float amount;
char branchname[15];
char tellername[20];
while(again==true)
{
coutcoutcoutcoutcoutcoutcoutcoutcin>>choice;
switch(choice)
{
//start of switch clause
case 1:
coutcoutcoutcoutcoutcin>>name;
coutcin>>name2;
coutcin>>name3;
coutcin>>nationality;
coutcin>>principal;
coutcin>>employer;
coutcin>>gender;
coutcin>>maritalstatus;
coutcin>>guarantor;
coutcin>>occupation;
coutcoutcoutcoutcoutcoutcoutcoutN?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout}
break;
case 2:
coutcoutcoutcin>>accountname;
coutcin>>name4;
coutcin>>name5;
coutcin>>accountnumber;
coutcin>>amount;
coutcin>>branchname;
coutcin>>tellername;
coutcoutcoutcoutN?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout}
break;
case 3:
coutcoutcin>>password;
coutcin>>amount;
coutN?"cin>>r;
if(r=='y'||r=='Y')
{
coutcoutcoutcoutcoutN?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout}
}
else if(r=='n'||r=='N')
{
coutcoutcoutcoutN?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout}
}
else
{
cout}
break;
case 4:
coutcoutcin>>password;
coutN?"cin>>r;
if(r=='y'||r=='Y')
{
cout="cout}
else if(r=='n'||r=='N')
{
cout="}
coutcoutN?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout}
break;
case 5:
coutcoutcin>>password;
coutcoutN ?";
cin>>response;
if(response=='y'||response=='Y')
{
cout
cout}
else
{
cout}
coutcoutN?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout}
break;
case 6:
coutN ?"cin>>response;
if(response=='n'||response=='N')
{
again=true;
}
else if(response=='y'||response=='Y')
{
again=false;
}
else
{
cout}
break ;
return 0;
}
}
}
Chuo gani kizuri cha It hapa Dar?download project hii (.EXE) iliyoandikwa kwa C++ kwa kutumia BORLAND C++ 4.5 , na source code zipo hapo chini.. Dropbox - ATM.EXE.exe
Program hii inaRun kwenye 32 bit windows
#include<iostream.h>
#include<ocf/autodefs.h>
int main()
{
int choice;
char r;
char nationality[15];
char response;
char name4[12];
char name5[13];
char password[8];
char name[13];
char name2[15];
char name3[15];
bool again=true;
float principal;
char employer[15];
char gender[7];
char maritalstatus[8];
char guarantor[13];
char occupation[20];
char accountname[40];
char accountnumber[10];
float amount;
char branchname[15];
char tellername[20];
while(again==true)
{
cout<<"MAIN MENU "<<endl;
cout<<"1.CREATE NEW BANK ACCOUNT"<<endl;
cout<<"2.DEPOSIT MONEY"<<endl;
cout<<"3.WITHDRAW MONEY"<<endl;
cout<<"4.CHECK BALANCE"<<endl;
cout<<"5.CLOSE ACCOUNT"<<endl;
cout<<"6.QUIT"<<endl;
cout<<"WHAT DO YOU WANT TO DO ";
cin>>choice;
switch(choice)
{
//start of switch clause
case 1:
cout<<" "<<endl;
cout<<"YOU WANT TO OPEN NEW BANK ACCOUNT"<<endl;
cout<<" "<<endl;
cout<<"enter your names"<<endl;
cout<<"first name"<<" ";
cin>>name;
cout<<"middle name"<<" ";
cin>>name2;
cout<<"last name"<<" ";
cin>>name3;
cout<<"nationality"<<endl;
cin>>nationality;
cout<<"principal"<<endl;
cin>>principal;
cout<<"employer"<<endl;
cin>>employer;
cout<<"gender"<<endl;
cin>>gender;
cout<<"marital status"<<endl;
cin>>maritalstatus;
cout<<"name of your guarantor"<<endl;
cin>>guarantor;
cout<<"occupation (skill) "<<endl;
cin>>occupation;
cout<<"congratulations your new account has been established"<<endl;
cout<<"your balance is "<<principal<<endl;
cout<<"your account number is "<<endl;
cout<<"CBOA0114568987"<<endl;
cout<<"with account name of"<<endl;
cout<<name<<" "<<name2<<" "<<name3<<endl;
cout<<".........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 2:
cout<<"YOU WANT TO DEPOSIT"<<endl;
cout<<"account name"<<endl;
cout<<"first name"<<endl;
cin>>accountname;
cout<<"middle name"<<endl;
cin>>name4;
cout<<"last name"<<endl;
cin>>name5;
cout<<"account number"<<endl;
cin>>accountnumber;
cout<<"amount"<<endl;
cin>>amount;
cout<<"branch name"<<endl;
cin>>branchname;
cout<<"teller name"<<endl;
cin>>tellername;
cout<<"your account have been credited by Tshs "<<amount<<" "<<endl;
cout<<"THANK YOU "<<endl;
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 3:
cout<<"YOU WANT TO WITHDRAW CASH "<<endl;
cout<<"enter your password"<<endl;
cin>>password;
cout<<"withdraw amount"<<endl;
cin>>amount;
cout<<"DO YOU WANT A RECEIPT Y/N?"<<endl;
cin>>r;
if(r=='y'||r=='Y')
{
cout<<"TAKE YOUR MONEY"<<endl;
cout<<"your account has been debited by Tshs "<<amount<<endl;
cout<<"TAKE YOUR RECEIPT"<<endl;
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
}
else if(r=='n'||r=='N')
{
cout<<"TAKE YOUR MONEY"<<endl;
cout<<"your account has been debited by Tshs "<<amount<<endl;
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
}
else
{
cout<<"INVALID KEY PRESS Y or N";
}
break;
case 4:
cout<<"YOU WANT TO CHECK BALANCE"<<endl;
cout<<"enter your password"<<endl;
cin>>password;
cout<<"DO YOU WANT A RECEIPT Y/N?"<<endl;
cin>>r;
if(r=='y'||r=='Y')
{
cout<<"Your balance is Tshs.120,000/="<<endl;
cout<<"TAKE YOUR RECIEPT"<<endl;
}
else if(r=='n'||r=='N')
{
cout<<"your balance is Tshs.120,000/="<<endl;
}
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 5:
cout<<"YOU WANT TO CLOSE ACCOUNT"<<endl;
cout<<"enter your password"<<endl;
cin>>password;
cout<<"are you sure you want to close and DRAW all"<<endl;
cout<<" amount of money from your current account Y/N ?";
cin>>response;
if(response=='y'||response=='Y')
{
cout<<"take your money"<<endl;
cout<<"WELCOME AGAIN"<<endl;
}
else
{
cout<<"continue with our services"<<endl;
}
cout<<"..........................................."<<endl;
cout<<"BACK TO MENU Y/N?";
cin>>response;
if(response=='y'||response=='Y')
{
again=true;
}
else if(response=='n'||response=='N')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break;
case 6:
cout<<"THIS WILL EXIT THE SYSTEM Y/N ?"<<endl;
cin>>response;
if(response=='n'||response=='N')
{
again=true;
}
else if(response=='y'||response=='Y')
{
again=false;
}
else
{
cout<<"Invalid key, press Y or N";
}
break ;
return 0;
}
}
}
IFMChuo gani kizuri cha It hapa Dar?