-->

2007年9月28日 星期五

Lab 9-28-2007 Simple Calculation

Suppose you are a landscape architect who charges $5,000 per mile to landscape a highway, and suppose you know the length in feet of the high way you are working on. Write a Java program to calculate the price you charge when the length is 6000 and 4000, respectively.

Hint: There are 5280 feet in a mile.


Ans :
If it is 4000 feet, need 3787.878787878788 dollars.
If it is 6000 feet, need 5681.818181818182 dollars.

0 COMMENT: