<repo_name>AriBishop/GeometryTool<file_sep>/GeometryTool.java
/* 
 * Author: <NAME>, <EMAIL>
 * Course: CSE 1001, Section 02, Spring 2016
 * Project: geometrytool
 */
 
 import java.util.Scanner;
 
 public class GeometryTool{
	 public static void main(String[] args){
		 Scanner kb = new Scanner(System.in);
		 double rectLength = 0, rectWidth = 0, squaLength = 0, circRadius = 0, numDeg = 0, cylRadius = 0,
                cylHeight = 0;
		 double rectArea = 0, rectPerimeter = 0, rectDiagonal = 0;
		 double squaArea = 0, squaPerimeter = 0, squaDiagonal = 0;
		 double circArea = 0, circCircumference = 0, sectArea = 0;
		 double cylVolume = 0, cylSA = 0;
		 
		 //Calculate the Area, Perimeter and Diagonal of the rectangle
		 rectArea = rectLength * rectWidth;
		 rectPerimeter = (2*rectLength) + (2*rectWidth);
		 rectDiagonal = Math.sqrt((rectLength * rectLength) + (rectWidth*rectWidth));
		 
		 //Print the rectangle Area, Perimeter and Diagonal to the screen
		 System.out.println("Area of Rectangle is: " + rectArea);
		 System.out.println("Perimeter of Rectangle is: " + rectPerimeter);
		 System.out.println("Diagonals of Rectangle is: " + rectDiagonal);
		 
		 //Calculate the square Area, Perimeter, and Diagonal
		 squaArea = Math.pow(squaLength, 2);
		 squaPerimeter = squaLength * 4;
		 squaDiagonal = Math.sqrt((Math.pow(squaLength, 2) * 2));
		 
		 //Print square Area, Perimeter and Diagonal to screen
		 System.out.println("Area of Square is: " + squaArea);
		 System.out.println("Perimeter of Square is: " + squaPerimeter);
		 System.out.println("Diagonals of Square: " + squaDiagonal);
		 
		 //Calculate circle Area/Circumference and sector Area
		 circArea = Math.PI * (Math.pow(circRadius, 2));
		 circCircumference = Math.PI * (circRadius * 2);
		 sectArea = (numDeg/360) * Math.PI * (circRadius * 2);
		 
		 //Print circle Area/Circumference and sector Area
		 System.out.println("Area of Circle is: " + circArea);
		 System.out.println("Circumference of circle is: " + circCircumference);
		 System.out.println("Area of a sector is: " + sectArea);
		 
		 //Calculate cylinder Volume and Surface Area
		 cylVolume = Math.PI * (Math.pow(cylRadius, 2)) * cylHeight;
		 cylSA = (2*Math.PI*(Math.pow(cylRadius, 2))) + ((2*Math.PI*cylRadius)*cylHeight);
		 
		 //Print cylinder Volume and SA
		 System.out.println("Volume of cylinder is: " + cylVolume);
		 System.out.println("Surface are of cylinder is: " + cylSA);
	 }
 }<file_sep>/README.md
# GeometryTool
A java 1 assignment that focused on the use of the Math API and number manipulation. Calculates: area, perimeter, and diagonal of rectangle; area, perimeter, and diagonal of a square; area, circumference, and sector area of a circle; and cylinder volume and surface area.


NOTE: Sector of a circle needs to be fixed.
