Please need help with this program :)

• 11-07-2012, 02:41 PM
Merogx
Please need help with this program :)
hi i need help with this java problem solving , please someone solves it

Write a Java class (program) that reads from the user the radius of a cylinder and its height
as real numbers.

Then calculates and prints the surface area and the volume of the cylinder (both rounded to
2 decimal places). See the given figure.

Hint: Use Math.PI for the value of π.

surface area : A = 2 π r(power2) + 2 π r h

π = the phi (radius i mean )

volume : V = π r(power2) h

Attachment 4208

Thanks :)
• 11-07-2012, 03:42 PM
SurfMan
Re: Please need help with this program :)
• 11-07-2012, 04:00 PM
Merogx
Re: Please need help with this program :)
it is not a homework it's just question stands as a rock in front of me and i didn't expect that the forum discuses the problems and the chit chat for credit ???!

so please SurfMan if u can help just say it , u don't fine :D but don't be smart to write this silly comments to me ;)
• 11-07-2012, 04:14 PM
SurfMan
Re: Please need help with this program :)
Let me break this down for you:
"please someone solves it" - This means, please do this work for me.
"Write a Java class (program) that..." - Typical start of homework assignment
"Hint: Use Math.PI for the value of π." - Typical proof of homework assignment

If you show me what you have done so far and what the problem is, or which part you don't understand, I will help. Even if it's non-compilable code with errors.
• 11-07-2012, 04:45 PM