Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Hunter Thornsberry
- 1/18/2017
- Lab 01
- You are not expected to understand this.
- */
- #include <stdio.h>
- int main()
- {
- return 0;
- }
- int calcPoolTub() /* Don't pass anything because we get the data inside the method, could have done this differently and seperated the conerns... */
- {
- /*
- ==Pool==
- Depth of shallow end (2-5 feet) = shallowDepth
- Depth of deep end (6-12 feet) = deepDepth
- Width of pool (15-30 feet) = poolWidth
- Length of pool (35-60 feet) = poolLength
- Length of walk (5 feet to (1/3) of pool length) !- Calculations needed for limit = walkLength
- Length of the shallow end (10 feet to (1/3) pool length) !- Calculations needed for limit = shallowLength
- Length of deep end (12 feet to (1/2) pool length) !- Calculations needed for limit = deepLength
- ==Hot Tub==
- Width of the hot tub (8-14 feet) = tubWidth
- Depth of the hot tub (3-5 feet) = tubDepth
- */
- /* Declare variables */
- int shallowDepth, deepDepth, poolWidth, poolLength, walkLength, shallowLength, deepLength;
- /* Get the user input */
- printf("Depth of the shallow end: ");
- scanf("%d", &shallowDepth);
- printf("Depth of the deep end: ");
- scanf("%d", &deepDepth);
- printf("Width of the pool end: ");
- scanf("%d", &poolWidth);
- printf("Length of the pool end: ");
- scanf("%d", &poolLength);
- printf("Length of the walk in: ");
- scanf("%d", &walkLength);
- printf("Length of the shallow end: ");
- scanf("%d", &lengthShallow);
- printf("Length of the shallow end: ");
- scanf("%d", &deepLength);
- printf("shallowDepth = %d\n" shallowDepth);
- printf("deepDepth = %d\n" deepDepth);
- printf("poolWidth = %d\n" poolWidth);
- printf("poolLength = %d\n" poolLength);
- printf("walkLength = %d\n" walkLength);
- printf("lengthShallow = %d\n" lengthShallow);
- printf("deepLength = %d\n" deepLength);
- /* return 0 */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement