Basic Java Homework - Object-Oriented
$10-30 USD
Bezahlt bei Lieferung
Homework 6: Object-Oriented Homework
Problem Description:
Create a BankAccount class. The account should have the instance variables, owner (type String), balance (type double) and annualInterestRate (type double). The interest rate should be the decimal representation of the interest. For example, if annual interest rate is 5%, annualInterestRate should contain 0.05.
The class should have a default (no-arg) constructor that sets the name to null and balance to zero, a second constructor should initialize owner, balance and annualInterestRate. Make sure there are accessor methods for ALL instance variables and mutator methods for owner and annualInterestRate. In addition, create methods for deposit(double amount) and withdraw(double amount) that change the balance of the account.
Create a second class, BankAccountTester with a main method. In the main method, create 2 instances of BankAccount named myAccount and yourAccount. Initialize myAccount with no-arg constructor and add your name as owner and an annualInterestRate of 2.5%. Then, deposit $6000 dollars and print information about the account.
The second instance named yourAccount should be initialized with the name “John Doe” as owner, an initial balance of $450.50 and an annual interest rate of 5%. Withdraw $25 and print the information about the account.
Information about yourAccount should look as follows:
Owner: John Doe
Balance: $425.50
Interest Rate: 5%
Note that to print interest rate as percentage, you will need to multiply decimal representation by 100.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Please create two separate solution .java files, make the coding look different from each other but the solution still have to be correct.
Projekt-ID: #5877673
Über das Projekt
Vergeben an:
Hi, I would like to work with you again if you give me the opportunity. Let me know if you are interested so I can start. Thanks.
33 Freelancer bieten im Durchschnitt $25 für diesen Job
Happy to help you out. Java Expert, work will be delivered within couple of hours of time. Contact to carry out the project Thanks Dobre
Hi! I a professional C/C++/C#/Java programmer. I can do this with highest satisfaction! Best Regards, Szymszteinsl
Hello, Simple job, 2 simple solutions I will provide to you. Just give a good rating. All the best, Alex
let expert do this ............................................................................................................................
Hi! I can done you project in few hours! Easy for me. Look my reviews, I finished several such projects.
Hi Dear, I am java software engineer having experience of 1.6 years. I can do this job in one day. Do let me know for same Thanks & Regards Hemang Rami
hello I have 3+ year experience in java/j2ee. I have 2+ year work experience in Spring 3.x and Hibernate 4.x. I am very comfortable with external jar file. I am also very comfortable with mvc n-tire architecture. Mehr
Hi. Certainly i can complete it for you with that price. I have done 100% assignment for some employer. You can check it in my profile. Hope we have a deal. Thank you!
It looks like an easy work to do. I have student and working expirience in java and patterns, so I can do it well.
Hello, I am a Software Developer and have a good amount of experience in Java Programming .I can do this assignment for you within a short span of time. Please consider. Thanks.
Hi!, I would like to finish this project and also willing to work on your future projects., Thanks, Vinothkumar S
I am well versed with these concepts of Java and will be able to do this as mentioned. Please open chat session to discuss.