Search This Blog

Thursday 31 May 2018

Download All MCS Solved Mid-Term Past Papers by Maaz Just one click Away



Dear Felllows:

You may download the solved mid-term past papers of the following subjects by Maaz by just click the Download.


         CS201
         CS402
         CS601
         ENG201
         MTH202
         STA301

Download Now

Wednesday 30 May 2018

Introduction to Programming (CS201)-Lab Exercise No.4 - WEEK 6 (Transpose of the Matrix

#include <iostream>

using namespace std; //Allows computer to output data

const int arraySize=3;


void readMatrix(int arr[][arraySize]);
void DisplayMatrix(int a[][arraySize]);
void TransposeMatrix(int a[][arraySize]);

main() //main function begins
{
int a[arraySize][arraySize];

readMatrix(a);


cout << "The Matrix is: \n\n";
DisplayMatrix(a);

TransposeMatrix(a);

//Display the transposed matrix
cout << "\n\n" << "The transposed matrix is: " << '\n';
DisplayMatrix(a); 


}//end of main function

void readMatrix(int arr[][arraySize])
{
int row, col;
for (row = 0; row < arraySize; row ++)
{
for(col=0; col < arraySize; col ++)
{
cout << "\n" << "Enter " << row << ", " << col << " element: ";
cin >> arr[row][col]; 
}
cout << '\n';
}
}

void DisplayMatrix(int a[][arraySize])
{
int row, col;
for (row = 0; row < arraySize; row ++)
{
for(col = 0; col < arraySize; col ++)
{
cout << a[row][col] << '\t';
}
cout << '\n';



void TransposeMatrix(int a[][arraySize])
{
int row, col;
int temp;

for (row=0;row<arraySize;row++)
{
for (col=row;col<arraySize;col++)
{
temp=a[row][col];
a[row][col]=a[col][row];
a[col][row]=temp;
}
}

}

Tuesday 29 May 2018

STA301 - Statistics and Probability Notes of Lesson 11 (M.D., S.D. & Coefficient of Variation



STA 301 – STATISTICS AND PROBABILITY

Notes of Lecture 11
Mean Deviation, Standard Deviation and Coefficient of Variation

Mean Deviation:

  •          Complete name of mean deviation is mean absolute deviation
  •          Absolute dispersion: is a pure number and compare variability of two or more data sets.
  •          Mean deviation is that – to measure the dispersion around arithmetic mean.
  •          Compute distance of x value from the mean (x-x)
  •          Is it important of x-x? As sum of x-xbar to be zero, it means overall dispersion of x values from mean is zero.
  •          So this not correct because there is variability of x around mean.
  •          Solution of this is to take absolute values x-x.
  •          Frequency distribution of continuous variable

a.       Compute mid-point of every class X = (a+b)/2
b.      Arithmetic mean = sigma fx/sigmaf
  •          Graphical representation of MD

a.       Range horizontal line segment start from x0 and going upto xm
b.      Quartile deviation half horizontal distance between first quartile and third quartile
c.       MD or SD we measure the horizontal spread of our distribution

Standard Deviation:

  •          The step of absolute is not defendable from mathematical point of view so this formula of MD is not preferable formula. To overcome this problem we introduce the SD
  •          Relative measure of dispersion corresponding to MD:  MD/mean
  •          When data have very low and very high data then better to use median to calculate the average instead of arithmetic mean.
  •          SD is the most important and widely used to measure of dispersion.
  •          We squared the deviation.
  •          Adding squares of deviation from mean dividing by number of observation is called variance.
  •          Variance expressed in square units.
  •          Positive Square root of variance is called the SD
  •          Unit of SD is same as data units

 Coefficient of Variation:

  •          Coefficient of variation is percentage
  •          We can compare the variability of two different dataset even the unit are different.


STA301 - Statistics and Probability Solution of Practice question 5 (lesson 11 to 15)

Dear Students:

You may download the correct solution of question no 5 of practice questions from Lecture no. 11 to 15 of STA301 by just click the Download.

Download Now

Monday 28 May 2018

STA301 - Statistics and Probability - Mid-Term Paper

Dear Students:

You may download the Mid-Term Papers of STA301 by just click the Download Now for preparation of Mid-Term Exams.

Download Now

STA301 - Statistics and Probability - Solution of Practice questions lect 11 to 15



Dear Students:

You may download the solution that contains the c++ code of Assignment 2 of CS201 spring 2018.

Download Now

Data Communication CS601 - Updated Revised Solution of Assignment 2

Dear Students:

You may download the idea of the solution of assignment 2  of cs601.

Download Now

Sunday 27 May 2018

Introduction to Programming CS201 - Past Mid Term Papers

Dear Students:

You may download the Mid Term Past papers for the preparation of Mid-Term Exam of CS201.



Download Now

Statistics and Probability STA301 - Defination


Statistics:
Statistics is that science which enables to draw conclusions about various phenomena one the basis of real data collected on sample basis. OR Statistics is a science of facts and figures.

INFERENTIAL STATISTICS: That branch of Statistics which enables us to draw conclusions or inferences about various phenomena on the basis of real data collected on sample basis.

Data: A well defined collection of objects is known as data.

Qualitative data: Data that are labels or names used to identify an attribute of each element. Qualitative data may be nonnumeric or numeric.

Qualitative variable: A variable with qualitative data.

Quantitative data: Data that indicate how much or how many of something. Quantitative data are always numeric.

Variable: A measurable quantity which can vary from one individual or object to another is called a variable.

Nominal Scale: The classification or grouping of observations into mutually exclusive qualitative categories is said to constitute a nominal scale e.g. students are classified as male and female.

Ordinal Scale: It includes the characteristic of a nominal scale and in addition has the property of ordering or ranking of measurements e.g. the performance of students can be rated as excellent, good or poor.

Interval Scale: A measurement scale possessing a constant interval size but not true zero point is called an Interval Scale.

Ratio Scale: It is a special kind of an interval scale in which the scale of measurement has a true zero point as its origin.

Biased Errors: An error is said to be biased when the observed value is consistently and constantly higher or lower than the true value.

Unbiased Errors or Random Errors: An error, on the other hand, is said to be unbiased when the deviations, i.e. the excesses and defects, from the true value tend to occur equally often.

Primary Data: The data published or used by an organization which originally collected them are called primary data thus the primary data are the first hand information collected, complied, and published by an organization for a certain purpose.

Secondary Data: The data published or used by an organization other than the one which originally collected them are known as secondary data.

DIRECT PERSONAL INVESTIGATION: In this method, an investigator collects the information personally from the individuals concerned. Since he interviews the informants himself, the information collected is generally considered quite accurate and complete.

INDIRECT INVESTIGATION: Sometimes the direct sources do not exist or the informants hesitate to respond for some reason or other. In such a case, third parties or witnesses having information are interviewed.

Population: The collection of all individuals, items or data under consideration in statistical study is called Population.

Sample: A sample is a group of units selected from a larger group (the population). By studying the sample it is hoped to draw valid conclusions about the larger group. OR Sample is that part of the Population from which information is collected.

SAMPLING FRAME: A sampling frame is a complete list of all the elements in the population. Sampling Error: The sampling error is the difference between the sample statistic and the population parameter.

Non-Sampling Error: Such errors which are not attributable to sampling but arise in the process of data collection even if a complete count is carried out.

Sampling with replacement: Once an element has been included in the sample, it is returned to the population. A previously selected element can be selected again and therefore may appear in the sample more than once.

Sampling without replacement: Once an element has been included in the sample, it is removed from the population and cannot be selected a second time.

Standard error: The standard deviation of a point estimator. AND The degree of scatter of the observed values about the regression line measured by what is called standard deviation of regression or standard error of estimate.

Sampling Unit: The units selected for sampling. A sampling unit may include several elements.

NON-RANDOM SAMPLING: Nonrandom sampling’ implies that kind of sampling in which the population units are drawn into the sample by using one’s personal judgment. This type of sampling is also known as purposive sampling.

Quota Sampling: Quota sampling is a method of sampling widely used in opinion polling and market research. Interviewers are each given a quota of subjects of specified type to attempt to recruit for example, an interviewer might be told to go out and select 20 adult men and 20 adult women, 10 teenage girls and 10 teenage boys so that they could interview them about their television viewing.

RANDOM SAMPLING: The theory of statistical sampling rests on the assumption that the selection of the sample units has been carried out in a random manner. By random sampling we mean sampling that has been done by adopting the lottery method.

Simple random sampling: Finite population: a sample selected such that each possible sample of size n has the same probability of being selected.

Infinite population: a sample selected such that each element comes from the same population and the elements are selected independently.

Pie Chart: Pie Chart consists of a circle which is divided into two or more mars in accordance with the number of distinct classes that we have in our data.

SIMPLE BAR CHART: A simple bar chart consists of horizontal or vertical bars of equal width and lengths proportional to values they represent.

MULTIPLE BAR CHARTS: This kind of a chart consists of a set of grouped bars, the lengths of which are proportionate to the values of our variables, and each of which is shaded or colored differently in order to aid identification.

CLASS BOUNDARIES: The true class limits of a class are known as its class boundaries.

HISTOGRAM: A histogram consists of a set of adjacent rectangles whose bases are marked off by class boundaries along the X-axis, and whose heights are proportional to the frequencies associated with the respective classes.

FREQUENCY POLYGON: A frequency polygon is obtained by plotting the class frequencies against the mid-points of the classes, and connecting the points so obtained by straight line segments.

FREQUENCY CURVE: When the frequency polygon is smoothed, we obtain what may be called the frequency curve.

CUMULATIVE FREQUENCY DISTRIBUTION: As in the case of the frequency distribution of a discrete variable, if we start adding the frequencies of our frequency table column-wise, we obtain the column of cumulative frequencies.

AVERAGES (I.E. MEASURES OF CENTRAL TENDENCY): A single value which intended to represent a distribution or a set of data as a whole is called an average. It is more or less a central value around which the observations tend to cluster so it is called measure of central tendency. Since measure of central tendency indicate the location of the distribution on X axis so it is also called measure of location.

The Arithmetic, Geometric and Harmonic means Are averages that are mathematical in character, and give an indication of the magnitude of the observed values.

The Median Indicates the middle position while the mode provides information about the most frequent value in the distribution or the set of data.

THE MODE: The Mode is defined as that value which occurs most frequently in a set of data i.e. it indicates the most common result.

DOT PLOT: The horizontal axis of a dot plot contains a scale for the quantitative variable that we want to represent. The numerical value of each measurement in the data set is located on the horizontal scale by a dot.

GROUPING ERROR: “Grouping error” refers to the error that is introduced by the assumption that all the values falling in a class are equal to the mid-point of the class interval.

Ogive: A graph of a cumulative distribution.

Dispersion: The variability that exists between data set.

Range: The range is defined as the difference between the maximum and minimum values of a data set.

The coefficient of variation: The coefficient of variation expresses the standard deviation as the percentage of the arithmetic mean.

Quartiles: Quartiles are those three quantities that divide the distribution into four equal parts.

Quartile Deviation: The quartile deviation is defined as half of the difference between the first and third quartiles.

Quantiles: Collectively the quartiles, the deciles, percentiles and other values obtained by equall sub-division of the data are called quantiles.

Percentiles: Percentiles are those ninety nine quantities that divide the distribution into hundred equall parts

Absolute measure of dispersion: An absolute measure of dispersion is one that measures the dispersion in terms of the same units or in the square of units, as the units of the data.

Relative measure of dispersion: Relative measure of dispersion is one that is expressed in the form of a ratio, co-efficient of percentage and is independent of the units of measurement.

COEFFICIENT OF QUARTILE DEVIATION: The Coefficient of Quartile Deviation is a pure number and is used for COMPARING the variation in two or more sets of data.

Mean Deviation: The mean deviation is defined as the arithmetic mean of the deviations measured either from the mean or from the median, all deviations being counted as positive.

Variance: Variance is defined as the square of the standard deviation.

Standard Deviation: Standard Deviation is defined as the positive square root of the mean of the squared deviations of the values from their mean.

Five-number summary: An exploratory data analysis technique that uses the following five numbers to summarize the data set: smallest value, first quartile, median, third quartile, and largest value.

Moments: Moments are the arithmetic means of the powers to which the deviations are raised.

Correlation: Correlation is a measure of the strength or the degree of relationship between two random variables. OR Interdependence of two variables is called correlation. OR Correlation is a technique which measures the strength of association between two variables.

RANDOM EXPERIMENT: An experiment which produces different results even though it is repeated a large number of times under essentially similar conditions is called a Random Experiment.

SAMPLE SPACE: A set consisting of all possible outcomes that can result from a random experiment (real or conceptual), can be defined as the sample space for the experiment and is denoted by the letter S. Each possible outcome is a member of the sample space, and is called a sample point in that space.

Thursday 24 May 2018

Business & Technical Writing (ENG 201) - Quiz of Today











Business & Technical Writing ENG201 - Solved Quiz


The two principal documents that hold relative importance in a meeting are the ----------------- and the-----------------

1.agenda, proposal
2. agenda, minutes of meeting (correct)
3. meeting minutes, proposal
4.proposal, memo

Which of the following shall be avoided while writing a business message.
1.preaching and bragging
2.intimacy
3.pompous language
4. all of the above (correct)

The purpose of letter of information to gather specific information

1. True (correct)
2. False

In -------- format the address, date, salutation, paragraph and closing are all lined up at the left margin

1.standard writinng
2. full blocked (correct)
3. left margin
4. modified blocked















Wednesday 23 May 2018

ENG201 - Solved Sample Quiz of Chapters (13 - 17)

Dear Students:

You may download the sample questions of chapter 13 to chapter 17 for the preparation tomorrow english quiz ENG201.



Download Now

Sunday 20 May 2018

Business & Technical writing (ENG201) - Proposal


PROPOSALS (FORMAL WRITTEN DOCUMENT)
·     Soliciting business and spelling out what will be delivered, the costs, terms, conditions, and so forth.
·     aim is to establish a working relationship
·     It also persuades a potential customer to purchase goods or services,
·     to persuade your employer to fund or to implement a program that you would like to launch.
A proposal contain information about the services and products offered.
·     WHAT you are proposing,
·     HOW you plan to do it,
·     WHEN you plan to do it,
·     HOW MUCH it is going to cost.
GENERAL STRUCTURE
The overall structure of a proposal can be broken down into following parts:
      Front matter
      Body
      Introduction 
      Technical approach 
      Management requirements 
      Work plan
      End matter

      Front Matter
o  Letter of transmittal
o  Title page
o  Summary
o  Table of contents
o  List of figures and tables  
      Body
In the introduction to a proposal, do the following:
o  Identify the motivating need or problem.  
o  Develop the immediate context in which this problem has been highlighted. 
              In external proposals, be sure you are responding to the published need and motivation as identified by the outside agency. 
      End Mater
o  Bibliography
o  Résumés
o  Appendixes