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

C Lab Experiment List

The document contains a comprehensive list of programming exercises organized by week, covering a variety of topics including basic input/output, mathematical operations, string manipulation, array handling, and file operations. Each week presents multiple problem statements designed to enhance programming skills in different areas. Additionally, there are sections for teacher's remarks and signatures for each week.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

C Lab Experiment List

The document contains a comprehensive list of programming exercises organized by week, covering a variety of topics including basic input/output, mathematical operations, string manipulation, array handling, and file operations. Each week presents multiple problem statements designed to enhance programming skills in different areas. Additionally, there are sections for teacher's remarks and signatures for each week.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

List of Programs

Teacher’s Remarks
Week Ques Problem Statements Signature

1 1 Write a Program to display “Hello World”.


2 Write a Program to find the last digit of a number and delete the last digit.
3 Write a Program to find the last digit of a number without using ‘%’ modulus
operator.
4 Write a Program to double the last digit of any user given input number.
5 Write a Program to exchange the last two digits of any user given input
number.
6 Write a Program to read two numbers and find their product after
exchanging last digits.
7 Write a Program to swap two numbers using and without using a third
variable.
2 1 Write Program, which reads a, b and c as sides of a triangle and prints area.
Hint: area = s * (s − a) * (s − b) * (s − c) .
2 Write a Program to check whether a number is prime or composite.
3 Write a Program to check whether a number is even or odd.
4 Write a Program to print the summation of digits of user given input number.
5 Write a Program to accept the marks of a student and display their grade.
[100-90: O, 89-80: E, 79-70: A, 69-60: B, 59-50: C, 49-40: D, Rest: F]
6 Write a C program to input electricity unit consumed and calculate the total
electricity bill according to the given condition:
▪ For first 50 units Rs. 1.25/unit
▪ For next 50 units Rs. 1.50/unit
▪ For next 100 units Rs. 2.00/unit
▪ For next 100 units Rs. 2.50/unit
▪ For unit above 300 Rs. 3.25/unit
An additional surcharge of 20% is added to the overall bill.
7 Write a Program to check whether a given number is Perfect Number or
not. Hint: 28. 1 + 2 + 4 + 7 + 14 = 28.
8 Write a Program to generate all Palindrome numbers within a given range
by user. Hint: 13531.
9 Write a Program to generate all Armstrong numbers within a given range
by user. Hint: 1634. (1^4 + 6^4 + 3^4 + 4^4) = 1634.
10 Write a Program to generate all Krishnamurthy numbers within a given
range by user. Hint: 40585. (4! + 0! + 5! + 8! + 5!) = 40585
11 Write a Program to check whether a given number is Disarium Number or
not. Hint: 135. (1^1 + 3^2 + 5^3) = 135.
12 Write a Program to generate Fibonacci Sequence for user defined N-terms.
Hint: 0, 1, 1, 2, 3, 5, 8…. n terms.
13 Write a Program to perform menu-driven operations of a Volume Calculator
on input values: Volume of a Sphere, Cylinder, Cone, Cuboid. The menu
driven operation must continue during runtime, until stopped by user.
Teacher’s Remarks
Week Ques Problem Statements Signature

1 Print the following pattern up to N Lines:


3 ****
****
****
****
2 Print the following pattern up to N Lines:
*
**
***
****
3 Print the following pattern up to N Lines:
*

**

***

****
4 Print the following pattern up to N Lines:
*******
*****
***
*
5 Write a Program to print given pattern up to N lines:
ABCDE
CDEF
EFG
GH
I
6 Write a Program to print given pattern up to N lines:
A
AC
ACE
ACEG
ACEGI
7 Print the following pattern up to N Lines:
10001
01010
00100
01010
10001
8 Print the following pattern up to N Lines:
1
121
12321
1234321
9 Print the following pattern up to N Lines:
1
11
121
1331
14641
Teacher’s Remarks
Week Ques Problem Statements Signature

4 1 Write a Program to declare, read and display values in 2-D array.


2 Write a Program to copy the elements of one array into another array.
3 Write a Program to count the frequency of each element of an array.
4 Write a Program to find out the largest and smallest element in an array.
5 Write a Program to reverse an array.
6 Write a Program to perform matrix addition and multiplication operations
with a 3x3 user defined matrix and print the final matrix accordingly.
7 Write a Program to split an array from a user defined position.
8 Write a Program to merge two user defined arrays.
9 Write a Program to find the number of even and odd positions elements in a
1D array.
5 1 Write a Program to accept your name and print your name using string.
2 Write a Program to find the length of string.
3 Write a Program to copy one string to another string.
4 Write a Program to find the vowels and count them in the given string.
5 Write a Program to check whether a string is palindrome or not.
Hint: “malayalam”, “radar”.
6 Write a Program to encode a word in Pig Latin.
Hint: “trouble” -> “oubletray”. “paris” -> “arispay”.
7 Write a Program to check if a word is present or not in a user input sentence.
(no using Pointers or other libraries)
6 1 Write a Program to perform Linear Search in a user defined array.
2 Write a Program to perform Bubble Sort in descending order in a user
defined array.
3 Write a Program to add N natural numbers using function.
4 Write a Program to find factorial of a number using recursion function.
5 Write a Program to find GCD (Greatest Common Divisor) and LCM (Least
Common Multiple) of two numbers using user defined recursion function.
6 Write program to find Fibonacci Series of n-terms using recursion function.
7 Write a Program to check whether any input number is Armstrong number
or not using user defined functions. Hint: 153. (1^3 + 5^3 + 3^3) = 153.
8 Write a Program to check whether any input number is Happy number or not
using user defined functions. Hint: 19. (1^2 + 9^2) = 82, (8^2 + 2^2) = 68,
(6^2 + 8^2) = 100, (1^2 + 0^2 + 0^2) = 1.
7 1 Write a Program to create a structure called Student to store his/her name,
roll no., stream and marks.
2 Write a Program to implement an array of structures to store the suitable
data of multiple employees.
8 1 Write a Program to add two numbers using pointers. Also print the address
of integer variables.
2 Write a Program to swap two numbers using pointers.
3 Write a Program to read and display values in a 2-D array using pointers.
4 Write a Program to find the factorial of an input number using function and
pointers.
5 Write a Program to reverse a string using pointers.
Teacher’s
Week Ques Problem Statements Remarks
Signature
8 6 Write a Program to define a function that takes an integer n as input and
dynamically allocates an integer array of size N. The function should return a
pointer to the allocated array. Also, find the largest and smallest elements of
the array.
9 1 Write a Program to read a text file and display the contents.
2 Write a Program to read a text file containing subject and marks of a student
and calculate his average marks.
3 Write a Program to write into a file.
4 Write a Program to copy the content of one file to another.

You might also like