CECS 174 Assignment 5 Design a program to guess a string. Use six possible letters a, b, c, d, e, and f. The computer chooses four letters at random, and they may be repeated, so they might be abcc or aadd, etc. The player enters a string of letters, say ddec. The computer returns two numbers, the number of letters that exactly match the pattern chosen in advance, and the number of letters that are in the pattern but that the user put in the wrong position. For example, if the pattern is abcc, some guesses and scores are: adef 1, 0 deaf 0, 1 cabb 0, 3 cccc 2, 0 acbc 2, 2 Sample Output Enter string of 4 from abcdef: bccf Computer chose: bfbe 1 exact, 1 out of place Declare a class with instance variables for each of the four characters for the pattern, each of the four characters for the guess, and for the pattern string. There are instance methods setGuess, getChar, toString, findExact, and findNotExact, the last overloaded with two versions. The getChar method gets a random integer 0, 1, 2, 3, 4, or 5 and returns the character at that position in the string "abcdef". The constructor calls the getChar method four times to get each character of the pattern and also saves a string of the original pattern. The setGuess method uses its String parameter to set each character of the guess. The findExact method returns the number of exact matches whenever the corresponding character of the pattern is equal to the corresponding character of the guess. If it finds a match it changes the pattern character to 'x' and the guess character 'y' to avoid further matches. The findNotExact method with a character parameter method tests the character parameter against each character of the pattern until it finds a match. If it finds a match it changes the pattern character to 'x' and returns 1. If the parameter does not match any pattern charcter the return 0. The findNotExact method with no parameters calls the findNotExact method four times for each character of the guess and returns the sum of the four return values. The toString method returns the original pattern string. Finally use formatted output to display the pattern and the results.