In Java:
import java.util.Scanner;
public class LabProgram {
/* Define your method here */
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
String[] sentence1Words = new String[20];
String[] sentence2Words = new String[20];
int wordCount;
// Read the number of words per sentence
wordCount = scnr.nextInt();
// Call readSentences() to populate arrays
readSentences(scnr, sentence1Words, sentence2Words, wordCount);
// Display differing word pairs
/* Type your code here. */
}
}