Adventures in Programming

Site Stats
APCS schedule | APCS Login | APCS Forms | APCS Resources | APCS Archive | APCS Stuff
Java schedule | Java Login | Java Forms | Java Resources | Java Archive | Java Stuff
Adven schedule | Adven Login | Adven Forms | Adven Resources | Adven Archive | Adven Stuff
Stats schedule | Stats Login | Stats Forms | Stats Resources | Stats Archive | Stats Stuff

Program 58a

 

Program 58a
(PI ala mode)

 Program Description:  Write a program that inputs the radius of a circle.  The program will output the area and circumference of the circle as well as the volume and surface are of a sphere with the supplied radius.

 File names : prog58a<lastname>

Statements Required:  input, output

 Sample Output:

 

Enter the radius of a circle :13.45
A circle with a radius of 13.45 has:
Area of 568.321
Circumference of 84.5088
Volume of 10191.9
Surface area of 2273.29
Press any key to continue

 

When calculating volume use 4.0/3 NOT 4/3

PI =3.14159

 

 

 

Br Ca Ho LaN
Law Mac McH McL
Po Sm St Va
Not Listed

 


Last Name :

Email :
If you don't have an email address, use student@brentwoodhigh.com

Select one of the following that describes when and why you are filling out this form:
This assignment is in on time.
This assignment is in on time, being resubmitted due to a failed submission (I have a copy of the original submission).
This assignment is a corrected submission for half the missed credit.
This assignment is one day late and will lose 15%.
This assignment is more than one day late (half credit at best).
This assignment is late because of an EXCUSED absence.
This assignment is being resubmitted at the request of the teacher.


Updated: Monday, February 22, 2010 12:57 PM

 

 

Updated: Monday, February 22, 2010 12:57 PM

 

 

 

About Us | Site Map | Contact Us | Search | ©2005 brentwoodhigh.com