How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask TheDoctor Your Own Question
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1757
Experience:  M.S. in Internet Information Systems
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

Design a class named Account that contains: A private int

This answer was rated:

Design a class named Account that contains:

A private int data field named id for the account(default 0)
A private double data field named balance for the account (default 0)
A private double data field named annualInterestRate that stores the current interest rate (default 0). Assume all accounts have the same interest rate.
A private Date data field named dateCreated that stores the date when the account was created.
A no-arg constructor that creates a default account.
A constructor that creates an account with the specific id and initial balance.
The accessor and mutator methods for id, balance, and annualInterestRate.
The accessor method for dateCreated
A method named getMonthlyInterestRate() that returns the monthly interest rate.
A method named withdraw that withdraws a specified amount from the account
A method named deposit that deposits a specified amount to the account.

Write a test program that creates an Account object with an account ID of 1122, a balance of $20,000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2,500, use the deposit method to deposit $3,000 and print the balanace, the monthly interest, and the date when this account was created.
Hello again! Thank you for requesting me.

I will contact you once this is complete.

Thank you
Customer: replied 4 years ago.

OK Thanks

Hello again!

You can download the assignment here:

I am providing both the .java files and the compiled .class files.

If you wish to run the test program, extract the zip, then go to the directory in your command prompt and type:

java TestProgram

This will run the program and dispaly the outputs.

Let me know if you have any questions. I'm here to help.

If you require my assistance in the future, please feel free to start your questions with **For TheDoctor**

Please remember to rate my answer. Thank you so much!
TheDoctor and 2 other Homework Specialists are ready to help you

You need to spend $3 to view this post. Add Funds to your account and buy credits.