Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==================================================
- Problem 1.
- ==================================================
- int A, 15
- int B, 16
- int C, -1
- String D, 123430717
- String E, 2(8 ; 2)611
- double F, 8.0
- double G, 3.2
- int H, 4
- int I, -3
- double J, 4.25
- String K, 1x1 is5
- double L, 3.0
- String M, 2(int)2.042
- double N, 1.0
- double O, -5.0
- double P, 9.0
- double Q, 0.0
- double R, 1.75
- ==================================================
- Problem 2.
- ==================================================
- Part A.
- 3
- Part B.
- 5 7 -6.0
- Part C.
- 4 8xc
- Part D.
- 8
- Part E.
- 2 2.0
- Part F.
- *************************
- Part G.
- *******************************************************
- Part H.
- *********
- ********
- *******
- ******
- *****
- ****
- ***
- **
- **
- **
- Part I.
- BC
- ==================================================
- Problem 3.
- ==================================================
- Part A.
- for (int i = 0; i < da; i++) {
- error: variable i is already defined in method
- Part B.
- int by = Math.pow(_bx, bz);
- error: incompatible types: possible lossy conversion
- Part C.
- double 2x = 2 * cx;
- error: not a statement
- Part D.
- sum /= i;
- error: variable sum might not have been initialized
- Part E.
- if (ez = 5)
- error: incompatible types: double cannot be converted to boolean
- ==================================================
- Problem 4.
- ==================================================
- 10 is roughly 4 plus 3
- YES
- maybe
- NO
- maybe
- 5 is roughly 10 plus 3
- maybe
- NO
- 17 is roughly 2 plus 6
- YES
- maybe
- NO
- maybe
- 3 is roughly 17 plus 40
- maybe
- NO
- 11 is roughly 7 plus 4
- maybe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement