472,808 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,808 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 2122
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) ...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.