Skip to main content

Posts

Showing posts with the label display deposit

Bank project example using c++

Bank project example using c++ #include #include"fstream.h" using std::cout; using std::cin; class BankUser{ public: BankUser(); void viewBalance(); void deposit(); void withdraw(); double transfer1(); void transfer2(double); private: double blance; }; BankUser::BankUser() { char type; cout<<"enter the type for this Account"; cout<<"\n\ncheck Account :C"; cout<<"\nSaving Account :S"; cout<<"\n\n\ Enter ur Choice :"; cin>>type; if (type=='S'||type=='S') blance=1500; else blance=1000; } void BankUser::viewBalance() { cout<<"\n The Current Blane Of This Account Is="<>amount; blance+=amount; if(blance>2000) blance+=50; viewBalance(); } void BankUser::withdraw() { double amount; cout<<"Enter the Amount to be with drawn :"; cin>...