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