C Lab
C Lab
In c
1. Develop a Program to compute Sin(x) using Taylor series approximation. Compare
your result with the built-in Library function. Print both the results with appropriate
messages.
2. Write functions to implement string operations such as compare, concatenate, string
length. Convince the parameter passing techniques.
3. Develop a program to sort the given set of N numbers using Bubble sort.
4. Develop a program to find the square root of a given number N and execute foe all
possible inputs with appropriate messages.
Note: Do not use library function sqrt (n).
5. Implement structures to read, write and compute average marks and the students
scoring above and below the average marks for a class of N students.
6. Develop a program using pointers to compute the sum, mean and standard
deviation of all elements stored in an array of n real numbers 15.
Implement recursive functions for Binary to Decimal Conversion
7. C++ Program to calculate sum and average of three numbers
8. C++ Program to raise any number x to a positive power n
9. C++ Program to convert given inches into equivalent yard, feet and inches
10. C++ Program to calculate square root of any number
11. C++ Program to Convert given no. of days into years, weeks and days
12. C++ program to calculate sum of two numbers
13. C++ program to swap two numbers without using temp variable