|
|
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! | |
|
|
There is no answer at this time. |
|
There are no comments at this time. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |