Google Answers Logo
View Question
 
Q: JAVA Programming HELP ME!!! ( No Answer,   0 Comments )
Question  
Subject: JAVA Programming HELP ME!!!
Category: Computers > Programming
Asked by: tomoko_0824-ga
List Price: $10.00
Posted: 06 Oct 2005 03:43 PDT
Expires: 06 Oct 2005 11:56 PDT
Question ID: 577034
Could anyone solve this??


Problem 1
---------

Write a program that prompts users to read three floating-point numbers 
and displays the smallest and the largest of them.

Here is a sample script:


Please enter first floating point number: 3.2 
Please enter first floating point number: 2.1 
Please enter first floating point number: 7.3
The smallest value is: 2.1
The largest value is: 7.3


Problem 2
---------

Write a program using Scanner class that reads three real numbers and 
assigns the appropriate boolean value to the following boolean variables:

Triangle: true if the real numbers can represent lengths 
of the sides of a triangle (the sum of any two of the 
numbers must be greater than the third) and false otherwise.

Equilateral: true if Triangle is true and the triangle is 
equilateral (the three sides are equal) and false otherwise.

Isosceles: true if Triangle is true and the triangle is 
isosceles (at least two sides are equal) and false otherwise.

Scalene: true if Triangle is true and the triangle is 
scalene (no two sides are equal) and false otherwise.

The output from your program should have a format like 
the following:

The entered three lengtsare: 2 3 3
Triangle is: True
Equilateral is: False
Isosceles is: True
Scalene is: False


Problem 3 
---------

Create a switch demo program that prompts users to 
enter one of four options to display whether the credit 
rating of some customer is excellent, or good, or poor. 
For example:

The following options are available:
1 - EXCELLENT credit rating
2 - GOOD credit rating
3 - POOR credit rating
4 - QUIT your program

Please enter your option [1, 2, 3, 4]: 2
This is a GOOD customer!

Request for Question Clarification by leapinglizard-ga on 06 Oct 2005 05:10 PDT
If you find after a while that no Researcher has answered your
question, you may want to reconsider the price you have put on it.
Considering the amount of time and expertise it would require to
answer this question, I believe you would attract more attention if
you were to raise your price tenfold.

leapinglizard
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy