A menu driven program using C++


Are you preparing for C++exam? Looking out for a detailed solution to a menu driven program with explanation? Our ISC experts shall provide you with solution to your query on this page and you will get the confidence for the exam.

Following is a question that was asked in the question paper of GUJARAT TECHNOLOGICAL UNIVERSITY for BE Semester-V(Winter 2016) for subject Object Oriented Programming using C++(152004).

This question is asked for 07 marks and hence requires some explanation along with the program code. Please let me know the solution -
Q) Define a class to represent a bank account. Include members like name of the
depositor, account number, type of account, and balance amount in the account.
Make functions (1) To assign initial values, (2) To deposit an amount, (3) To
withdraw an amount after checking the balance, (4) To display name and balance.
Write a main program to test the program [07 Marks]