Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 2 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 14 Sep 2017 My Price 10.00

data field name

**11.8      (New  Account class)  An  Account class  was  specified  in    Programming Exercise 9.7. Design a new Account class as follows:

 

■     Add a new data field name of the String type to store the name of the customer.

 

■     Add a new constructor that constructs an account with the specified name, id, and balance.

 

■     Add a new data field named transactions whose type is ArrayList that stores the transaction for the accounts. Each transaction is an instance of the Transaction class. The Transaction class is defined as shown in Figure 11.6.

 

 

 

 

 

 

 

 

 

 

 

Transaction

-date: java.util.Date

-type: char

 

-amount: double

-balance: double

-description: String

+Transaction(type: char, amount: double, balance: double, description: String)

 

 

 

FIGURE 11.6    The Transaction class describes a transaction for a bank account.

 

 

 

 

 

■     Modify the withdraw and deposit methods to add a transaction to the

 

transactions array list.

 

■     All other properties and methods are the same as in Programming Exercise 9.7.

 

Write a test program that creates an Account with annual interest rate 1.5%, balance 1000, id 1122, and name George. Deposit $30, $40, and $50 to the account and withdraw $5, $4, and $2 from the account. Print an account sum- mary that shows account holder name, interest rate, balance, and all transactions.

 

Answers

(5)
Status NEW Posted 14 Sep 2017 01:09 PM My Price 10.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)