CS201 Assignment 2 Solution Fall 2017
#1
CS201 – Introduction to Programming
Assignment No.  2 Solution
Semester: Fall 2017


Assignment

Write a program that will generate random numbers and that numbers will be stored in a two-dimensional array. Then display the generated values on the screen and then also print the even numbers from the generated array elements.
 
Task 1:
 
First of all, you are required to generate random numbers from 1 to 500. For this, you are required to create a function named as “generateArray. The generateArray will load two- dimensional array with random numbers from 1to 500. The size of the two-dimensional array will be 7*7.
 
Task 2:
 
Defined a function named as “showArray(), which will display the elements of the two- dimensional array on the screen. See the sample output.
             
Task 3:
            The final task is to find the even numbers in this array and display it on the console. For this purpose create a function findEvenNumber().

Solution: Download attached file for complete CS201 c++ Assignment 2 Solution.


Attached Files
.cpp   CS201 Assignment 2 Solution.cpp (Size: 1.16 KB / Downloads: 38)
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  CS201-MidTerm Past paper Mishi Khan 0 448 12-22-2018, 07:32 PM
Last Post: Mishi Khan
  CS201 Assignment 1 Solution Fall 2018 Admin 2 1,343 12-03-2018, 10:07 PM
Last Post: Admin
  CS201 Assignment 3 Solution Spring 2018 Pakistani 0 2,248 07-24-2018, 08:27 PM
Last Post: Pakistani
  CS201 Assignment 2 Solution Spring 2018 Admin 4 5,697 05-28-2018, 02:36 PM
Last Post: Pakistani
  Assignment Solution CS201 Spring 2018 Syra Younas 3 2,750 05-07-2018, 09:46 PM
Last Post: Admin
  Cs201 Syra Younas 2 2,522 05-05-2018, 11:01 AM
Last Post: Muhammad Yaseen
  CS201 GDB Solution 2017 Rubaisha(Moody Girl) 3 2,757 01-10-2018, 10:16 AM
Last Post: fahadmukhtar
  cs201 GBD no 1 solution fahadmukhtar 1 2,041 01-07-2018, 10:12 AM
Last Post: Admin
  CS201 VIVA Questions and Answers Pakistani 1 9,155 02-06-2017, 05:26 PM
Last Post: Admin
  CS201 Assignment#2 Solution by Aly Hamza Aly Hamza 0 2,881 06-23-2016, 02:55 PM
Last Post: Aly Hamza



Users browsing this thread:
1 Guest(s)