Create a class called account that might use to represent customers’ bank accounts. Bank account should keep the record of customer’s account balance. Your class should provide a constructor that receives an initial balance and uses it to initialize data member. Account balance should be greater than or equal to zero. The class should provide the feature credit to insert any amount to customers’ account. Debit functionality should enable the user to withdraw the money from account (The function should keep the check of the amount withdraw should not exceed the current balance if it does generate an error message to the user indicating the operation is not possible). Function getBlanceenables the user to check the amount present in his account. solve it in C++.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

Create a class called account that might use to represent customers’ bank accounts.
Bank account should keep the record of customer’s account balance. Your class should
provide a constructor that receives an initial balance and uses it to initialize data
member. Account balance should be greater than or equal to zero. The class should
provide the feature credit to insert any amount to customers’ account. Debit
functionality should enable the user to withdraw the money from account (The function
should keep the check of the amount withdraw should not exceed the current balance if
it does generate an error message to the user indicating the operation is not possible).
Function getBlanceenables the user to check the amount present in his account.

solve it in C++.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage