23ES1111 - Problem Solving Using C Programming Lab
23ES1111 - Problem Solving Using C Programming Lab
6. Given a set of numbers like <10, 36, 54, 89, 12, 27>, find sum of weights
based on the following conditions
a) if it is a perfect cube
b) if it is a multiple of 4 and divisible by 6
c) if it is a prime number
d) Sort the numbers based on the weight in the increasing order as shown below <10,its
weight>,<36,its weight><89,its weight>
7. Populate an array with height of persons and find how many persons are above the average
height.
8. Given a string ―a$bcd./fg‖ find its reverse without changing the position of special
characters. (Example input:a@gh%;j and output:j@hg%;a)
9. Convert the given decimal number into binary, octal and hexadecimal numbers using user
defined functions.
10. From a given paragraph perform the following using built-in functions:
a) Find the total number of words.
b) Capitalize the first word of each sentence.
c) Replace a given word with another word.
11. a) Sort the list of numbers using Selection sort and insertion sort
b) Sort the list of numbers using pass by reference.
12. Search an element from an unsorted array using linear search
Search an element in an array using Binary search recursion call.
13. Generate salary slip of employees using structures and pointers.
14. a) Programs using Pointers
b) Pointer demonstration the use of & and *
c) Access Elements of an Array Using Pointer
d) Perform the string operations like Length of the String , Concatenation
of string and compare the string using Pointer
e) Count number of words, digits, vowels using pointers
f) Add two matrices using Multidimensional Arrays with pointers
g) Multiply two matrices using pointers
h) Multiply two numbers using Function Pointers
15. Compute internal marks of students for five different subjects using structures and functions.
TOTAL:60 PERIODS
OUTCOMES:
At the end of the course, the student will able to:
1. Write, test, and debug simple C programs.
2. Implement C programs with conditionals and loops.
3. Develop C programs for simple applications making use arrays and strings.
4. Develop C programs involving functions, recursion, pointers, and structures and union.
5. Design applications using sequential and random access file processing.
6. Perform task as an individual and / or team member to manage the task in time
WEB REFERENCES:
1. https://www.programiz.com/c-programming/examples
2. https://beginnersbook.com/2015/02/simple-c-programs/
3. https://www.programmingsimplified.com/c-program-examples
4. https://www.tutorialgateway.org/c-programming-examples/
5. https://www.javatpoint.com/c-programs
6. https://www.tutorialspoint.com/learn_c_by_examples/simple_programs_in_c.htm
Course
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
Outcomes
CO1 3 3 3 2 - - - - - - - -
CO2 3 2 2 1 3 - - - - - - -
CO3 3 3 3 2 3 - - - - - - -
CO4 3 2 2 1 3 - - - - - - -
CO5 3 3 3 2 3 - - - - - - -
CO6 3 2 2 1 3 - - - - - - -