Write a c++ code to bank management. This is a simple code without any complex function.- Four attribute name(only first name),address(city name),account number,amount
- Open_Account() method asks to name and address.
- account_number_Genration() this method used to generate automatic account numbers according to application number.
- deposit() this method deposit money
- withdrawal() this method withdrawal money
Output
Enter your first name :shivam
Enter your city name : jabalpur
Opening balance is 1000
Your Automatic account number is 2010
Your deposit amount :
2000
Your Balance is now :3000
Your account number is 2010
How much you want to withdrawal :
1500
You enter 1500
Please collect your money
Your Balance is remain :1500
Enter your first name :choubey
Enter your city name : delhi
Opening balance is 1000
Your Automatic account number is 2010
Your deposit amount :
10000
Your Balance is now :11000
Your account number is 2010
How much you want to withdrawal :
56489
Insufficent amount
Your account balance is :11000
0 Comments
If you have any doubt and suggestion Please let me know