Bankaccount | Computer Science homework help

 CIS331 – Ch. 9 and 10 Exercise: Class BankAccount You are going to code and use a simple little bank account Class called BankAccount. The idea here is that instance objects of this class will represent separate bank accounts for customers. Here are your details: Part 1: Build the Class Data Fields: int accountID, String accountOwner, double accountBalance: all public. Constructors and Member Methods: On these, I will leave it up to your group to discuss return types, access specifiers, and logic except where noted. Remember that constructors have the primary job of giving your instance object’s data fields their starting values. BankAccount() BankAccount(String accountOwner, double accountBalance) A “setter” method for accountOwner A “getter” method each for accountBalance and account Owner makeTransaction(double amount) It will add the amount to the account Balance data field. The value of amount could be positive or negative. If the accountBalance data field becomes <=0.0 due to this transaction, print a message stating that the account is overdrawn. Part 2: Use the Class Create an instance object of your BankAccount class. Initialize it with whatever customer name and balance you want to use in the constructor invocation. Make 3-4 transactions of positive and negative amounts. Print out the status of the account like so: Example: Owner: Suzy, Balance: $3445.32 Part 3: Store Transaction History Enhance your BankAccount class so that you can store a history of transactions made on each account. Create a new class, called Transaction that will simply store an amount and a description of the transaction. Create only a full constructor for the class (no 0-arg constructor is needed) To your BankAccount class, add an array of Transaction objects. Give the array a size of 100 in your constructors. Add any additional data field(s) that are needed to help manage the array and where new Transactions will be stored. Each BankAccount will have its own Transaction array. • Modify the makeTransaction() method from earlier so it accepts both an amount and description. The method should now create a new Transaction object and store it in the BankAccount’s array. Correct any errors in your Application that result from these changes. 

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more