The language is basic java. Please determine the outputs for the following two c
ID: 3738171 • Letter: T
Question
The language is basic java. Please determine the outputs for the following two codes. Also, please act as if everything required is initialized without any errors (saying “no output because of error” is incorrect).Thank you. Section (30 pts): Output: logic, method calls, parameter passing to methods: Assume the following codes are given. Determine the outputs if code would be executed. 1)7 pts) int i-1; do OUTPUT fortintj-jj oj-) System.out.printf %2s"j System.out.printin() )while(i O) 2)(8 pts) int ij, bl-(1,1,1,, int all-(1,2,3,4,5) OUTPUT forli-0ikb lengthi++) bli] +=i+1; System.out printf("%2d:"bli): for(i-1i
Explanation / Answer
1)
Output:
1
__________________
2)
Output:
2:**
3:***
4:****
5:*****
6:******
______________Thank You
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.