www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS201 Introduction to Programming Assignment No. 2 Solution and Discussion Spring 2017 Due Date: May 22, 2017

 Assignment You will need to use a two-dimensional array with five rows and five columns for this assignment.   Task 1:             First of all, you will need to populate this 5x5 array with random numbers from 1 to 100. For this purpose create a function named populateArray() which will load the two-dimensional array with random numbers from 1 to 100.   Task 2:             Create a function named displayArray() which will display the contents of this multi-dimensional array on the console as shown in the sample output.   Task 3:             The final task is to find the maximum and minimum number in this array and display it on the console. For this purpose create a function findMaxMinNumber(). Sample output:

Views: 5274

### Replies to This Discussion

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

&

.... How to Find Your Subject Study Group & Join ....

here is the solution. i hope this will help you all cheers.

Attachments:

ye complete coding h kiaaa??????tell plzzzzz

maximum and minimum value wrong show ho rhi hai.

CS201 Assignment No.2 Solution Spring 2017

https://youtu.be/ixPYFwKulZ0

CS201 Assignment No.2 Solution Spring 2017

https://youtu.be/ixPYFwKulZ0

Aoa to all mjhe is ki smajh nai arai
srand(time(NULL)); is ka kia maqsad hy ye built in function hy kia ?

The srand(x) function sets the seed of the random number generator algorithm used by the function rand( ). A seed value of 1 is the default setting yielding the same sequence of values as if srand(x) were not used. Any other value for the seed produces a different sequence. srand(time(NULL));

thnx dear...agar hum 2 dimension array m input lena chahe without rand number hm kese constrict krain gy k ap 1 to 100 num enter krain thnx

Find the attached solution file

Attachments:

1

2

3

4

5