summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lawrance <[email protected]>2021-10-17 13:45:00 -0700
committerJames Lawrance <[email protected]>2021-10-17 13:45:00 -0700
commit0a81acadabbf4b41b673282e9c05e8814ca35eee (patch)
tree8aee513420728cfac502713808250e141089651e
parentCompleted Project 1 (diff)
downloadcst116-proj1-jemersonlawrance-0a81acadabbf4b41b673282e9c05e8814ca35eee.tar.xz
cst116-proj1-jemersonlawrance-0a81acadabbf4b41b673282e9c05e8814ca35eee.zip
Pushing the text file because it didn't go throughHEADmaster
-rw-r--r--Project 1.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/Project 1.txt b/Project 1.txt
new file mode 100644
index 0000000..328b1f8
--- /dev/null
+++ b/Project 1.txt
@@ -0,0 +1,38 @@
+James Lawrance Project 1
+--------------------------------------------
+
+Development Process -
+
+Step 1: Define the problem
+
+Need the volume of a user-defined cylinder
+
+Step 2: Requirement specification
+
+Need radius + height input, then pi * radius^2 * height calculation, then output
+
+Step 3: Design
+
+Pseudocode:
+
+Print "enter radius"
+Input radius
+Print "enter height"
+Input height
+Volume = (3.14)(radius * radius)(height)
+Print "The volume of your cylinder is " volume
+
+Step 4-7
+
+Coded in the C++ file
+
+Partner's corrected code output -
+
+What is the height of your cylinder?
+20
+What is the Radius of your cylinder?
+7
+The volume of your cylinder is 3078.67.
+What is the height of your cylinder?
+
+(partner chose to loop the code, allowing for multiple inputs before exiting the program) \ No newline at end of file