Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16927
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.misty.com!news-out.readnews.com!transit4.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail |
|---|---|
| From | "Kevin Espardinez" <kevin.espardinez@1:261/38.remove-s5i-this> |
| Subject | Please Help Me Guys! Need lang..it will be a pleasure and i'd be very |
| Message-ID | <50197005.55894.calajapr@time.synchro.net> (permalink) |
| X-Comment-To | All |
| Newsgroups | comp.lang.java.programmer |
| X-FTN-AREA | COMP.LANG.JAVA.PROGRAMMER |
| X-FTN-MSGID | 1:261/38 895ec0fa |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] |
| Lines | 27 |
| Date | Wed, 01 Aug 2012 18:09:34 GMT |
| NNTP-Posting-Host | 69.21.70.65 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1343844574 69.21.70.65 (Wed, 01 Aug 2012 13:09:34 CDT) |
| NNTP-Posting-Date | Wed, 01 Aug 2012 13:09:34 CDT |
| Organization | tds.net |
| Xref | csiph.com comp.lang.java.programmer:16927 |
Show key headers only | View raw
From: Kevin Espardinez <espardinez23@gmail.com> 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. --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Please Help Me Guys! Need lang..it will be a pleasure and i'd be very "Kevin Espardinez" <kevin.espardinez@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be "Lew" <lew@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd "Robert Klemme" <robert.klemme@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd "Jeff Higgins" <jeff.higgins@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
Re: Please Help Me Guys! Need lang..it will be a pleasure and i'd be very Roedy Green <see_website@mindprod.com.invalid> - 2012-08-07 03:28 -0700
csiph-web