File/Project name : Prog54c=<lastname>
Program Description: Write a program to print out the radius, area, and circumference of a circle. The radius of the circle is to be stored in a variable called Radius. Use a constant definition to store the value of P (3.14159). The circumference of a circle is calculated by the formula: Circumference = 2PR.
Required file and project names : Prog54c=<lastname>
Statements required: Input, Output, Constant declaration
Sample run - include both of the sample runs below in your sample output:
This program calculates the circumference of a circle. Enter the radius : 5 A circle with the radius of 5 has a circumference of 31.4159 units. Press any key to continue This program calculates the circumference of a circle. Enter the radius : 5.87 A circle with the radius of 5.87 has a circumference of 36.8823 units. Press any key to continue
This program calculates the circumference of a circle. Enter the radius : 5 A circle with the radius of 5 has a circumference of 31.4159 units. Press any key to continue
This program calculates the circumference of a circle. Enter the radius : 5.87 A circle with the radius of 5.87 has a circumference of 36.8823 units. Press any key to continue
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:58 PM
Code