Question
Test 2 COMP 212 Section 5 Winter 2018 This is an open-book test, and you can use any resources (e.g., lecture notes, examples, your assignments,
Test 2 COMP 212 Section 5 Winter 2018 This is an open-book test, and you can use any resources (e.g., lecture notes, examples, your assignments, etc.) that you feel may help you. However, you are not allowed to use your phone or communicate with anyone during the test. Please keep in mind that you are responsible for securing your own code. Yow will be penalized if another person has your code, or similar to your code. Instructions: Be sure to read the following general instructions carefully: - Test must be completed individually by all students - Save your program periodically, just in case your system crashes You are encouraged to demonstrate your solution during lab session. Submit your solution through the Drobox. You must name your submission according to the following rule: 300123456(smith)_Test#1.zip Question 1 [6 marks] Generate an array of 25 random ints in the range 1-9999. Display: the array in ascending order, the array of even numbers, First, Last, Min, Max, Average and Sum of the original array. Use LINQ and PLINQ extension methods. Display time and difference as a percentage. Question 2 [6 marks] Write an app that determine and display the number of duplicate words in a sentence. Treat uppercase and lowercase letters the same. Ignore punctuation. Question 3 [6 marks] Create a LinkedList of strings: Mary got a little lamb. - Add the word 'Today to the beginning of the linked list. - Move the first node to be the last node. - Change the last node to yesterday'. - Add 'Stuart' after Mary. - Add white before lamb.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started