From ef19e83cbc9b444330b4992d6da6b9d8f1c9ff23 Mon Sep 17 00:00:00 2001 From: fires Date: Sun, 24 Sep 2023 18:39:10 -0700 Subject: [PATCH] Completed Assignment 002 --- .idea/misc.xml | 2 +- src/ArchimedesPiMethod.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index d15472f..433a737 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/ArchimedesPiMethod.java b/src/ArchimedesPiMethod.java index 0b6e780..581f4b3 100644 --- a/src/ArchimedesPiMethod.java +++ b/src/ArchimedesPiMethod.java @@ -2,6 +2,12 @@ public class ArchimedesPiMethod { public static void main(String[] args) { - + int n = 376; + int B = 360; + double A = .5; + int s = 2; + System.out.println(B/n); + System.out.println(A*B); + System.out.println(n*(Math.toRadians(s*Math.sin(A)))/2); } }