Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

Followers

CS201 Assignment No 2 Solution

CS201 Assignment No 2 Fall 2017

Dear Students, Here you can read or Download CS201 - Introduction to Programming Assignment No 1 Solution and Discussion of Semester Fall 2017CS201 Assignment Solution has been added. We are here to facilitate your learning and we do not appreciate the idea of copying or replicating solutions.

CS201 Assignment No 2 Solution Fall 2017

You can see the sample Solution C++ Code preview below. and You can easily Download CS201 Assignment Solution File from the Download Button given below:

CS201 Assignment No 2 Solution output Preview Fall 2017
CS201 Assignment No 2 Solution output Preview Fall 2017

CS201 Solution Source Code

#include <iostream>
#include <stdlib.h>
#include <time.h>

using namespace std;

void generateArray (int [][7]);
void showArray(int [][7]);
void FindEvenNumber(int [][7]);

int main()
{
int Array[7][7];
generateArray(Array);
showArray(Array);
FindEvenNumber(Array);
cout << endl << endl ;
system ("pause");
}
void generateArray (int Array [][7])
{
srand(time(NULL));
for (int i=0; i<7; i++)
{
for (int j=0; j<7; j++)
{
Array[i][j]=0;
Array[i][j]=rand() % 500 + 1;
}
}
}
void showArray(int Array [][7])
{
cout << "\nArray Elements.....\n\n\n";
for (int i=0; i<7; i++)
{
for (int j=0; j<7; j++)
{
cout << Array[i][j] << '\t' ;
}
cout << endl ;
}
}
void FindEvenNumber(int Array [][7])
{
cout << "\n\nEven Number.......\n\n\n";
for (int i=0; i<7; i++)
{
for (int j=0; j<7; j++)
{
if (Array [i][j] % 2 == 0)
{
cout << Array [i][j] << '\t' ;
}
}
}
}

CS201 Assignment Solution Download Link

Download

Please Share it with your friends. You can also like our Facebook Page or Subscribe Us below for Updates. Thank You.