Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. /* Hunter Thornsberry
  2. 1/18/2017
  3. Lab 01
  4. You are not expected to understand this.
  5. */
  6. #include <stdio.h>
  7.  
  8. int main()
  9. {
  10. return 0;
  11. }
  12.  
  13. int calcPoolTub() /* Don't pass anything because we get the data inside the method, could have done this differently and seperated the conerns... */
  14. {
  15. /*
  16. ==Pool==
  17. Depth of shallow end (2-5 feet) = shallowDepth
  18. Depth of deep end (6-12 feet) = deepDepth
  19. Width of pool (15-30 feet) = poolWidth
  20. Length of pool (35-60 feet) = poolLength
  21. Length of walk (5 feet to (1/3) of pool length) !- Calculations needed for limit = walkLength
  22. Length of the shallow end (10 feet to (1/3) pool length) !- Calculations needed for limit = shallowLength
  23. Length of deep end (12 feet to (1/2) pool length) !- Calculations needed for limit = deepLength
  24.  
  25. ==Hot Tub==
  26. Width of the hot tub (8-14 feet) = tubWidth
  27. Depth of the hot tub (3-5 feet) = tubDepth
  28. */
  29.  
  30. /* Declare variables */
  31. int shallowDepth, deepDepth, poolWidth, poolLength, walkLength, shallowLength, deepLength;
  32. /* Get the user input */
  33. printf("Depth of the shallow end: ");
  34. scanf("%d", &shallowDepth);
  35. printf("Depth of the deep end: ");
  36. scanf("%d", &deepDepth);
  37. printf("Width of the pool end: ");
  38. scanf("%d", &poolWidth);
  39. printf("Length of the pool end: ");
  40. scanf("%d", &poolLength);
  41. printf("Length of the walk in: ");
  42. scanf("%d", &walkLength);
  43. printf("Length of the shallow end: ");
  44. scanf("%d", &lengthShallow);
  45. printf("Length of the shallow end: ");
  46. scanf("%d", &deepLength);
  47. printf("shallowDepth = %d\n" shallowDepth);
  48. printf("deepDepth = %d\n" deepDepth);
  49. printf("poolWidth = %d\n" poolWidth);
  50. printf("poolLength = %d\n" poolLength);
  51. printf("walkLength = %d\n" walkLength);
  52. printf("lengthShallow = %d\n" lengthShallow);
  53. printf("deepLength = %d\n" deepLength);
  54.  
  55. /* return 0 */
  56. return 0;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement