ENG: Add all the additions and changes required to add a new banking transaction to the ATM Case Study program. Derive a new class from the Transaction class so that the user can transfer funds from their own account to another account. The user must enter the account number and the amount of the account he wants to send money to. The existence of the account number entered should be checked, if it is found in the database, it should be added to the account, both totalBalance and availableBalance should be increased by the specified amount; Of course, if there is enough money in the user's account to transfer. Similarly, both totalBalance and availableBalance should be reduced by the specified amount

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

c++ question

 

ENG: Add all the additions and changes required to add a new banking transaction to the ATM Case
Study program. Derive a new class from the Transaction class so that the user can transfer funds from
their own account to another account. The user must enter the account number and the amount of the
account he wants to send money to. The existence of the account number entered should be checked, if it
is found in the database, it should be added to the account, both totalBalance and availableBalance should
be increased by the specified amount; Of course, if there is enough money in the user's account to
transfer. Similarly, both totalBalance and availableBalance should be reduced by the specified amount
from the account of the user who makes the transaction. Otherwise, the user should be notified of the
reason why the operation could not be done without any action. The user should be able to cancel the
operation and return to the main menu. The new class must have a constructor and a virtual execute
method.
Transcribed Image Text:ENG: Add all the additions and changes required to add a new banking transaction to the ATM Case Study program. Derive a new class from the Transaction class so that the user can transfer funds from their own account to another account. The user must enter the account number and the amount of the account he wants to send money to. The existence of the account number entered should be checked, if it is found in the database, it should be added to the account, both totalBalance and availableBalance should be increased by the specified amount; Of course, if there is enough money in the user's account to transfer. Similarly, both totalBalance and availableBalance should be reduced by the specified amount from the account of the user who makes the transaction. Otherwise, the user should be notified of the reason why the operation could not be done without any action. The user should be able to cancel the operation and return to the main menu. The new class must have a constructor and a virtual execute method.
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Structure chart
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
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