473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2152
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: Andrew James | last post by:
All, I'm having some trouble with understanding python's importing behaviour in my application. I'm using psyco to optimise part of my code, but I'm not sure whether it inherits throughout the...
24
by: Steven T. Hatton | last post by:
If I understand correctly, I have no assurance that I can determine the type of a simple class instance thrown as an exception unless I explicitly catch it by name. (non-derived classes having no...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
6
by: TB | last post by:
Hi Everyone on comp.lang.c++: I am thinking about learning a programming language and I want to decide whether it is worthwhile spending my time learning the C++ programming language. I am a...
18
by: Xah Lee | last post by:
What are OOP's Jargons and Complexities Xah Lee, 20050128 Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) {...
26
by: K.J.Williams | last post by:
Hello, A friend and I want to learn PHP but we have two totally different programming backgrounds. I have experience with procedural programming in C, and he has experience with Visual BASIC....
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
1
by: okonita | last post by:
Hello all, I have a Java problem that I hope can be answered here. Very new to DB2 UDB and UDF (we are on DB2v9.5, Linux and Windows), I have managed to get the UDF registered but having problem...
2
raveendrabikkina
by: raveendrabikkina | last post by:
03/17 15:45:40 error Error creating form bean of class epost.form.BpUploadForm java.lang.InstantiationException: epost.form.BpUploadForm at java.lang.Class.newInstance0(Class.java:291) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.