Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Exercise includes two classes, AccountTest and Account . The AccountTest class should create a new Account with a starting balance of $100. Then it

This Exercise includes two classes, AccountTest and Account. The AccountTest class should create a new Account with a starting balance of $100. Then it should have a do -- while() loop that asks if the user wants to enter a deposit "D" or withdrawal "W" or end "Quit" Based on the user's input, the transacton should take place and then return to ask the user to enter another transaction. The Account class is very similar to the Savings class created in the last exercise. The format of the output from the getStatement() does not have to be columnar but I encourage you to try. When a user chooses "Quit", the program should display the current balance and give a statement of all of the transactions. Example Input Request For a deposit Enter: D Withdrawal Enter: W or 'Quit' to exit. Example Output The current balance is $ 262.92 Transaction History Deposit 673.88 Balance $773.88 Withdrawal 159.44 Balance $614.44 Deposit 592.45 Balance $1206.89 Deposit 22.54 Balance $1229.43 Withdrawal 966.51 Balance $262.92

import java.util.*; /** * * @author Student */ public class AccountTest {

public static void main(String[] args) { Scanner input = new Scanner(System.in);

// enter AccountTest code here

} // end AccountTest class

//************************************************* //** Account class starts below this box ** //*************************************************

class Account {

// Enter Account class code here

} // end Account class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago