Wale wazee was c++ tukutane hapa

Hahahahaaaa....umenikumbusha mbali.....printf....scanf
 
Mkuu nilijua ntakutana na syntax ya if statement ahahahahaha ngoja nione wadau ni ntakua compiler wenu kwenye code zenu
 
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;
}
}
}
 
endl;
cout



Mkuu umemaliza yote
 
Nimejaribu kutafuta maximum number kati ya numba kumi. Na nimeambiwa nitafute largest number ambazo ni mbili kati ya mamba kumi plz mwenye maujuzi anisaidie.


Mfano wa kwanza hapo chini,.View attachment ali.txt
 
Hahahahaaaa....umenikumbusha mbali.....printf....scanf
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.
 
Ukienda kwenye Atm ilivyo user friendly nyuma yake kumbe kuna codes za kufa mtu
 
Chuo gani kizuri cha It hapa Dar?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…