0% found this document useful (0 votes)
8 views1 page

C Lab

The document outlines a series of programming tasks in C and C++ that include computing the sine of a number using Taylor series, implementing string operations, sorting numbers with Bubble sort, finding square roots without library functions, managing student marks with structures, and various arithmetic operations. Each task emphasizes different programming concepts such as recursion, pointers, and parameter passing techniques. The document serves as a guide for developing fundamental programming skills in C and C++.

Uploaded by

athulatk6
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)
8 views1 page

C Lab

The document outlines a series of programming tasks in C and C++ that include computing the sine of a number using Taylor series, implementing string operations, sorting numbers with Bubble sort, finding square roots without library functions, managing student marks with structures, and various arithmetic operations. Each task emphasizes different programming concepts such as recursion, pointers, and parameter passing techniques. The document serves as a guide for developing fundamental programming skills in C and C++.

Uploaded by

athulatk6
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/ 1

Answer and execute

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy