Académique Documents
Professionnel Documents
Culture Documents
DECLARATION
I hereby declare that assignment is my own work. That I have not copied from
anyone.
Not does any part of this assignment has been done by any other individual
except me.
PART –A
Ques: 1
Write an algorithm that is showing the use of all the arithmetic operators. All the
operators should be implacable to the integer and float data types and should be
display in the sequence of BODMAS method.
ANS:
The algorithm is used for the calculations, data processing and automated
reasoning.
Step 7: stop
Ques: 2
What do you mean by a flow chart? What are its uses? Make a flowchart
for the problem described in question number 1.
ANS:
There are many uses of the flow chart in the daily life.
Ques: 3
Why we called the term “pseudo code” as the described name. Why we
use it in the field of computer science. Write a pseudo code for the traffic
light system.
ANS:
The word pseudo means imitation or false and the word code refers to the
instruction written in a programming language. Pseudo code , therefore is
an imitation of actual computer instructions. These pseudo instructions
are phrases written in English like statements.
Read : A
A=>100
If (A=>60)
Print”light is green”
else if (60<A>85)
else (A=>85)
end if
end
Ques:4
ANS: The various steps involved during the development of any c program
are the following:
Example:
6. Then going to give the game to the “EA” company and will provide
them with a manual and telling them basic necessities
Ques:5
ANS:
#include<stdio.h>
#include<conio.h>
void main()
float r,a,b;
clrscr();
a=3.14*r*r;
b=2*3.14*r;
getch();
1. Circle
2. Triangle
3. Rectangle
4. Parallogram
5. Square
6. Rhombus
7. Hexagon
8. Pentagon
9. Heptagon
10. Trapezium
Ques:6
Write a program that show all the credentials that you see on your UMS
screen.
Ans:
#include<stdio.h>
#include<conio.h>
void main()
int a;
int b;
clrscr();
scanf("%10d",&a);
scanf("%5d",&b);
getch();