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 2017. CS201 Assignment Solution has been added. We are here to facilitate your learning and we do not appreciate the idea of copying or replicating solutions. Recommended : CS201 Latest Solved MCQs (23 to 45 Lectures).CS201 Assignment No 2 Solution Fall 2017 |
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 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
If CS201 Assignment Solution provided by (Virtual Study Solutions) was helpful. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us below for Updates. Thank You.
If CS201 Assignment Solution provided by (Virtual Study Solutions) was helpful. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us below for Updates. Thank You.
Post a Comment