Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with the extra credit question as well, thank you. Details: - The fomula for the suface area of a cytinder IS: 2

image text in transcribed

Please help me with the extra credit question as well, thank you.

Details: - The fomula for the suface area of a cytinder IS: 2 * pI * redius -(beight + zadius) - rr must be correctly dedared ard intilalized as a static constant. - radiurar and beigbt sthaud be doutie varbatles - The vaiues tor the radlus and the heights should be read in from your user as stings using a scanner then parsed to doubles. - See the example code under session Ei AddingulserintsandDoubles.java for examples haw to do this. - Do not use any method other than nextLinei) to read from the user - your progarn will cash f the user enters sometining other than a number: this is okay for now, we will leacn how to fix thils soon. - Use variabie namesjonstant rames that are mearingrul - Example program output: (progrom output in black, uscr's input in oranoc) Fiease enter the radius of your cylinder: You entered a radtus oft 8.7 Dlease entare the buight of your cyliender: You entered a height of: 4.0 The aren of a cylindar of radius 8.7 and height 4.0 is 694, 2285581009998 Extra Credit Style requirements: - Sarting from this assgnment, your code stould pess all chocksyyk cherls. - Use zavadoc comments at the top of your code for the descliption, ycur rame ard date. - clek the checkstive tile icon on the JGrasp toolbar with your assigrment code open in the edtting whidew. - Checkstyle will rin and output any errors in the lower windok. - I will run choodstrile on your code when I gratc. If there are crors, you will have poirts talen off the coding stylic pottion of the gradc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions