Addditional Programs
Addditional Programs
Part A
1. Implement a C program to find the distance between two points.
2. Illustrate conditional branching statements to find the smallest of three numbers.
3. Develop a C program to find all possible roots of a quadratic equation.
4. Develop a C program to print the sum of even numbers from M to N.
5. Develop a C program to sum the series 1+1/2+1/3+ …. 1/N.
6. Develop a C program to compute the GCD of two numbers.
Part B
1. Develop a C program to search a Book ID from an organized bookshelf that has N number of
books using appropriate searching technique.
2. Develop a C program to find the Transpose of a Matrix.
3. Write functions to implement String operations such as concatenation and String length
without using built-in functions.
4. Parameter Passing techniques: Call by Value and Call by reference (Virtual Lab link:
https://cse02-iiith.vlabs.ac.in/exp/pointers/)
5. Structures (Virtual Lab link: https://cse02-iiith.vlabs.ac.in/exp/structures/)
6. Demonstrate how to read data from the keyboard, write it to a file called BMSCE, again read
the same data from the BMSCE file, and display it on the screen/console.
Additional Programs
1. Develop a C program to convert Fahrenheit to Celsius.
2. A company decides to give a bonus to its employees on Diwali. A 5% bonus on salary is given
to the Male workers and a 10% bonus on salary to the female workers. Write a program to
enter the salary and gender of the employee if the salary of the employee is less than Rs.10,000
then the employee gets an extra 2% bonus on salary. Write a C program to calculate the bonus
that has to be given to the employee and display the salary the employee will get.
3. Develop a C Program to display the following by reading the number of rows as input.
1