Assume that a bank maintains two kinds of accounts for customers: a savings account and the other as a current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current account provides a chequebook facility but no interest. Current account holders should also maintain a minimum balance, and if the balance falls below this level, a service charge is imposed. Create a class account that stores customers name, account number and type of account. From this derives the class cur_acct and sav_acct from making them more specific to their requirements. Include necessary constructors and member functions to achieve the following tasks: A menu should be displayed to the user to perform the following tasks. A. Accept deposit from a customer and update the balance. B. Display the balance. C. Compute and deposit interest. D. Permit withdrawal and update the balance. E. Check for the minimum balance, impose a penalty. necessary, and update the balance. Create two files, one for current account holders and the other for saving account holders, to store the data permanently. All the information regarding account holders should be stored in these files. When required to display information regarding an account holder, retrieve the information from the file and display it.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

program it

Assignment #2
Assume that a bank maintains two kinds of accounts for
customers: a savings account and the other as a current account.
The savings account provides compound interest and
withdrawal facilities but no cheque book facility. The current
account provides a chequebook facility but no interest. Current
account holders should also maintain a minimum balance, and
if the balance falls below this level, a service charge is
imposed.
Create a class account that stores customers name, account
number and type of account. From this derives the class
cur_acct and say_acct from making them more specific to their
requirements. Include necessary constructors and member
functions to achieve the following tasks: A menu should be
displayed to the user to perform the following tasks.
A. Accept deposit from a customer and update the balance.
B. Display the balance.
C. Compute and deposit interest.
D. Permit withdrawal and update the balance.
E. Check for the minimum balance, impose a penalty.
necessary, and update the balance.
Create two files, one for current account holders and the other
for saving account holders, to store the data permanently. All
the information regarding account holders should be stored in
these files. When required to display information regarding an
account holder, retrieve the information from the file and
display it.
Transcribed Image Text:Assignment #2 Assume that a bank maintains two kinds of accounts for customers: a savings account and the other as a current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current account provides a chequebook facility but no interest. Current account holders should also maintain a minimum balance, and if the balance falls below this level, a service charge is imposed. Create a class account that stores customers name, account number and type of account. From this derives the class cur_acct and say_acct from making them more specific to their requirements. Include necessary constructors and member functions to achieve the following tasks: A menu should be displayed to the user to perform the following tasks. A. Accept deposit from a customer and update the balance. B. Display the balance. C. Compute and deposit interest. D. Permit withdrawal and update the balance. E. Check for the minimum balance, impose a penalty. necessary, and update the balance. Create two files, one for current account holders and the other for saving account holders, to store the data permanently. All the information regarding account holders should be stored in these files. When required to display information regarding an account holder, retrieve the information from the file and display it.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT