Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. ==================================================
  2. Problem 1.
  3. ==================================================
  4. int A, 15
  5. int B, 16
  6. int C, -1
  7. String D, 123430717
  8. String E, 2(8 ; 2)611
  9. double F, 8.0
  10. double G, 3.2
  11. int H, 4
  12. int I, -3
  13. double J, 4.25
  14. String K, 1x1 is5
  15. double L, 3.0
  16. String M, 2(int)2.042
  17. double N, 1.0
  18. double O, -5.0
  19. double P, 9.0
  20. double Q, 0.0
  21. double R, 1.75
  22. ==================================================
  23. Problem 2.
  24. ==================================================
  25. Part A.
  26. 3
  27. Part B.
  28. 5 7 -6.0
  29. Part C.
  30. 4 8xc
  31. Part D.
  32. 8
  33. Part E.
  34. 2 2.0
  35. Part F.
  36. *************************
  37. Part G.
  38. *******************************************************
  39. Part H.
  40. *********
  41. ********
  42. *******
  43. ******
  44. *****
  45. ****
  46. ***
  47. **
  48. **
  49. **
  50. Part I.
  51. BC
  52. ==================================================
  53. Problem 3.
  54. ==================================================
  55. Part A.
  56. for (int i = 0; i < da; i++) {
  57. error: variable i is already defined in method
  58. Part B.
  59. int by = Math.pow(_bx, bz);
  60. error: incompatible types: possible lossy conversion
  61. Part C.
  62. double 2x = 2 * cx;
  63. error: not a statement
  64. Part D.
  65. sum /= i;
  66. error: variable sum might not have been initialized
  67. Part E.
  68. if (ez = 5)
  69. error: incompatible types: double cannot be converted to boolean
  70. ==================================================
  71. Problem 4.
  72. ==================================================
  73. 10 is roughly 4 plus 3
  74. YES
  75. maybe
  76. NO
  77. maybe
  78.  
  79. 5 is roughly 10 plus 3
  80. maybe
  81. NO
  82.  
  83. 17 is roughly 2 plus 6
  84. YES
  85. maybe
  86. NO
  87. maybe
  88.  
  89. 3 is roughly 17 plus 40
  90. maybe
  91. NO
  92.  
  93. 11 is roughly 7 plus 4
  94. maybe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement