You are on page 1of 1

Ch- Getting Started with C

++

Q1. WAP to display the following output using a single cout statement:
Program =20
Documentation=23
Logic=21
Flow Chart=18
Q2. . Wap to compute :
a) Area of a Rectangle
b) Area of a Square
c) Area of a triangle
d) Area of a triangle(using Hero’s Formula)
e) Volume of a Cuboid
f) Volume of Cube
Q3. WAP to accept two numbers from the user and compute their sum,difference, product,quotient and
remainder.
Q4. WAP a program using \t and \n to print the following pattern *
* *
* * *
* * * *
Q5. WAP using cout statement to print a table of a number (upto 10) given by user in the following format.
Enter the number 5
Table for the no. 5
5*1= 5
5*2=10 and so on……
Q6. WAP to accept a number from the user and compute its-
i) square ii) cube iii)square root iv) cube root
Q7. WAP to accept two numbers from the user a,b and compute ab.
Q8. WAP to accept name, class, rollno and marks of 5 subjects of a student. Compute its total & percentage
and display the result sheet in the following format:-
DAV PUBLIC SCHOOL, PUSHPANJALI ENCLAVE
RESULT SHEET
SESSION 2009-10
NAME :
CLASS :
ROLL NO :
ENGLISH :
MATHS :
PHYSICS :
CHEMISTRY :
C++ :
TOTAL :
PERCENTAGE :

_____________ _____________ ____________
(Parent Sign) (Class Teacher) (Principal)