Basic Java Homework - Object-Oriented

Fertiggestellt Veröffentlicht Apr 30, 2014 Bezahlt bei Lieferung
Fertiggestellt 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.

Java

Projekt-ID: #5877673

Über das Projekt

33 Vorschläge Remote Projekt Aktiv Apr 30, 2014

Vergeben an:

it2051229

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.

$20 USD in 0 Tagen
(323 Bewertungen)
6.6

33 Freelancer bieten im Durchschnitt $25 für diesen Job

dobreiiita

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

$20 USD in 1 Tag
(231 Bewertungen)
6.8
msabouri

Aucune proposition n'a encore été fournie.

$29 USD in 1 Tag
(68 Bewertungen)
5.7
rakib062

Hi, I am a graduate in CS and working as a Java programmer for 3+ years. I have done lots of assignments both in academic courses and in freelancer.com. I assure you of clean, efficient code with proper comment an Mehr

$35 USD in 1 Tag
(27 Bewertungen)
4.9
szymszteinsl

Hi! I a professional C/C++/C#/Java programmer. I can do this with highest satisfaction! Best Regards, Szymszteinsl

$50 USD in 1 Tag
(19 Bewertungen)
5.0
cleanCode

Hello, Simple job, 2 simple solutions I will provide to you. Just give a good rating. All the best, Alex

$25 USD in 0 Tagen
(16 Bewertungen)
4.6
jeal4real

Hello , I am a very good JAVA Developer. I have worked on several projects both on freelancer and for companies in my country. I have also helped several students to get a distinction 'A' in their assignments and pr Mehr

$30 USD in 1 Tag
(18 Bewertungen)
4.6
pivn

let expert do this ............................................................................................................................

$25 USD in 1 Tag
(13 Bewertungen)
4.1
jmadhead

Hi! I can done you project in few hours! Easy for me. Look my reviews, I finished several such projects.

$19 USD in 1 Tag
(5 Bewertungen)
3.2
umarbsse

A proposal has not yet been provided

$15 USD in 1 Tag
(5 Bewertungen)
3.2
stonechow

一个有效的提议尚未被提供

$24 USD in 3 Tagen
(5 Bewertungen)
3.0
ramihemang90

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

$35 USD in 1 Tag
(3 Bewertungen)
2.9
dk5

hi buddy, i have 2 years of experience in teaching and development of java.i have created projects like paint app, hotel management system, sales monitoring system, etc. i am ready to fulfill your requirement. so Mehr

$30 USD in 2 Tagen
(3 Bewertungen)
2.7
ghorivipul97

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

$30 USD in 2 Tagen
(4 Bewertungen)
3.1
cungthehung

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!

$25 USD in 0 Tagen
(3 Bewertungen)
1.9
OmaProgramacion

It looks like an easy work to do. I have student and working expirience in java and patterns, so I can do it well.

$15 USD in 1 Tag
(0 Bewertungen)
0.0
JanittaJames

A proposal has not yet been provided

$25 USD in 4 Tagen
(0 Bewertungen)
0.0
dhruvRD

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.

$30 USD in 2 Tagen
(0 Bewertungen)
0.0
resol

A proposal has not yet been provided

$25 USD in 1 Tag
(0 Bewertungen)
0.0
svkumar7

Hi!, I would like to finish this project and also willing to work on your future projects., Thanks, Vinothkumar S

$12 USD in 1 Tag
(0 Bewertungen)
0.0
dhiren707

I am well versed with these concepts of Java and will be able to do this as mentioned. Please open chat session to discuss.

$15 USD in 1 Tag
(0 Bewertungen)
0.0