List of Practicals for class XI-2017-18
1. Write a program to print the statement-“Getting Started with C++”.
2. Write a program to read the value of two numbers and find their sum.
3. Write a program to read time in hours, time in minutes, time in seconds and print time in seconds.
4. Write a program to read marks obtained in five subjects and give the percentage of marks.
5. Write a program to read the radius of a circle and print the area and circumference of the circle.
6. Write a program to read a number and print the number of digits and the sum of the digits.
7. Write a program to read the value of a variable of a quadratic equation and find the discriminant and give the root of the quadratic equation.
8. Write a program to input number of week days (1-7) and translate to its equivalent name of the week. (1 to Monday, 2 to Tuesday……7 to Sunday)
9. Write a program to check whether a given number is palindrome or not.
10. Write a program to calculate the area of rectangle, circle, triangle depending upon the user’s choice.
11. Write a program to check whether the number is prime or not.
12. Write a program to display a menu regarding rectangle operation and perform according to user response.
13. Write a program to calculate and print the sum of even integers of the first n natural numbers. Using While loop and through function
14. Write a program to calculate and print the sum of odd integers of the first n natural numbers. Using do while loop and through function
15. Write a program to calculate factorial of an integer. Using for loop and through function.
16. Write a program to calculate commission for the salesman. The commission is calculated according to the following rates:
SALESMAN COMMISSION RATE
|
COMMISSION
|
30001 onwards
|
15%
|
22001-30000
|
10%
|
12001-22000
|
7%
|
5001-12000
|
3%
|
0-5000
|
0 %
|
The program accepts the sales made by the salesman and display the calculated commission.
17. Write a program to input a character and to print whether a given character is an alphabet, digit or any other character. Using function
18. Write a program to compute Cosine series i.e.
Cos(x)= 1 – x2/2! + x4/4! – x6/6! + …xn/n!. Using function
19. Write a program to print Fibonacci series i.e.0 1 1 2 3 5 8………. Using function
20. Write a program to find a given number is Angstrom or not. Using function
21. Write a program using nested loops to produce the following designs: Using functions
A)
*
**
***
****
*****
|
B)
1
12
123
1234
12345
|
C)
1
23
456
78910
|
D)
*
***
*****
*******
*****
***
*
|
22. Write a program to find the sum of series s=1+x+x2+x3………….xn? Using function(non void with argument)
23. Write a program to replace every space in a string with a hyphen.
24. Write a program to find the largest and smallest number out of given list of 10 numbers.Using functions
25. Write a program to find the division of student when percentage and criteria for division is:
PERCENTAGE
|
DIVISION
|
70-100
|
Honour
|
60-69
|
First
|
45-59
|
Second
|
33-44
|
Third
|
Below 33
|
Fail
|
No comments:
Post a Comment