0% found this document useful (0 votes)
5 views5 pages

Ecs 251 Computer Basic and c Programming Lab

The document outlines a lab assignment record for ECS 251, focusing on Computer Basic and C Programming at TMU, Moradabad for the academic year 2024-2025. It details various lab assignments categorized into four sections, each containing multiple programming tasks in C, such as converting temperatures, calculating sums, and manipulating arrays. The assignments aim to enhance students' programming skills through practical applications of C language concepts.

Uploaded by

anantjain7463
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
5 views5 pages

Ecs 251 Computer Basic and c Programming Lab

The document outlines a lab assignment record for ECS 251, focusing on Computer Basic and C Programming at TMU, Moradabad for the academic year 2024-2025. It details various lab assignments categorized into four sections, each containing multiple programming tasks in C, such as converting temperatures, calculating sums, and manipulating arrays. The assignments aim to enhance students' programming skills through practical applications of C language concepts.

Uploaded by

anantjain7463
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

LAB ASSIGNMENT RECORD

On

ECS 251
COMPUTER BASIC AND C PROGRAMMING LAB

COLLEGE OF COMPUTING SCIENCES AND INFORMATION


TECHNOLOGY
TMU, MORADABAD

2024-2025

Submitted To: Submitted By:

Mr.Wajid Ali Student Name:

CCSIT Enrolment No.:


LAB ASSIGMENT NAME –COMPUTER BASIC AND C PROGRAMMING LAB

LAB ASSIGMENT NO.- 1


S No Program Name Page No Date Sign Remark
1 Write a program that converts Centigrade to
Fahrenheit
2 Write a C program that prints the perimeter of a
rectangle to take its height and width as input
3 Write a program in C that takes minutes as input, and
display the total number of hours and minutes.
4 Write a program in C to calculate the sum of three
numbers with getting input in one line separated by a
comma
5 Write a C program to perform addition,
subtraction,multiplication and division of two numbers
6 Write a C program to find the
third angle of a triangle if two angles are given
7 Write a C program to check whether a given number is
even or odd
8 Write a C program to check whether a given number is
positive or negative
9 Write a C program to find whether a given year is a
leap year or not.
10 Write a C program to read the age of a candidate and
determine whether it is eligible for casting his/her own
vote.
11 Write a C program to read the value of an integer m
and display the value of m is 1 when m is larger than 0,
0 when m is 0 and -1 when m is less than 0.
12 Write a C program to find the largest of three numbers
13 Write a C program to convert decimal number to
binary number.
14 Write a C program to calculate the root of a Quadratic
Equation
15 Write a C program to read marks of three subjects and
calculate the total, percentage and division
16 Write a C program to check whether a triangle is
Equilateral, Isosceles or Scalene
17 Write a C program to check whether a character is an
alphabet, digit or special character.
18 Write a C program to check whether an alphabet is a
vowel or consonant.
19 Write a program in C to read any day number in
integer and display day name in the word.
20 Write a program in C to read any Month Number in
integer and display the number of days for this month
LAB ASSIGMENT NAME –COMPUTER BASIC AND C PROGRAMMING LAB

LAB ASSIGMENT NO.- 2


S No Program Name Page No Date Sign Remark
1 Write a program in C to read 10 numbers from
keyboard and find their sum and average
2 Write a program in C to display the cube of the number
upto given an integer.
3 Write a program in C to display the multiplication table
of a given integer
4 Write a program in C to display the pattern like right
angle triangle
* 1 1 1
** 12 22 23
*** 123 333 456
**** 1234 4444 7 8 9 10
5 Write a C program to calculate the factorial of a given
number.
6 Write a program in C to find the sum of the series [ 1-
X^2/2!+X^4/4!- .........].
7 Write a program in C to display the n terms of
harmonic series and their sum.
1 + 1/2 + 1/3 + 1/4 + 1/5 ... 1/n terms
8 Write a program in C to print the Floyd's Triangle.
1
01
101
0101
10101
9 Write a c program to check whether a given number is
a perfect number or not
10 Write a c program to find the perfect numbers within a
given number of range
11 Write a C program to check whether a given number is
an armstrong number or not
12 Write a C program to determine whether a given
number is prime or not.
13 Write a program in C to display the first n terms of
Fibonacci series.
14 Write a program in C to display the number in reverse
order.
15 Write a program in C to check whether a number is a
palindrome or not.
LAB ASSIGMENT NAME –COMPUTER BASIC AND C PROGRAMMING LAB

LAB ASSIGMENT NO.- 3


S No Program Name Page No Date Sign Remark
1 Write a program in C to find the number and sum of all
integer between 100 and 200 which are divisible by 9
2 Write a C program to find HCF (Highest Common
Factor) of two numbers.
3 Write a C program to find LCM (Highest Common
Factor) of two numbers.
4 Write a C program to print the permutation ( nP ) of the
r

given number.
5 Write a C program to check whether a number is a
Strong Number or not.
6 Write a program in C to find the sum of all elements of
the array.
7 Write a program in C to find the maximum and
minimum element in an array.
8 Write a program in C to separate odd and even
integers in separate arrays.
9 Write a program in C to find product of the digit of a
given number.
10 Write a program in C to find sum of digit of a given
number.
11 Write a C program to print the combination (nCr) of the
given number.
12 Write a program in C for addition of two Matrices of
same size
13 Write a program in C for multiplication of two square
Matrices.
14 Write a program in C to find transpose of a given
matrix
15 Write a program in C to find sum of right diagonals of a
matrix
LAB ASSIGMENT NAME –COMPUTER BASIC AND C PROGRAMMING LAB

LAB ASSIGMENT NO.- 4


S No Program Name Page Date Sign Remark
No
1 Write a program in C to find the square of any number
using the function
2 Write a program in C to swap two numbers using
function.
3 Write a program in C to check a given number is even or
odd using the function.
4 Write a program in C to check whether a number is a
prime number or not using the function
5 Write a program in C to get the largest element of an
array using the function.
6 Write a program in C to check armstrong numbers using
the function
7 Write a program in C to calculate the sum of numbers
from 1 to n using recursion
8 Write a program in C to Print Fibonacci Series using
recursion
9 Write a program in C to count the digits of a given
number using recursion
10 Write a program in C to find the Factorial of a number
using recursion.
11 Write a program in C to add numbers using call by
reference
12 Write a program in C to find the length of a string without
using library function
13 Write a program in C to count the total number of words
in a string
14 Write a program in C to compare two string without
using string library functions
15 Write a program in C to count total number of alphabets,
digits and special characters in a string.
16 Write a program in C to copy one string to another string
17 Write a program in C to store student information such as
roll no, name, and marks. Using structure
18 Write a program in C to store student information such as
roll no, name, and marks. Using union
19 Write a program in C to store student information such as
roll no, name, and marks and display the percentage of
each student using structure
20 Write a program in C to find the maximum and minimum
element in an arrayusing recursion.

You might also like