The new subject matter of scope,  static variables, references to variables and the const key word are covered in more detail in these references.
    The new subject matter of scope,  static variables, references to variables and the const key word are covered in more detail in these references.

The new subject matter of scope, static variables, references to variables and the const key word are covered in more detail in these references.

$20.00

The new subject matter of scopestatic variables, references to variables and the const key word are covered in more detail in these references.

Construct a BankAccount class that contains the following data members:

1. userID (int) 

2. name

3. previousBalance

4. currentBalance (float)

And the following accessor/mutator methods:

1.   getBalance,

2.   makeDeposit and

3.   makeWithdrawal.

 Notice the spelling of the data members/methods. Multiple words joined together w/o use of spaces, underscores or dashes. The first word starts with a lower case letter and the remaining words start with a capital letter. Also, class names should start w/capital letter.  This convention.

Data error checking in this assignment is required.

Make the program interactive. Ask for user name and starting balance.

Have your program assign the user id.

     Start by creating customers (allow user to input their name and starting balance).

     Allow user to input as many customer accounts as they wish.

     When all customer accounts have been created, start a 2 loop (inner and outer) process to perform the banking activity of getting balance, making deposits and/or withdrawals.

     In the outer loop, show the users and their ID's and ask for a customer name or user ID that wishes to use the bank.

     Search the database for the name or user ID. If one not found, so state and ask for another name, user ID or for user to type "Q" or "quit" to exit. Accept any character case.

     When a match is established, start an inner loop that will perform as many of the banking transactions (obtain balance, make deposit or withdrawal) as customer wants. When customer signals (use your choice of signal) that they are finished, pass control back to the outer loop and ask for name or user ID of another customer to repeat inner loop processing. If user wants to quit, exit both loops and list the number of times each customer accessed their account (use static variable to provide this data).

     When any customer requests, only, a statement of their current balance, pass the data by reference so that it cannot be changed (const) and give them their new balance.

       Note: test all inputs. Program must not be allowed to crash (or loop endlessly). Users must be given descriptive

     prompts when illegal characters are detected in inputs. IOW, make this a user friendly program. 

    degree of user friendliness and degree of detail presented.

 

A++ solution for this question

Solution contain C++ program.

Using DevC++ IDE to run (also using Visual Studio C++)

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



Tags: C++
PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B