0% found this document useful (0 votes)
13 views

Document From ...

Uploaded by

shubhamyk6369
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Document From ...

Uploaded by

shubhamyk6369
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PROGRAM OBJECTIVE

1 Write a program to compute the sum of two variables.


2 Write a program to compute the average of three numbers.
3 Write a program to compute the area of a triangle using Heron's formula.
4 Write a program to compute the percentage of 5 subject marks.
5 Write a program to check whether the given number is even or odd.
6 Write a program to display the largest number among three given numbers.
Write a program to display the size of different data type variables(int, float, char, float,
7
double).
Write a program to implement all arithmetic operations( addition, subtraction, multiplication,
8
division, remainder).
9 Write a program to implement all logical and bitwise operations.
Write a program to find the Nth term of the following series :
10
1,3,9,29,...........
Write a program to find the sum of the following series upto N terms. :
11
2+4+6+8+.........
12 Write a program to check whether the given year is a leap year or not.
Write a program to display the grades according to the following input cgpa:
● If cgpa>9 then grade=A
● If 8<cgpa<9 then grade=B
13
● If 7<cgpa<8 then grade=C
● If 6<cgpa<7 then grade=D
● If cgpa<6 then grade=F
14 Write a program to find the greatest number among the given four integers.
15 Write a program to find the smallest number among the given four integers.
16 Write a program to swap two numbers with the help of a third variable.
17 Write a program to swap two numbers without using a third variable.
Write a program to find the value y (equation) according the following values of n:
2
● If n=1 then y=a𝑥 +b
18 ● If n=2 then y=a𝑥
2

● If n=3 then y=5a+6b


● Otherwise y=1
Write a program to print the table of given number according the following format(using for
loop):
For example:
If n=8
Output :
19
8*1=8
8 * 2 = 16
.
.
8 * 10= 80
Write a program to print the table of given number according the following format(using
while loop):
For example:
If n=8
Output :
20 8*1=8
8 * 2 = 16
.
.
.
8 * 10= 80
21 Write a program to print the sum of all numbers upto the given number.
22 Write a program to find the factorial of a given number.
23 Write a program to print the sum of odd and even numbers from 1 to N.
Write a program to print the sum of all digits of a given number.
24
( if n = 1243 then output =10)
25 Write a program to check whether the number is prime or not.
26 Write a program to check whether the number is Armstrong or not.
27 Write a program to read 7 integers & display them using an array.
Write a program to print the following series upto n terms:
28
30 29 27 24 20 15 ……….
Write a program to print the following series upto n terms:
29
0 1 1 2 3 5 8 13 21 ……….
30 Write a program to find the sum & average of an integer array.
31 Write a program to read & display 10 character values using a char array.
Write a program to search an element in the given integer array(Linear Search).
32
(if element found displays its position else display -1).
Write a program to print the given pattern:

If n=5
#
33
##
###
####
#####
Write a program to print the given pattern:

If n=5

34 1
22
333
4444
55555
35 WAP to print the reverse of the given integer number.
36 WAP to check whether the given number is palindrome or not.
WAP to generate the sum of the following series:
37
1! + 2! +3! +4! + ………….n!
WAP to display the given integer as follow:
If n=1256
Output:
38 6
5
2
1
WAP to count the number of vowels & consonants in the given character array.
Input : HelloClass
39 Output :
No. of Vowels = 3
No. of consonants = 7
40 WAP to find the maximum & minimum elements in the given array.
41 WAP to implement Binary Search Algorithm.
42 WAP to merge(append) the two given arrays.
WAP to find the product array of two given arrays as following:
A={1,2,3}
43 B={4,2}

Output: P={6,12,18}
44 WAP to implement Selection Sorting Algorithm.
45 WAP to implement Bubble Sorting Algorithm.
46 WAP to implement Insertion Sorting Algorithm.
47 Write a user defined function to swap two numbers using the Call By Value method.
48 Write a user defined function to swap two numbers using the Call By Reference method.
49 Write a Recursive Function program to compute the factorial of a given number.
Write a program to input and display the following details of 7 cars using Array of Structure:
50 Car Name
Car Manufacturing Year
Car Price
Write a program to write your introduction(3-5 lines) in the “intro.txt” file and count the
51
numbers of words in that file. Also display the count of words on the console screen.

You might also like