0% found this document useful (0 votes)
75 views4 pages

Lab10: For Loop Computer Programme: Lab Points Scored Lab Performance

The document describes two C++ lab experiments involving for loops - one using a multi-dimensional array to output multiplied and divided values, and another that takes input for a variable a and uses it in a for loop calculation of r=a*c+24 printed for values of a from 3 to 9. The labs provide code examples and require students to complete tasks for a scored lab performance and submission.

Uploaded by

Sheraz Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views4 pages

Lab10: For Loop Computer Programme: Lab Points Scored Lab Performance

The document describes two C++ lab experiments involving for loops - one using a multi-dimensional array to output multiplied and divided values, and another that takes input for a variable a and uses it in a for loop calculation of r=a*c+24 printed for values of a from 3 to 9. The labs provide code examples and require students to complete tasks for a scored lab performance and submission.

Uploaded by

Sheraz Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

NFC Institute of Engineering & Technology, Multan Lab manual

Department of Chemical Engineering C++

Lab10: For Loop Computer Programme

Name: Abdur Rahim


Roll No. : 2k13-ChE-47 Dated: 16,11,2015

LAB POINTS SCORED

Lab Performance: (10) 0 1 2 3 4 5


Lab Participation

Lab Activity Completion

Lab Submission: (20) 0 1 2 3 4 5


In-Time Submission

Accuracy to expected Results

Graphs / Figures / Tables Completion

Simulation / Hardware Implementation

TOTAL SCORE:

Instructor’s initials: ______________________


NFC Institute of Engineering & Technology, Multan Lab manual
Department of Chemical Engineering C++

Lab13: Multi-dimensional array computer Programme


Requirements:
 Turbo C + + Software
 Computer
Standard Operating Procedure:
Procedure:
The fig is shown below:

Output Figure:

Code:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int qrs[5] [3]={{63,98,38},
{33,32,55},
{22,11,48},
{60,71,76},
{46,67,56}};
int m,n;
for(m=0; m<=4; m++){
for(n=0; n<=2; n++)
cout<<qrs[m][n]*25/17<<"\t";
cout<<endl;}
getch();}
NFC Institute of Engineering & Technology, Multan Lab manual
Department of Chemical Engineering C++

Lab10: To write for loop computer Programme


Purpose:
Standard Operating Procedure:
Procedure:
The fig is shown below:

Output Figure:

Programme:

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,r,c;
cout<<"enter value of a";
cin>>a;
for(a=3; a<=9; a++){
NFC Institute of Engineering & Technology, Multan Lab manual
Department of Chemical Engineering C++

r=a*c+24;
cout<<a<<"*"<<c<<"+"<<2<<"="<<r<<endl;}
getch();
}

You might also like