summaryrefslogtreecommitdiff
path: root/Project 1.txt
blob: 328b1f876c7241ab3cc3470ef75e4be2fcb99278 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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)