Question: Create a program that will perform the output below Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number

Create a program that will perform the output below Fourth Quarter JavaPrograms 1: String Concatenation 2: Common Array 3: If Else Random Number4: Sorting Array 5: Quit Enter your choice: I. II. The program

Create a program that will perform the output below Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: I. II. The program uses a switch statement to allow the user to choose a program: (2 pts) Choice 1. The program will concatenate two strings from the user input (5 pts) Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: 1 Enter First string: Black Enter Second string: Pink First String: Black Second String: Pink Concatenated string: BlackPink III. Choice 2. The program determines the common elements of the Arrays. (6 pts) (Note you must use Scanner to insert the first and second array elements. Array size must be three) Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: 2 Enter your first array elements: 5 3 2 Enter your second array elements: 2 First Array Elements [5, 3, 2] Second Array Elements: [2, 3, 1] The common arrays are: 32 IV. Choice 3. The program determines a number (Computer Generated) between 1 to 5. (8 pts) (NOTE 1: The user will attempt to guess the number three.) (NOTE 2: The program would exit if the user guessed the number correctly or exceeded the given tries.) Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: 3 I have a number between 1 to 5 Guess the number: 2 That's wrong. Tries 1 Guess the number: 1 That's wrong. Tries 2 Guess the number: 3 You guessed it! Program ended. V. Choice 4. The program sorts the array and determines the second-largest array. (6 pts) (Note you must use Scanner to insert the arrays. Array size must be Five) Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: 4 Enter your array elements: 1 5 2 4 6 The Original Numbers [1, 5, 2, 4, 6] The Sorted Numbers [1, 2, 4, 5, 6] : Second Largest Number is 5 VI. Choice 6. The program will end. (2pts) Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: 5 Program Terminated VII. Invalid Input. Displays an Invalid Choice message. (2pts) Fourth Quarter Java Programs 1: String Concatenation 2: Common Array 3: If Else Random Number 4: Sorting Array 5: Quit Enter your choice: 9 Invalid choice! The option is only 1 to 5!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!