what is the java code

K

kutzi_lala_yey

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.
 
P

Peter Flynn

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,008
Messages
2,570,270
Members
46,873
Latest member
HeidiWeing

Latest Threads

Top