In Progress

Java classes implementation

[url removed, login to view] a class, named Rational, for reduced-form rational numbers as specified below ( a rational number is in the reduced form if the greatest common divisor of the numerator and the denominator is 1.):

class Rational {

int numerator;

int denominator;

public Rational(int numerator, int denominator){

//Initializes the member variables

}

public Rational add(Rational r){

//return the sum of this and r.

}

public Rational sub(Rational r){

//return the difference between this and r (this-r).

}

public Rational mult(Rational r){

//return the product of this and r.

}

public Rational div(Rational r){

//return the quotient of this divided by r.

}

}

2. Implement a class 'Car' with the following properties. A car has a certain fuel efficiency(measured in miles/gallon) and a certain amount of fuel in the gas tank. The efficiency is specified in the constructor, and the initial fuel is 0. Supply a method 'drive' that simulates driving the car for a certain distance, reducing the fuel level in the gas tank, and methods 'getGas', to return the current fuel level, and 'addGas' to tank up. Sample usage :

Car myvolvo = new Car(15); //15 miles per gallon

[url removed, login to view](10); //10 gallons in tank

[url removed, login to view](50); //drive 50 miles

[url removed, login to view]([url removed, login to view]());

3. Design and implement a class 'ParkingMeter' for parking meters. A user can insert quarters and check remaining parking time. The constructor should take the maximum parking minutes and the rate ( minutes per quarter).

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Java - j2sdk1.4.2_05 in Windows XP

Skills: Engineering, Java, MySQL, PHP, Software Architecture, Software Testing

See more: web design classes, source gas, rate a car, product design classes, java j2sdk1.4.2, java j2sdk1 4.2, java distance, j2sdk1.4.2, j2sdk1 4.2, car hire system, car hire java, car design program, mult, fuel system, Fuel PHP, driving distance, car parking system, car drive, code parking, java code sample, rational class, java code implementation, implementation code, sample java system, class rational

About the Employer:
( 3 reviews ) United States

Project ID: #3364778

Awarded to:

bbarar

See private message.

$2.89 USD in 2 days
(321 Reviews)
6.0

10 freelancers are bidding on average $12 for this job

meansolutionsllc

See private message.

$17 USD in 2 days
(25 Reviews)
5.0
eugenste

See private message.

$34 USD in 2 days
(16 Reviews)
4.2
PDan

See private message.

$3.4 USD in 2 days
(9 Reviews)
3.4
kudortamas

See private message.

$10.2 USD in 2 days
(12 Reviews)
3.3
relysoft

See private message.

$8.5 USD in 2 days
(27 Reviews)
3.2
kumarvora

See private message.

$29.75 USD in 2 days
(1 Review)
2.4
raviGoyal

See private message.

$3.4 USD in 2 days
(2 Reviews)
0.0
mulderbaba

See private message.

$4.25 USD in 2 days
(0 Reviews)
0.0
wynstorm

See private message.

$4.25 USD in 2 days
(2 Reviews)
0.0