Write a program which asks the user to open a bank account either Current or Savings. Your program will display the following menu at the start:

Press 1 for Current Account
Press 2 for Savings Account

On the selection of account type, the user will open an account by providing an initial amount. In current account the initial amount for opening an account would be 2000 and for savings it would be 5000. After choosing the account type and opening the account with initial amount, your program will display the following menu:

Press a for Deposit the money
Press b for withdrawing the money

In current account the user cannot withdraw more than 10000 rupees. In Savings account the user cannot withdraw more than 25000. When the user withdraws amount make sure that amount should not be more than the balance in account and at the end of withdrawal transaction, there should be minimum of 500 rupees for each account.

This is a help and more site. For homework you show your work and tell what area you have trouble with.

If you want a homework solution site, well there are such out there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.