Menu

(Solved) : Write Void Function Take Three Ints Named Numrows Numcols Assume Numrows Numcols Always Nu Q37265486 . . .

Please correct and explain my mistakes in my finalcode.

Write ONLY a void function to take three ints named numRows and numCols. Assume numRows and numCols are always numbers that a

4) Noid add to pixels (int PIC1, nun Cols, nwn Rows) for(i=0, İL numRows, l t.) 0 r Yoa have nym

Write ONLY a void function to take three ints named numRows and numCols. Assume numRows and numCols are always numbers that are multiples of 4. DO THIS TASK IN TWO STEPS. First step, imagine that you cut the picture into 4 equal vertical strips; the function should copy the second (from the left) strip to the last (rightmost) strip’s space, but should also flip the strip from top to bottom. Second step: the pic that results from the first step, imagine that the picture is cut into 4 equal horizontal strips; you need to make the strip that is second from the top, this strip needs to be made BRIGHTER by 60 (some pixels will turn black from this step, and that is how we want it to be). You are allowed to think in your head that the picture is 256×256, but you are NOT ALLOWED to assume this in your code. Also, you do not need to worry about displaying the pic, you only need to do the two steps. Carefully study the outpic before starting your parameters: an int** array named PIC1 and two code. Notes Void int PIC1 , hum Row , u m Cols), /L і->((J-humRows)/y)-)((2.pumRots) 7( (3 )/4) → (( y hoAQls)/) Original face picture nym Cols 4/ i mg temp Lnum Col Final Desired outpul picture 5 4) Noid add to pixels (int PIC1, nun Cols, nwn Rows) for(i=0, İL numRows, l t.) 0 r Yoa have nym Show transcribed image text Write ONLY a void function to take three ints named numRows and numCols. Assume numRows and numCols are always numbers that are multiples of 4. DO THIS TASK IN TWO STEPS. First step, imagine that you cut the picture into 4 equal vertical strips; the function should copy the second (from the left) strip to the last (rightmost) strip’s space, but should also flip the strip from top to bottom. Second step: the pic that results from the first step, imagine that the picture is cut into 4 equal horizontal strips; you need to make the strip that is second from the top, this strip needs to be made BRIGHTER by 60 (some pixels will turn black from this step, and that is how we want it to be). You are allowed to think in your head that the picture is 256×256, but you are NOT ALLOWED to assume this in your code. Also, you do not need to worry about displaying the pic, you only need to do the two steps. Carefully study the outpic before starting your parameters: an int** array named PIC1 and two code. Notes Void int PIC1 , hum Row , u m Cols), /L і->((J-humRows)/y)-)((2.pumRots) 7( (3 )/4) → (( y hoAQls)/) Original face picture nym Cols 4/ i mg temp Lnum Col Final Desired outpul picture 5
4) Noid add to pixels (int PIC1, nun Cols, nwn Rows) for(i=0, İL numRows, l t.) 0 r Yoa have nym

Expert Answer


Answer to Write ONLY a void function to take three ints named numRows and numCols. Assume numRows and numCols are always numbers t…

OR