Cse Programming For Problem Solving Laborator Syllabus
Cse Programming For Problem Solving Laborator Syllabus
Cse Programming For Problem Solving Laborator Syllabus
1|Page
LIST OF EXPERIMENTS
3|Page
b. 2’s complement of a number is obtained by scanning it from right to left and complementing all the
bits after the first appearance of a 1. Thus 2’s complement of 11100 is 00100. Write a C program to
find the2‟s complement of a binary number.
c. Write a C program to convert a Roman numeral to its decimal equivalent. E.g. Roman number CD is
equivalent to 400.
Week-10 PREPROCESSOR DIRECTIVES
a. Define a macro with one parameter to compute the volume of a sphere. Write a C program using this
macro to compute the volume for spheres of radius 5, 10 and 15 meters.
b. Define a macro that receives an array and the number of elements in the array as arguments. Write a
C program for using this macro to print the elements of the array.
c. Write symbolic constants for the binary arithmetic operators +, -, *, and /. Write a C program to
illustrate the use of these symbolic constants.
Week-11 FILES
a. Write a C program to display the contents of a file.
b. Write a C program to copy the contents of one file to another.
c. Write a C program to reverse the first n characters in a file, where n is given by the user.
d. Two files DATA1 and DATA2 contain sorted lists of integers. Write a C program to merge the
contents of two files into a third file DATA i.e., the contents of the first file followed by those of the
second are put in the third file.
e. Write a C program to count the no. of characters present in the file.
Week-12 COMMAND LINE ARGUMENTS
a. Write a C program to read arguments at the command line and display it.
b. Write a C program to read two numbers at the command line and perform arithmetic operations on it.
c. Write a C program to read a file name at the command line and display its contents.
Text Books:
1. Byron Gottfried, “Programming with C”, Schaum's Outlines Series, McGraw Hill Education,
3rd Edition, 2017.
2. E. Balagurusamy, “Programming in ANSI C”, McGraw Hill Education, 6th Edition, 2012.
Reference Books:
1. B. A. Forouzan, R. F. Gillberg, “C Programming and Data Structures”, Cengage Learning, India,
3rd Edition, 2014.
2. W. Kernighan Brian, Dennis M. Ritchie, “The C Programming Language”, PHI Learning,
2nd Edition, 1988.
3. Yashavant Kanetkar, “Exploring C”, BPB Publishers, 2nd Edition, 2003.
4. Schildt Herbert, “C: The Complete Reference”, Tata McGraw Hill Education, 4th Edition, 2014.
5. R. S. Bichkar, “Programming with C”, Universities Press, 2nd Edition, 2012.
6. Dey Pradeep, Manas Ghosh, “Computer Fundamentals and Programming in C”, Oxford University
Press, 2nd Edition, 2006.
7. Stephen G. Kochan, “Programming in C”, Addison-Wesley Professional, 4th Edition, 2014.
Web References:
1. https://www.bfoit.org/itp/Programming.html
2. https://www.khanacademy.org/computing/computer-programming
3. https://www.edx.org/course/programming-basics-iitbombayx-cs101-1x-0
4. https://www.edx.org/course/introduction-computer-science-harvardx-cs50x
E-Text Books:
1. http://www.freebookcentre.net/Language/Free-C-Programming-Books-Download.htm
2. http://www.imada.sdu.dk/~svalle/courses/dm14-2005/mirror/c/
3. http://www.enggnotebook.weebly.com/uploads/2/2/7/1/22718186/ge6151-notes.pdf
4|Page
5|Page