3 Easy Java programs

FratBro23
Category:
Programming
Price: $5 USD

Question description

Using Textpad & J2SE Development Kit 5.0 Update 2

Write a program that reads in the radius and length of a cylinder from the console. Compute the area and volume and display the results. The formulas are as follows: aera = radius * radius * PI PI = 3.1416 volume = area * length Submit both source code and compiled code ( .java and .class files )

 

Using Textpad & J2SE Development Kit 5.0 Update 2

Write a program that prompts the user to enter a number of minutes ( eg. 1000000000 )
Then convert it to the number of years and days and display the result.

The formuls for the conversion is as follows:

1 year = 365 days
1 day = 24 hours * 60 minutes

Submit both source code and compiled code ( .java and .class files )



Using Textpad & J2SE Development Kit 5.0 Update 2

Write a program that reads a Celsius degree in a double value from the console.
Then convert it to Fahrenheit and display the result.

The formula for the conversion is as follows:

fahrenheit = (( 9/5 ) * celsius) + 32

BE CAREFUL : In Java 9/5 is 1 but 9.0/5.0 is 1.8

Submit both source code and compiled code ( .java and .class files )


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: University of Maryland
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1829 tutors are online

Related Programming questions

09/12/2013
09/11/2013
09/11/2013
09/09/2013

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors