468,167 Members | 1,937 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

what is the java code

If You were hired by a gasoline firm to create a program that will
tell whether which route is faster and which route is more likely to
be fuel efficient separately. A test car was provided for you to model
your software. This test car holds a full tank of 40 Liters and burns
fuel at a rate of 7 Liters per kilometer. Your software should be able
to ask two alternate routes from the user and its corresponding
distances in kilometers. Assume that the allowed speed limit is at 40
KPH. After entering the required values your program should tell the
user which route is the fastest and which route is more fuel efficient.

Sep 20 '07 #1
2 1915
Do your own homework...

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Sep 20 '07 #2
ku************@yahoo.com.ph wrote:
If You were hired by a gasoline firm to create a program that will
tell whether which route is faster and which route is more likely to
be fuel efficient separately.
Missing THEN, ELSE, or ENDIF :-)
A test car was provided for you to model your software. This test car
holds a full tank of 40 Liters and burns fuel at a rate of 7 Liters
per kilometer.
Shomething wrong, shurely? Mine does about 13 l/100km. 7 l/km is
probably more than a racing car burns. I think the gas company is
playing you for a sucker.
Your software should be able to ask two alternate routes from the
user and its corresponding distances in kilometers.
Who wrote this rubbish? Two grammatical errors in a single sentence is
not acceptable if this has come from academia.
Assume that the allowed speed limit is at 40 KPH.
km/h is the usual abbreviation. Or probably some silly thing with powers
of minus one.
After entering the required values your program should tell the user
which route is the fastest and which route is more fuel efficient.
"faster" if there are only two of them.

GLPK is free software (http://www.gnu.org/software/glpk/)
Do it yourself.

Java code? Java is for writing annoying little applets. Engineering
software is written in FORTRAN, or if you're feeling adventurous, C.

///Peter, off topic for once :-)
Sep 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ravi Tallury | last post: by
24 posts views Thread by Steven T. Hatton | last post: by
121 posts views Thread by typingcat | last post: by
18 posts views Thread by Xah Lee | last post: by
26 posts views Thread by K.J.Williams | last post: by
oll3i
reply views Thread by oll3i | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.