Answered step by step
Verified Expert Solution
Question
1 Approved Answer
AV . . A bank account has a data at any time: its balanco. This balance can be positive ( credit account ) or negative
AV A bank account has a data at any time: its balanco. This balance can be positive credit account or negative debit account pts Each account is characterized by a code automatically incremented. At its creation, a bank account has a zoro balance and an incremented code. It is also possible to create an account by spocifying its initial balance. Using your account consists of making deposits and withdrawals For both transactions, the amount of the transaction must be known. The user can also view his account balance using the toStringO method. A Saving Account is a bank account that also has a field "Interest Rate and an Interest which is a calculation method that allows you to update the balance with interest. A paying Account is a bank account in which each withdrawal and deposit transaction is subjoct to a fee. The fee amount is LBP Do the following: Define the Account class. Define the SavingAccount class. Define the payingAccount class. Create a program allowing to test these classes through the following actions: Create an instance of the Account class, an instance of the SavingAccount class and ar instance of the payingAccount class. The call of the method depositO for each instance to deposit a certain amount into these accounts. Call the method withdraw from each instance to withdraw a certain amount from these accounts. Call the Interest method of the Saving account. Use the formula balancebalance Display the balance of each account.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started