Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16897

Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be very thankful if you gotta help on this one guys!

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be very thankful if you gotta help on this one guys!
Date 2012-07-31 18:29 -0700
Organization http://groups.google.com
Message-ID <a4d93daf-e369-40af-b130-ebbcea436f20@googlegroups.com> (permalink)
References <26c08430-f29c-4f10-8eba-49eb50922abc@googlegroups.com>

Show all headers | View raw


Kevin Espardinez wrote:
> you are going to create a more specialized Taxi Meter that contains additional information for non-air and aircon taxies. Your task is to extend the TaxiMeter class that was implemented in the previous question. Add some attributes and methods that you think are needed for a non-air and aircon Taxi records. Try to override some existing methods in the superclass TaxiMeter, if you really need to. The following describe the billing for Non-air and Aircon Taxi.
> 
> NON-AIRCON
> 
> Flag Down P 26.00
> 
> For every 400 meters P 1.00
> 
> For every 1.5 minutes waiting P 1.00
> 
> AIRCON
> 
> Flag Down P 30.00
> 
> For every 400 meters P 1.50
> 
> For every 1.0 minutes waiting P 1.50
> 
> Try to modify the TaxiMeter class to create getAmount() abstract method. This is a method for calculating the total amount to be paid. Below are the formulas:
> 
> totalAmount = amountOnWait + amountOnDistanceTravelled
> 
> amountOnWait = increments if waitingMinuteToIncrement is satisfied
> 
> amountOnDistanceTravelled = incrementRate * (distanceTRavelled /incrementableDistance)
> 
> Write two of its subclasses, the Non-air and Aircon. You can add additional methods to its subclass if you want to.

What is your question, Kevin?

What have you done so far? Please show us the code.

Consider http://sscce.org/ 

What is giving you trouble?

This reads like homework. Is this for a class? If so, have you sought 
help from your professor or teaching assistants? What have they 
told you?

Are you talking about Java, at least?

Study how to ask questions on Usenet and similar forums:
http://www.catb.org/~esr/faqs/smart-questions.html

Right now we don't have enough information to help you. 
We see a textbook question, and pretty much nobody will 
do your homework for you. We don't hate you enough to do that.

Anybody that does offer to do your assignment for you 
should be refused.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Please Help Me Guys! Need lang..it will be a pleasure and i'd be very thankful if you gotta help on this one guys! Kevin Espardinez <espardinez23@gmail.com> - 2012-07-31 17:48 -0700
  Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be very thankful if you gotta help on this one guys! Lew <lewbloch@gmail.com> - 2012-07-31 18:29 -0700
    Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be   very thankful if you gotta help on this one guys! Robert Klemme <shortcutter@googlemail.com> - 2012-08-01 14:28 +0200
  Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be very thankful if you gotta help on this one guys! Jeff Higgins <jeff@invalid.invalid> - 2012-08-01 10:47 -0400

csiph-web