Question: Problem Design and develop a PHP program to compare two String arrays. You will show a page consisting of a Header, two text areas and


Problem Design and develop a PHP program to compare two String arrays. You will show a page consisting of a Header, two text areas and two buttons as follows (see next page for Ul) Header shows the university, course, your name and assignment details Two text areas (called -Array 1 and Array 2) take the inputs from the users. Users can type or copy/paste the array elements Two buttons (called - Clear and Submit) Clear button resets or clears the two text areas (input boxes). Submit button processes the inputs. The output of the submit button is shown in 4 different section:s (arrays as-is, exclusive elements in Array 1. exclusive elements in Array 2, and common elements between the arrays). ssumptions: [1] You can assume that the elements are unique in each of the arrays. Checking for uniqueness is not required for this assignment [2] The number of elements in each array can be upto 2000. However, you can do the testing for 10 elements in each array. [3] You can assume that users type each array element on a separate line. Evaluation Criteria [2 points] Header showing the University name, class name and number, students name and assignment number" is present [5 points] Clear button is functional (clears the two text areas and the output box) [3 points] The output of Submit button is shown on the same page (not in a separate tab. Not in a pop-up window) [5 points] Submit button prints the exclusive elements in Array 1 [5 points] Submit button prints the exclusive elements in Array 2 [5 points] Submit button prints the comman elements present in both Array 1 and Array Submission Details Submit a ZIP file consisting of [1] your PHP files and [2] sample outputs for two of your test cases (these would be screen shots)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
