Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Follow the instructions in COMP122_W1_iLab_Part1_instructions.docx. 1. TEST PLAN

ID: 3648998 • Letter: F

Question

Follow the instructions in COMP122_W1_iLab_Part1_instructions.docx.

1. TEST PLAN: PREDICTED RESULTS

Test
No. Input Predicted Output
number1 number2 Sum Difference Product Quotient
1
2
3
4
5
6
7
8
9
10
Table 1: Test plan (predicted results) for program (IDE: Lab 1).

2. ACTUAL RESULTS

Test
No. Input Actual Output
number1 number2 Sum Difference Product Quotient
1
2
3
4
5
6
7
8
9
10
Table 2: Actual test results for program (Lab1).
(Use Alt-PrtSc to copy and paste the system error message window here

Explanation / Answer

import java.util.Scanner; class Problem { void main() { int a = b = 0; Scanner input = new Scanner(System.in); for(int i = 1; i