[go: up one dir, main page]

0% found this document useful (0 votes)
31 views3 pages

CSE-114 CProgrammingList EEE 2024

Here are 3 files

Uploaded by

Omar Yasir
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)
31 views3 pages

CSE-114 CProgrammingList EEE 2024

Here are 3 files

Uploaded by

Omar Yasir
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/ 3

Department of Electrical and Electronic Engineering

University of Chittagong

Index
C Program Lab/Assignment List
Constants, variables & data types; operators & expressions; managing input
and output operators; decision making and branching

Lab Report SL Problem Statements


Weeks No. No.
1 Write C programs to calculate the area and circumference of different
geometric shapes (e.g., circle, square, rectangle, triangle, sphere,
parallelogram etc.)
2 Write a C program to solve an equation: a/(b-c) for the following cases
• Case 1: a=250, b=85, c=25
• Case 2: a=300, b=70, c=70
3 Write a C program in which you declare variable of all data types
supported by C language. Get input from user and print the value of
each variable.
1-2 1 4 Write a C program to check whether a number is even or odd
5 Write a C program to find all roots of a quadratic equation
6 Write a C program to check whether a number is prime or not
7 Write a C program to check whether a year is leap year or not
8 Write a C program that requests the user to enter a character and
displays a message on the screen telling the user whether the character
is an alphabet or digit, or any other special character
9 Write a C program that reads a character from keyboard and then prints
it in reverse case. That is, if the input is upper case, the output will be
3-4 2 lower case and vice versa
10 Write a C program to find the largest/smallest of three numbers taken
from the terminal
11 Write a C program to find the letter grade of a student using
 if..else
 if..else if
 switch..case
12 Write a C program to make a simple calculator by using switch..case
statement.

Decision making and looping


13 Write a C program to display even and odd numbers in given range
14 Write a C program to display prime numbers in given range
15 Write a C program to calculate factorial of a number
16 Write a C program to print Fibonacci series
17- Write C programs to compute the sum of the following series:
21  Sum of all natural numbers from 1 to N
 Harmonic series
 Sum of the square of all natural numbers from 1 to N.
 Sum of Natural Number/Factorial of Number of all natural
5-6 3 numbers from 1 to N.
 Power series
22 Write a C program to evaluate the following expression:
sum=∑𝑛𝑖=1 1/𝑖
23- Write C programs to create a pattern of number
28  Half pyramid
 Inverted half pyramid
 Hollow half pyramid
 Inversed hollow half pyramid
 Full pyramid
 Hollow full pyramid
29 Write a C program to read the age of 100 persons and count the number
of persons in the age group 50 to 60. Use for loop, while loop and do-
while loop.

Arrays, Character Arrays and Strings


30 Write a C program to take N values from the user and store them in an
array and print the elements stored in the array
31 Write a program in C to read N number of values in an array and
display them in reverse order
32 Write a C Program to find the sum/average of N numbers using arrays
33 Write a C program to copy the elements of one array into another array
34 Write a C program to count the frequency of each element of an array
7-8- 35 Write a C program to find the maximum and minimum elements in an
9 4 array
36 Write a C program to sort the elements of the array in
ascending/descending order
37 Write a C program for a 2D array of size NxN and print the matrix
38 Write a C program to generate multiplication table for a given integer
39 Write a C program to find the sum of rows and columns of a matrix
40 Write a C Program to print Array of strings
41 Write a C program to draw the reliability graph of an electronic
component
42 Write a C program to print the Marks sheet of a student
 Input: StudenID, Course Code and Marks obtained in a course
 Output: Marks sheet

User-defined Function and Structures


43 Write a function in C prime that returns 1 if its argument is a prime
number and return zero otherwise
10-11 44 Write a function in C that will scan a character string passed as an
argument and convert all lowercase characters into their uppercase
5 equivalents
45 Write a C program using a function to find the largest value in the array
of elements
46 Write a C program in to swap two numbers using a function.
47 Write a C program to store information of students and display it using
structure
Numerical problem solving using C programming language
48 Write a C program for fitting a straight line/parabola through a set of
12-13 6 points
49 Write C programs for interpolation methods
50 Write C programs for the solution of algebraic and transcendental
equations
14 Lab test, quiz, viva and final report submission

You might also like