Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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




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



anyone is done with cs201 assignment no 2 ?? is it a complete coding, in video?


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service