Professional Documents
Culture Documents
CF Assignment
CF Assignment
(Electrical Engineering)
COMPUTING FUNDAMENTALS
BEE 2-A
By Muhammad Usman
01-133102-064
Department of Engineering
Submitted To:
DR.SHEZAD
1ST PROGRAM TEMPARATURE CONVERTOR:
#include<iostream.h>
#include<conio.h>
void main()
{ clrscr();
int temperature;
cin>>temperature;
getch();
}
2ND PROGRAM STARS:
#include<iostream.h>
#include<conio.h>
void main()
{ clrscr();
int space=4,star=1;
for (int a=0;a<5;a++)
{
for(int c=0;c<space;c++)
cout<<" ";
space--;
for(int g=0;g<star;g++)
cout<<"*";
cout<<"\n";
star=star+2;
space=1,star=7;
for(a=0;a<4;a++)
{
for(int c=0;c<space;c++)
cout<<" ";
space++;
for(int g=0;g<star;g++)
cout<<"*";
cout<<"\n";
star=star-2;}
getch();
}
3RD PROGRAM MERIT :
#include<iostream.h>
#include<conio.h>
void main()
{ clrscr();
double a,b,c;
cin>>a;
cout<<"total marks";
cin>>b;
cin>>c;
getch();
}
4TH PROGRAM ADDING DIGGETS :
#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
int z,x,c,v,b,n,m;
cin>>z;
x=z/1000;
c=z/100;
v=c%10;
b=z/10;
n=b%10;
m=z%10;
getch();