XI CS - Navy Children School Visakhapatnam

NAVY CHILDREN SCHOOL VISAKHAPATNAM
COMPUTER SCIENCE (083) – LIST OF PRACTICALS – 2016-17
CLASS XI
1
2
Programming in C++
Write a program in C++ to display a message/ thought for the day on to the screen.
Write a program in C++ to perform all arithmetic operations (*, /, %, +, -) between two
numbers.
3
Write a program in C++ to calculates Simple Interest & Amount as per given values of
Principle, Rate & Time.
4
5
6
7
Write a program in C++ to check whether a calendar year is leap year or not.
Write a program in C++ to check whether a given number is EVEN or ODD.
Write a program in C++ to swap/ exchange two numbers.
8
Write a program in C++ to find the biggest of three distinct numbers (Any One)
i) using multiple if’s (along with && operator).
ii) using nested if-else statement(s)
iii) using ternary operator.
Write a menu-driven program in C++ to perform any one of the following task as per user
choice:
Menu:
1. To display ASCII Code of a character.
2. To display the character by entering its ACSII Code.
3. To Exit.
Enter your choice...
Write a menu-driven program in C++ to perform various arithmetic operations (*, /, %, +,-)
between two numbers as per user choice.
Write a program in C++ to print first n-natural numbers.
Write a program in C++ to print first n-perfect squares.
Write a program in C++ to print the first m-multiples of a given number n.
Write a program in C++ to print the sum of first n-even numbers.
Write a program in C++ to find the factorial of a given number.
Write a program in C++ to find the sum of all digits of a given number.
Write a program in C++ to check whether a given number is Armstrong number or not.
[Armstrong number  the sum of the cubes of its digit is equal to the
number itself. e.g.153 = 13 + 53 + 33]
Write a program in C++ to check whether the given number is Prime or not.
Write a program in C++ to print the first n-terms of Fibonacci series.
Write a program in C++ to display the “n”-lines of the following patterns. (Any Two)
*
1
1
1
2
**
22
12
2 3
4 4
***
333
123
4 5 6
6 6 6
****
4444
1234
7 8 9 10
8 8 8 8
*****
55555
12345
11 12 13 14 15 10 10 10 10 10
Write a program in C++ to search a value from a given list (array) of items. [Linear Search]
(22.1) Write a program in C++ to find the sum of all elements of a 1-D array,
(22.2) Write a program in C++ to find the sum of alternate elements (starting from 0th index) of
a 1-D array.
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Write a program in C++ to find the biggest of two distinct numbers (Any One)
i) using multiple if statements.
ii) using nested if-else statement(s)
iii) using ternary operator.
iv) using if-else-if ladder
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Write a program in C++ to count the total number of vowels present in a given string.
(24.1) Write a program in C++ to find the length of a given string (without strlen() function).
(24.2) Write a program in C++ to find the length of a given string (with strlen() function).
Write a program in C++ to count the total number of uppercase alphabets present in a given
string.
Write a program in C++ to create a password in your program (using strcmp() function).
Write a program in C++ to check whether a given string is palindrome or not.
Write a program in C++ to find the sum of all elements of a matrix (2-D array).
(29.1) Write a program in C++ to find the sum of each row of a 2-D matrix.
(29.2) Write a program in C++ to find the sum of each column of a 2-D matrix.
Write a program in C++ to add / subtract two matrices.
Write a program in C++ to find the transpose of a given matrix.
Write a program in C++ to find the sum of diagonal elements of a given matrix.
Write a program in C++ to find the product of two matrices.
(34.1) Write a program in C++ to illustrate the call by value method of calling a function.
(34.2) Write a program in C++ to illustrate the call by reference method of calling a function.
Write a program in C++ to calculate volume of a cuboid using a function that takes l, b and h as
arguments and returns the volume as (l * b * h).
Write a program that stores the details of a students in a structure variable with the following
description:
struct stu
{
int rno;
char name[20];
float marks, percentage;
};
The program should accept the rno, name & marks (out of 500) from the user and should display
the full details along with the percentage.