diff options
| -rw-r--r-- | Project 1.txt | 38 |
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 |