Frequent asked Questions

Q1) What is a copy constructor? Illustrate with a suitable C++ example.Q2)Write a user defined function in C++ to find the sum of both left and right diagonal elements from a two dimensional array.Q3)Write a user defined function Reverse(int A[ ],int n) which accepts an integer array and its size as arguments(parameters) and reverse the … Continue reading Frequent asked Questions


#include<iostream> using namespace std;int main(){int matrix[10][10], transMatrix[10][10], row, col; cout<<“Enter the number of rows: “;cin>>row; cout<<“Enter the number of columns: “;cin>>col; cout<<“Enter elements of matrix: “<< endl; for(int i =0;i< row;i++) { for(int j=0;j< col;j++) {cin>>matrix[i][j];}}return 0;} output: Enter the number of rows: 4Enter the number of columns: 3Enter elements of matrix:1 2 34 5 … Continue reading Program

Introduction to C++ language

C++ is a general purpose,case-sensitive, free-form programming language that0 supports object-oriented,procedural and generic programming. 2. C++ is a middle-level language,as it encapsulates both high and low level language features. Object-Oriented Programming (OOPs): C++ supports the object-oriented programming, the four major pillar of object oriented programming used in C++ are: a)Inheritance b)Polymerphism c)Encapsulation d)Abstraction C++ standard … Continue reading Introduction to C++ language

Coding in C++

#include<iostream>#include <string>using namespace std; class Employee{public:Employee( string, string, int );void setFirstName( string );string getFirstName();void setLastName(string);string getLastName();void setMonthlySalary(int);int getMonthlySalary();private:string firstName;string lastName;int monthlySalary;};Employee::Employee( string first, string last, int salary){firstName=first;lastName=last;if(salary>0)monthlySalary=salary;else{monthlySalary=0;cout<<“Initial salary was invalid.”<<endl;}}void Employee::setFirstName( string first){if ( first.length() <= 25 )firstName = first;if ( first.length() > 25 ){firstName = first.substr( 0, 25 );cout << “Name \”” << first … Continue reading Coding in C++

𝐒𝐲𝐬𝐭𝐞𝐦 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭 𝐋𝐢𝐟𝐞 𝐂𝐲𝐜𝐥𝐞 (𝐒𝐃𝐋𝐂) (𝐖𝐀𝐓𝐄𝐑 𝐅𝐀𝐋𝐋 𝐌𝐎𝐃𝐄𝐋)

This is also known as traditional system development method or function driven method or process driven method. The method requires the analyst to follow a sequence of phases during the development and implementation of an information system. This involves people and is described as information system development project. The following are the system development cycle … Continue reading 𝐒𝐲𝐬𝐭𝐞𝐦 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭 𝐋𝐢𝐟𝐞 𝐂𝐲𝐜𝐥𝐞 (𝐒𝐃𝐋𝐂) (𝐖𝐀𝐓𝐄𝐑 𝐅𝐀𝐋𝐋 𝐌𝐎𝐃𝐄𝐋)

Computer Application

COMPUTER APPLICATIONS TWO GEOGRAPHIC INFORMATION SYSTEM GIS technology provides excellent support for:  Land use planning projects  Ecological and hydrological investigations  Environmental assessments  Watershed assessments  Wellhead protection programs  Water quality monitoring and assessment programs  Water resource development projects  Design and construction of water system infrastructure  Public outreach … Continue reading Computer Application

Create your website at
Get started