Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

3-5 How will MIS help my career?

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago