Question: Question 6 ( 5 points ) Fix the following program so that it will compile. Write the line number and modification that you would do

Question 6(5 points)
Fix the following program so that it will compile. Write the line number and modification that you would do.
1. public clasa Tracing
2.1
3. Dublic satio vold nata(atelag[? arga)
4.1
5. boolesn done \(=\) falsei
6. for int index \(=\) Ci 1 Edex \(10\) sa !denel index-)
7.\(\quad \)
a. Syntern.out.peint(intex)
9. if (indux t 4);
10. dera \(=\) trun;
11.\(\quad+\)
12.1
13.,
14.)
A
A/
1
A
\
A
Question 5(5 points)
What is the output of the following chunk of code?
```
int num =10;
boolean over = false;
wh1le(lover)
1
if (num & z ==1)
System.out.print(num +",");
else
System.out.println(nun) ;
if(num>>(n)
over = true;
num++;
J
```
Question 6 ( 5 points ) Fix the following program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!