CS 1500: Project 2 -- Circle

Due Friday, Oct. 19, 5:00 pm

 

For this project, you will develop a Java program that will calculate the circumference and area of a circle (see an example below). Your program will read the radius of the circle from the keyboard, and calculate and print out the circumference and area of the circle. For this project, your Java program needs to do its work using Java methods. Your program must have at least two methods, and at least one of your methods must return a value. We are talking about this in class . . .

Submission: We will be using the CS Homework Submission system

( https://hopper.csustan.edu/cshomework/ ).

You will submit your ".java" file, as usual . . .

Input data: Your program will read the radius of the circle from the keyboard.

Output: Your program will echo the input (the radius), and then the circumference and area of the circle (see below).

Scoring: The maximum possible score for the project will be 80 points. There will be up to 40 points for correct operation of your program, and up to 40 points for style, comments, etc.

Late programs will have their maximum possible score reduced to 0.9 times previous for each calendar day late (i.e., maximum possible score = 80 * (0.9^n) for n days late . . .).


Example:


Input:

	Enter radius: 2.5
	


Output:

	radius = 2.5

	Circumference = 15.707963267948966

	Area = 19.634954084936208

	Done . . .