AVI K.

asked • 11/08/20

c++ programming


1. , the Bank class maintained a pointer to an array or customers. Therefore, the primary data structure used to store customer information had been an array. In this assignment, the array data structure must be replaced by a linked list data structure, in particular the doubly linked list data structure. That is, in this assignment, you must demonstrate the use of a doubly linked list data structure to store customer information.

2. Develop a C++ program that should now perform the following:

 Read the Customers.txt and Accounts.txt file and store details in the Customer objects linked list.  Create a menu for the user that can do the following: i. Print customer listing This menu item is selected by typing 1 and it should display a list of all customers in the following format (Account Type should be mapped from the Account Type table given above), with calculated interest and service charge (if any) rounded to 2dp:

Cust# CustName Account# A/C Type Min Bal Cur Bal Interest ($) Service Charge ($) New Bal ($)

[If Customer does not accrue any interest or service charge, value displayed should be 0.00. “New Bal” is calculated as Cur Bal + Interest – Service Charge. If “New Bal” turns out to be negative, print value enclosed within parenthesis ()]

ii. Print customers who have Savings account This menu item is selected by typing 2 and it should simply display all customers who have a savings account with the bank. Display the output in the same format as in (i) above.

iii. Display customers who have Checking account. This menu item is selected by typing 3 and it should simply display all customers who have a checking account with the bank. Display the output in the same format as in (i) above.

iv. List customers who have both Savings and Checking accounts. This menu item is selected by typing 4 and it should display all customers who have both savings and checking accounts with the bank. Display the output in the same format as in (i) above.

v. Delete a customer record (object) given the customer number. This menu item is selected by typing 5 and it should first ask the user to enter the customer number. If customer id matches an id of the customer in the list, the customer node should be deleted from the list, and a “Delete Successful” message is displayed. Otherwise “Customer not found” message should be displayed.

vi. Exit program.

User selects this option by typing 6. This is when program should end.

Elliot W.

You need to give an idea of what you're actually asking. This is just your homework assignment. Please setup a lesson with me if you would like help with this.
Report

11/12/20

1 Expert Answer

By:

Patrick B. answered • 11/13/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.