1.

Solve : Java beginner needs a little help?

Answer»

Hey im new to java and i just need a little ADVICE. have to make a program that CALCULATES the perimeter and AREA of a TRIANGLE and the area of and ELLIPSE. I have to have a main class that takes in user inputs a triangle and an elipse class that does the computing and a report class with a method that takes the values returned from triangle and ellipse and displays them with a format for 2 decimals. Whats the best way to pass the values to the report class and display them with proper formatting? Any help is greatly appreciated!We do not do homework here.
But here is a hint. You need to use real numbers. That means floating point for calculations. Haha yeah i got that i just needed help displaying the values returned with the right decimal format. But you dont do homework sorry i didnt know thanls anywayFor more information about java from users, go to this place:
http://stackoverflow.com/questions/17060285/java-double-how-to-always-show-two-decimal-digits
There you can find many posts about how others do decimals in Java.



Discussion

No Comment Found