Question: PROG 110: The programming language is C# 1. Start a new console project, call it anything you like. 2. Define a new array to hold

PROG 110: The programming language is C#

1. Start a new console project, call it anything you like. 2. Define a new array to hold strings that can hold 4 strings. Call this array userInput 3. Build a for loop that goes from 0 to the length of your new userInput array, and inside the loop ask the user to enter words, Store each word the user enters in the array. As you leave this loop, your array will have 4 words in it. (Note carefully, if you hard code your loops to go from 0 < 4 you will lose a point. Your loops should adjust themselves to the size of the array they are working on.) 4. Using the Array class, sort the array. Then build a second for loop, that writes the 4 words back out to the screen. (2 of 10 points) 5. Now define a second new array that can also hold 4 strings. Call this array allCaps 6. Build a third for loop, and inside this loop, read each value from the userInput array and write it into the new allCaps array. You are copying one array into the other. However, force each word written to the allCaps array to be all caps ( .ToUpper() )Make sure this works 7. Build a fourth for loop, a clone of the 2nd loop, that writes the 4 words from the allCaps array to the screen. (4 of 10 points) 8. Build a 5th loop that asks the user to enter a name, your code should write out either - The person is not in the array, or - The person is in the array at location x - You must use the Array.BinarySearch method to make this work. Use the allCaps array for this loop - Exit the program if they enter the work quit - (4 of 10 points)

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 Databases Questions!