Skip to content

puffious/pps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAB PRACTICALS

INDEX

SR. NO TITLE
1 Write a program that performs basic arithmetic operations (addition, subtraction, multiplication, and division) and demonstrates the use of different data types.
2 Write a program to calculate simple interest (i = (p * r * n) / 100)
i = Simple interest
p = Principal amount
r = Rate of interest
n = Number of years
3 Write a C program to interchange two numbers. (USING 2 AND 3 VARIABLE)
4 Write a program to compute
i) Fahrenheit from centigrade (f = 1.8 * c + 32).
ii) Centigrade from Fahrenheit (c = (f - 32) / 1.8).
5 Construct a C program which receives number of days as input and converts them into Year, Months, and Days.
6 Write a C program to find that the accepted Number is Negative or Positive or Zero.
7 Write a program to read three numbers from keyboard and find out maximum out of these Three. (nested if else)
8 Write a C program to check whether the entered character is capital, small letter, digit or any special character.
9 Write a program to read marks from keyboard and your program should display equivalent grade according to following table (if else ladder).
10 Write a program that performs as a calculator (addition, multiplication, division, subtraction) using Switch case.
11 Write a C program to check whether a three-digit number is palindrome or not.
12 Write a program to find out the first and last digit of a given number and the sum of the first and last digit.
13 Write a program to generate the first n numbers of the Fibonacci series.
14 Write a program to print the following pattern:
*
**
***
****
***
**
*
15 Write a program to print the following pattern:
5 5 5 5 5 AAAAA
4 4 4 4 BBBB
3 3 3 CCC
2 2 DD
1 E
16 Write a program to print Pascal’s Triangle Pattern.
17 Write a program to print the following pattern: Hollow Square Pattern.
18 Write a C program to find out the Maximum and Minimum numbers from given 10 numbers.
19 Write a C program to find the sum and average of different numbers, which are accepted by the user as many as the user wants.
20 Write a program to count the occurrence of a specific number in an array.
21 Write a program to count the occurrence of a specific number in an array and replace it with another number.
22 Write a program to check whether the given number is prime or not.
23 Print the sum of the series in C Language: 1² + 2² + 3² + ... + n²
24 Enter values of two 3×3 matrices and print the addition matrix.
25 Write a C program to sort an array in ascending order.
26 Write a program to find the length of a given string.
27 Write a program to convert a string into uppercase.
28 Write a C program to copy one string to another without using string handling functions.
29 Write a C program to concatenate two strings.
30 Write a separate program to find the addition of two numbers using a user-defined function (all types).
31 Write a C program to find the factorial of a given number using recursion.
32 Print the sum of the series in C Language using recursion:
1 + 1/2 + 1/3 + 1/4 + ... + 1/n
33 Write a C program using global and static variables.
34 Write a C program to swap two values using pointers.
35 Define a structure called "cricket" that will describe the following information: Player name, Team name, and Batting average. Using "cricket", declare an array player with 50 elements and write a C program to read the information about all the 50 players and print the team-wise list containing names of players with their batting average.
36 Define a structure type "struct person" that would contain a person’s name, date of joining, and salary. Using this structure, read the information of 5 people and print the same on the screen.
37 Implement a program that uses pointers to create and manipulate dynamic arrays, demonstrating the use of malloc, calloc, realloc, and free.
38 A file named "data" contains a series of integer numbers. Write a C program to read all numbers from the file and then write all odd numbers into a file named "odd" and all even numbers into a file named "even". Display all contents of these files on the screen.
39 Write a program to read from and write to files, such as creating a simple text editor that performs file operations.
40 Implement a singly linked list with operations like insertion, deletion, and traversal.
41 Develop programs to simulate stack operations (push, pop, peek) and queue operations (enqueue, dequeue) using arrays and linked lists.
42 Provide students with a program containing intentional errors and inefficiencies. Have them use debugging tools (like gdb) to find and fix the errors and optimize the code for better performance.

About

lab code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published