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

B) The array\"A\" stores values as shown below. Write a single line of code whic

ID: 3148779 • Letter: B

Question

B) The array"A" stores values as shown below. Write a single line of code which replaces the value "gr in the array with the value "-12. This line of code must ONLY refer to the one value that to be changed. That is,itis not acceptable to simply retype the whole array 0 3 -2 18 A 4 7-5 3 3 L1 0 6-9 10 Section two: newer material (20 points for the section) Write an "f" statement to display the word "wow if xand y are both negative or if either is greater than 100. (Complete the code started below.) input(what is the x-value you wish to use? '); inputWhat is the y-value you wish to use?0 x y

Explanation / Answer

1.generally while representing matrices indexing starts from 0

hence answer is

A [2] [3] = -12

if you define indexing from 1 then it will be A [3] [4]= 12

2. if( x<0 && y <0 || ( x> 100 || y>100) )

    {

           printf("wow");

}

|| - logical or operator

&& - logical and operator