Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew 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: Tue, 31 Jul 2012 18:29:08 -0700 (PDT) Organization: http://groups.google.com Lines: 65 Message-ID: References: <26c08430-f29c-4f10-8eba-49eb50922abc@googlegroups.com> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1343786257 13659 127.0.0.1 (1 Aug 2012 01:57:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 1 Aug 2012 01:57:37 +0000 (UTC) In-Reply-To: <26c08430-f29c-4f10-8eba-49eb50922abc@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 3210 Xref: csiph.com comp.lang.java.programmer:16897 Kevin Espardinez wrote: > you are going to create a more specialized Taxi Meter that contains addit= ional information for non-air and aircon taxies. Your task is to extend the= TaxiMeter class that was implemented in the previous question. Add some at= tributes and methods that you think are needed for a non-air and aircon Tax= i records. Try to override some existing methods in the superclass TaxiMete= r, if you really need to. The following describe the billing for Non-air an= d Aircon Taxi. >=20 > NON-AIRCON >=20 > Flag Down P 26.00 >=20 > For every 400 meters P 1.00 >=20 > For every 1.5 minutes waiting P 1.00 >=20 > AIRCON >=20 > Flag Down P 30.00 >=20 > For every 400 meters P 1.50 >=20 > For every 1.0 minutes waiting P 1.50 >=20 > 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: >=20 > totalAmount =3D amountOnWait + amountOnDistanceTravelled >=20 > amountOnWait =3D increments if waitingMinuteToIncrement is satisfied >=20 > amountOnDistanceTravelled =3D incrementRate * (distanceTRavelled /increme= ntableDistance) >=20 > Write two of its subclasses, the Non-air and Aircon. You can add addition= al 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/=20 What is giving you trouble? This reads like homework. Is this for a class? If so, have you sought=20 help from your professor or teaching assistants? What have they=20 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.=20 We see a textbook question, and pretty much nobody will=20 do your homework for you. We don't hate you enough to do that. Anybody that does offer to do your assignment for you=20 should be refused. --=20 Lew