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

0,0 0,0 8,9 15,15 17,17 22,22 # of lines: 6 Similarity: 83.3333% Identical? NO c

ID: 3721870 • Letter: 0

Question

0,0

0,0

8,9

15,15

17,17

22,22

# of lines: 6

Similarity: 83.3333%

Identical? NO

copy-paste your program into zyante, switch to Submit and Submit for grading. Note that different programming system: environments have different defaults, so it's quite possible that a program working outside of zyante will fail when run inside zyante. This is not an error in the zyante system -this means there is a logic error in your program. The most common mistake is failure to initialize a variable. If your program fails to produce output here in zyante, then switch to Develop mode, supply some test inputs, and Run program Make sure your program compiles, and runs to completion. Add output statenents if you need to debug further mode, LAB ACTIVITY 6.23.1 0/100 File is marked as read only Current file: main.cpp 1 /*main.cpp*/ 4 // Are two files identical with regards to integers they contain? 6 // Prof. Joe Humme1 7 11 U. of Illinois, Chicago 8 1I CS 109, Spring 2818 9// Project 06-01: Solution 12 #includeiostream» 13 #include 14 #include 15 : #include «stdlib 16.#include 17 #include

Explanation / Answer

int OutputAndCompare(int values1[],values2[],int N)

{

int similar=0;

for(int i=0;i<N;i++)

{

cout<<values1[i+1]<<","<<values2[i]<<endl;

if(values1[i+1]==values2[i])

{

similar++;

}

}   

return similar;

}

Try replacing this method to with i had provided.