C Prog. by Prateek Jain
C Prog. by Prateek Jain
Programming
By: Er. Prateek Jain
([email protected])
1 Program to calculate the sum of series.
2 Program for finding the sum of digits of a five digit number.
3 Prg. to count no. of characters, no. of blanks,no. of words & no. of lines in a multi line string.
4 Program to display all vowels in a ip line of te!t.
". Prog. #o print $arksheet.
% Prg. to convert upper case to lower case or lower case to upper case depending on the name.
& Program to reverse the input string.
' Program to copy its input to its output replacing string of one or more blanks by a single blank.
( program to find whether a given year is leap year or not.
1) Prog to swap two numbers with and without using third variable.
11 Program to calculate fre*uency of vowels in a string.
12 Program. to find & replace any desired character from the input te!t.
13 Program to search for a palindrome.
14 Prg. to find the e!istence & fre*uency of an ip sub+string in an ip main string.
1" Program to perform functions of a calculator.
1% Prg. to sort any no. of numeral ip in ascending or descending order.
1& Program to find the type of the triangle made by ip values of its coordinates of its vertices.
1' Program to pick & display the largest element of an input matri!.
1( Program to find ,eterminant of a $atri!.
Assignment of C
Programming
By: Er. Prateek Jain
([email protected])
2) Program to count the number of words in an input te!t file.
21 Program to construct a pyramid of any input numbers.
22 Program to compare two input strings.
23 Program to find out if entered string contains a space character.
24 Program to print the ascii e*uivalent of all chararters in the entered string.
2" Program to find an input substring in an input main string
2% Program to display the length of the entered string. -like strlen function.
2& Program to compute difference between two dates.
2' Program to $ultiply #wo $atrices.
2( encryption and decryption of files
,escription / usally for encryption and ecryption the software being used will be associate with
password by which an un+authori0ed user with that same software can decrypt-"&.
3) Program for Prime 1umber 2eneration.
31 Program of 3alling 4haracters.
32 program to generate the priramid of numbers
33 #o check whether a string is a palindrome
,escription / #his program checks whether the entered string is a palindrome or not5
34 #his program prints the 3ibonacci series555
,escription / #his program prints the fibonacci series using for loops. #he program is very
simple but very compact & efficient. $eant for entry+level coders555
3" Palindrome 6erification
Assignment of C
Programming
By: Er. Prateek Jain
([email protected])
,escription / Palindrome/ 7hen an orginal string and its reverse contains the same character
pattern, then the string is said to be palindrome. 8.2. 9,9, $9:9;9:9$
3%. Pog. #o generate the <ill for a shop.
,escription/ display all purchased commodities ,their *uantity , price and discount if any.
3&. Prog. #o handle all most common mathematical functions like sum, subtraction,
multiplication, divide, s*uare root, power, reciprocal etc.
,escription/ use =witch 4ase =tatements.
3'. Prog to 4opy one file in to another.
3(. Prog to make a flower recognition system.
4). prog that stores student>s records in a file with each record containing name, age, branch,
year, contact no. , percentage etc. and displays these records on screen.
+++++++++++++++?????????????+++++++++++++++++++++++++++???????????????+++++++++++++++++++++++++++++++++
Note:
1. Prog. Should be written in proper format.
2. Prog. Should fulfill the entire requirement as given in question.
3. All compiled prog. !S" be submitted b# 2$
th
September 2$$% positivel#.
&. 'or an# queries( feel free to contact )r. Pratee* +ain ,$%%2-%%13.2/
Keep Programming
All the Best