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

data\" value should not be treated as data; that is, it should not be included i

ID: 3603022 • Letter: D

Question

data" value should not be treated as data; that is, it should not be included in the counting In the sample run that appears below, you can see that 5 is the K value, -8388608 marks the end of the seven data values, 3 indicates that three of the values were divisible by 5, and 4 indicates that four of the data values were not divisible by 5. Sample run: :5 :100 : 67 :-25 :94663 :0 :112644 :-1653 :-8388608 3 4 As indicated earlier, use $412E01 to read values (the value typed by the user is stored in the ACC) and $412E00 to write values (the value in the ACC is printed on the terminal).

Explanation / Answer

Below code allows the user to read the integer values from console and checks the value with -8388608 .if value does not match then it check whether divisible by k and continues .if the value matches the -8388608 then program ends printing result

Code - Please find c# program

If ( k = -8388608)

{

output1=0;

output2=0;

}

Else

{

If(intTemp != -8388608)

{

If((intTemp%k)==0)

{

output1= output+1;

}

Else

{

output2= output2+1;

}

}

Else

{

end =1;

}

}