{"id":8408,"date":"2022-12-01T10:03:00","date_gmt":"2022-12-01T10:03:00","guid":{"rendered":"https:\/\/bvcoend.ac.in\/?p=8408"},"modified":"2022-12-01T16:41:59","modified_gmt":"2022-12-01T16:41:59","slug":"programming-in-c-lab","status":"publish","type":"post","link":"https:\/\/bvcoend.ac.in\/index.php\/2022\/12\/01\/programming-in-c-lab\/","title":{"rendered":"Programming in \u2018C\u2019 Lab"},"content":{"rendered":"<p><span style=\"color: #000000;\"><strong> <img loading=\"lazy\" class=\"alignnone size-medium wp-image-8422\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM.jpeg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><img loading=\"lazy\" class=\"size-medium wp-image-8419 alignright\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-1-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-1-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-1-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-1-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2022\/12\/WhatsApp-Image-2022-12-01-at-3.53.43-PM-1.jpeg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Program Objectives: <\/strong>C is a powerful general-purpose programming language. The importance of computer programming in the modern day to day life and automotive industry is paramount and growing. So, the aim of this program is to make students can gain broad perspective about the uses of computer programming in engineering industry and to improve their analytical and logical thinking. Moreover, the use of C programming language is to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Python interpreter, and games etc.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Procedure of Program:<\/strong> To impart the basic knowledge about C programming such as, concepts of arrays, pointers, files, union, structures, conditional branching, iteration and recursion. Students will be able to develop logics which will help them to create programs, applications in C programming language. Through writing program on distinct topics, their logical and analytical approach will enhance. Additionally, by learning the fundamentals of C programming, students will be able to learn other programming languages with ease.<\/span><\/p>\n<p>&nbsp;<\/p>\n<table width=\"652\">\n<tbody>\n<tr>\n<td width=\"66\">&nbsp;<\/p>\n<p><span style=\"color: #000000;\">S. No.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Title of Lab Experiments<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">1.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a program to find divisor or factorial of a given number.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">2.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a program to find sum of a geometric series<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">3.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a recursive program for tower of Hanoi problem<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">4.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a recursive program to print the first m Fibonacci number<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">5.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a menu driven program for matrices to do the following operation depending on whether the operation requires one or two matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">a.\u00a0\u00a0\u00a0\u00a0\u00a0 Addition of two matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">b.\u00a0\u00a0\u00a0\u00a0 Subtraction of two matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">c.\u00a0\u00a0\u00a0\u00a0\u00a0 Finding upper and lower triangular matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">d.\u00a0\u00a0\u00a0\u00a0 Transpose of a matrix<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>e.\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong>Product of two matrices.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">6.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">\u00a0Write a program to copy one file to other, use command line arguments.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">7.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">An array of record contains information of managers and workers of a company. Print all the data of managers and workers in separate files.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">8.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a program to perform the following operators on Strings without using String functions<\/span><\/p>\n<p><span style=\"color: #000000;\">a.\u00a0\u00a0\u00a0\u00a0\u00a0 To find the Length of String.<\/span><\/p>\n<p><span style=\"color: #000000;\">b.\u00a0\u00a0\u00a0\u00a0 To concatenate two strings.<\/span><\/p>\n<p><span style=\"color: #000000;\">c.\u00a0\u00a0\u00a0\u00a0\u00a0 To find Reverse of a string.<\/span><\/p>\n<p><span style=\"color: #000000;\">d.\u00a0\u00a0\u00a0\u00a0 To copy one string to another string.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">9.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a Program to store records of a student in student file. The data must be stored using Binary File. Read the record stored in \u201cStudent.txt\u201d file in Binary code.Edit the record stored in Binary File.Append a record in the Student file.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">10.<\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a programmed to count the no of Lowercase, Uppercase numbers and special Characters presents in the contents of text File.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>CONTENT BEYOND SYLLABUS<\/strong><\/span><\/p>\n<table width=\"654\">\n<tbody>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\"><strong>S.No<\/strong><\/span><\/td>\n<td width=\"588\"><span style=\"color: #000000;\"><strong>Name of Experiment<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">1.<\/span><\/td>\n<td width=\"588\"><span style=\"color: #000000;\">Write a C program to compute the monthly pay of 100 employees using each employee\u2019s name, basic pay. The DA is computed as 52% of the basic pay. Gross-salary (basic pay + DA). Print the employees name and gross salary<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">2<\/span><\/td>\n<td width=\"588\"><span style=\"color: #000000;\">2\u2019s 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\u2019s complement of 11100 is 00100. Write a C program to find the 2\u2019s complement of a binary number.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">3<\/span><\/td>\n<td width=\"588\"><span style=\"color: #000000;\">Write a C program that uses functions and structures to perform the following operations:<\/span><br \/>\n<span style=\"color: #000000;\">i) Reading a complex number<\/span><span style=\"color: #000000;\">ii) Writing a complex number<\/span><span style=\"color: #000000;\">iii) Addition of two complex numbers<\/span><span style=\"color: #000000;\">iv) Multiplication of two complex numbers<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #000000;\"><strong>\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Suggested Books<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Text Books<\/strong><strong>: <\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">[T1] Programming in ANSI C by E. Balguruswamy, Tata Mc-Graw.<\/span><\/p>\n<p><span style=\"color: #000000;\">[T2] Programming With C, Schaum Series.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Reference Books: <\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">[R1] Let Us C, Yashavant Kanetkar, Fifth Edition, 2021.<\/span><\/p>\n<p><span style=\"color: #000000;\">[R2] The \u2018C\u2019 programming language by Kernighan and Ritchie, Prentice Hall<\/span><\/p>\n<p><span style=\"color: #000000;\">[R3] Programming Logic &amp; Design by Tony Gaddis, Pearson, 2nd Ed. 2016.<\/span><\/p>\n<p><span style=\"color: #000000;\">[R4] How to solve it by Computer by R.G. Dromey, Pearson Education<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Program Objectives: C is a powerful general-purpose programming language. The importance of computer programming in the modern day to day life and automotive industry is paramount and growing. So, the aim of this program is to make students can gain broad perspective about the uses of computer programming in engineering industry and to improve&hellip;<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"table_tags":[],"_links":{"self":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/posts\/8408"}],"collection":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/comments?post=8408"}],"version-history":[{"count":5,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/posts\/8408\/revisions"}],"predecessor-version":[{"id":8439,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/posts\/8408\/revisions\/8439"}],"wp:attachment":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/media?parent=8408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/categories?post=8408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/tags?post=8408"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/table_tags?post=8408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}