J.N.T.U.H. UNIVERSITY COLLEGE OF ENGINEERING HYDERABAD (Autonomous)
KUKATPALLY, HYDERABAD – 500 085
Certificate
Certified that this is the bonafide record of the practical work done during
the academic year 2022 - 2023 by
Name H YASHWANTH Roll Number 22011M2114 Class CSE – IDDMP
in the Laboratory of PROGRAMMING FOR PROBLEM SOLVING
of the Department of COMPUTER SCIENCE AND ENGINEERING
Signature of the Staff Member Signature of the Head of the Department
Date of Examination_________________________
Signature of the Examiner/s
Internal Examiner External Examiner
, J.N.T.U.H. UNIVERSITY COLLEGE OF ENGINEERING HYDERABAD
(Autonomous)
Name H YASHWANTH Roll Number 22011M2114 Class CSE – IDDMP (SECTION – I)
Year 2022 – 2023 Laboratory PROGRAMMING FOR PROMLEM SOLVING
List of Experiments
S NO NAME OF EXPERIMENT PAGE NUMBER MARKS REMARKS
1 Write a simple program that prints the results
of all the operators available in C (including pre/
post increment , bitwise and/or/not , etc.).
Read required operand values from standard
input.
2 Write a simple program that converts one given
data type to another using auto conversion and
casting. Take the values from standard input.
3 Write a program for finding the max and min
from the three numbers.
4 Write the program for the simple, compound
interest.
5 Write a program that declares Class awarded
for a given percentage of marks, where mark =
70% = Distinction. Read percentage from
standard input.
6 Write a program that prints a multiplication
table for a given number and the number of
rows in the table.
7 Write a program that shows the binary
equivalent of a given positive number between
0 to 255
8 A building has 10 floors with a floor height of 3
meters each. A ball is dropped from the top of
the building. Find the time taken by the ball to
reach each floor. (Use the formula s =
ut+(1/2)at^2 where u and a are the initial
velocity in m/sec (= 0) and acceleration in
m/sec^2 (= 9.8 m/s^2))
9 Write a C program, which takes two integer
operands and one operator from the user,
performs the operation and then prints the
result.
10 Write a program that finds if a given number is
a prime number
11 Write a C program to find the sum of individual
digits of a positive integer and test given
number is palindrome.
12 A Fibonacci sequence is defined as follows: the
first and second terms in the sequence are 0
and 1. Subsequent terms are found by adding
the preceding two terms in the sequence. Write
, a C program to generate the first n terms of the
sequence
13 Write a C program to generate all the prime
numbers between 1 and n, where n is a value
supplied by the user.
14 Write a C program to find the roots of a
Quadratic equation
15 Write a C program to calculate the following,
where x is a fractional value 1-x/2 +x^2/4-x^3/6
16 Write a C program to read in two numbers, x
and n, and then compute the sum of this
geometric progression:
1+x+x^2+x^3+………….+x^n
17 Write a C program to find the minimum,
maximum and average in an array of integers
18 Write a function to compute mean, variance,
Standard Deviation, sorting of n elements in a
single dimension array.
19 Addition of Two Matrices
20 Multiplication of Two Matrices
21 Transpose of a matrix with memory dynamically
allocated for the new matrix as row and column
counts may not be the same.
22 Write C programs that use both recursive and
non-recursive functions To find the factorial of a
given integer.
23 Write C programs that use both recursive and
non-recursive functions To find the GCD of two
given integers.
24 Write C programs that use both recursive and
non-recursive functions To find x^n
25 Write a program for reading elements using a
pointer into an array and display the values
using the array.
26 Write a program for display values reverse
order from an array using a pointer
27 Write a program through a pointer variable to
sum of n elements from an array
28 Write a C program to display the contents of a
file to standard output device
29 Write a C program which copies one file to
another, replacing all lowercase characters with
their uppercase equivalents.
30 Write a C program to count the number of
times a character occurs in a text file. The file
name and the character are supplied as
command line arguments
31 create a binary file and store 10 integers, where
the file name and 10 values are given in the
command line. (hint: convert the strings using
atoi function) Now the program asks for an
index and a value from the user and the value
at that index should be changed to the new
, value in the file. (hint: use fseek function) The
program should then read all 10 values and
print them back.
32 Write a C program to merge two files into a
third file (i.e., the contents of the first file
followed by those of the second are put in the
third file).
33 Write a C program to convert a Roman numeral
ranging from I to L to its decimal equivalent
34 Write a C program that converts a number
ranging from 1 to 50 to Roman equivalent
35 Write a C program To insert a sub-string into a
given main string from a given position
36 Write a C program To delete n Characters from
a given position in a given string
37 Write a C program to determine if the given
string is a palindrome or not
38 Write a C program that displays the position of
a character ch in the string S or – 1 if S doesn‘t
contain ch
39 Write a C program to count the lines, words and
characters in a given text
40 Write a menu driven C program that allows a
user to enter n numbers and then choose
between finding the smallest, largest, sum, or
average. The menu and all the choices are to be
functions. Use a switch statement to determine
what action to take. Display an error message if
an invalid choice is entered.
41 Write a C program to construct a pyramid of
numbers
42 Write a C program that uses non recursive
function to search for a Key value in a given list
of integers using linear search method.
43 Write a C program that uses non recursive
function to search for a Key value in a given
sorted list of integers using binary search
method
44 Write a C program that implements the Bubble
sort method to sort a given list of integers in
ascending orde
45 Write a C program that sorts the given array of
integers using selection sort in descending
order
46 Write a C program that sorts the given array of
integers using insertion sort in ascending order
47 Write a C program that sorts a given array of
names
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller jobyashwanth. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.