Basic Java Homework - Object-Oriented

Selesai Dipasang Apr 30, 2014 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

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

ID Proyek: #5877673

Tentang proyek

33 proposal Proyek online Aktif Apr 30, 2014

Diberikan kepada:

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 dalam 0 hari
(323 Ulasan)
6.6

33 freelancer rata-rata menawar $25 untuk pekerjaan ini

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 dalam 1 hari
(231 Ulasan)
6.8
msabouri

Aucune proposition n'a encore été fournie.

$29 USD dalam 1 hari
(68 Ulasan)
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 Lebih banyak

$35 USD dalam 1 hari
(27 Ulasan)
4.9
szymszteinsl

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

$50 USD dalam 1 hari
(19 Ulasan)
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 dalam 0 hari
(16 Ulasan)
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 Lebih banyak

$30 USD dalam 1 hari
(18 Ulasan)
4.6
pivn

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

$25 USD dalam 1 hari
(13 Ulasan)
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 dalam 1 hari
(5 Ulasan)
3.2
umarbsse

A proposal has not yet been provided

$15 USD dalam 1 hari
(5 Ulasan)
3.2
stonechow

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

$24 USD dalam 3 hari
(5 Ulasan)
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 dalam 1 hari
(3 Ulasan)
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 Lebih banyak

$30 USD dalam 2 hari
(3 Ulasan)
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. Lebih banyak

$30 USD dalam 2 hari
(4 Ulasan)
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 dalam 0 hari
(3 Ulasan)
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 dalam 1 hari
(0 Ulasan)
0.0
JanittaJames

A proposal has not yet been provided

$25 USD dalam 4 hari
(0 Ulasan)
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 dalam 2 hari
(0 Ulasan)
0.0
resol

A proposal has not yet been provided

$25 USD dalam 1 hari
(0 Ulasan)
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 dalam 1 hari
(0 Ulasan)
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 dalam 1 hari
(0 Ulasan)
0.0