Computer Programming Lab

1. Course Objectives:

To provide skills for designing flowcharts and writing algorithms. To introduce students to the field of programming using the C language. To provide skills for writing C programs. To enable the students to debug programs. The latest platforms compilers are provided to the students to run their programs.

2. Course Outcomes: Upon successful completion of the course/Lab the students will be able to

CO1: Demonstrate an understanding of computer programming language concepts.

CO2: Identify and abstract the programming task involved for a given problem.

CO3: Design and develop modular programming skills.

CO4: Trace and debug a program.

3. Main Equipment’s/Software’s Available

3.1 50 Dell desktops of core i7 Intel 3.60 connected to 24x7 1GBPS high-speed Internet connections. The Dell's Intel Core i7 Desktops are optimized for content streaming, with features like high-quality displays, advanced graphics, and fast connectivity.

3.2 Sony VPL-EW246 Video Projector: The VPL-EW246 is economically designed with a compact body filled with energy and cost saving features. In addition, a variety of network functions, rich inputs and outputs are available. This model is an excellent choice for education and business.It is a compact data projector that delivers exceptional image quality with eco-conscious features. In addition, a variety of network functions such as web control, network presentation and wireless presentation from mobile device can be performed.

3.3 Dev-C++ is a full-featured C and C++ Integrated Development Environment (IDE) for Windows platforms. Millions of developers, students and researchers use Dev-C++ since the first version was released in 1998. It has been featured in dozens of C++ and scientific books and remains one of the favorite learning tool among universities & schools worldwide.

3.4 Turbo: Turbo coding is an advanced error correction technique used in digital communication systems to improve the reliability of data transmission over noisy channels.The decoding process typically employs an iterative algorithm, allowing the decoder to refine its estimates of the transmitted data by exchanging information between the decoders of the constituent codes. Turbo codes are known for their performance approaching the Shannon limit, making them highly effective in applications such as mobile communications, satellite transmissions, and data storage.

 

3.5 Visual Studio: Visual Studio Code (VS Code) is a free, open-source code editor developed by Microsoft, designed for building and debugging applications. It supports numerous programming languages and offers features like syntax highlighting, IntelliSense (smart code suggestions), integrated Git version control, and a powerful debugging environment. VS Code is highly customizable, allowing users to install extensions and themes to enhance functionality and tailor the editor to their workflow. 

 

3.6 Sublime: Sublime Text is a sophisticated text editor designed for code, markup, and prose. Known for its speed and performance, it offers a clean and distraction-free interface, making it popular among developers and writers. Key features include multi-line editing, powerful search and replace functionality, syntax highlighting for various programming languages, and a wide range of customizable options through user settings and plugins.

 

4. Suggestive List of Experiments

  1. Write a C program for printing "Hello, World!" on the terminal.
  2. Write a C program to print your roll number, name, telephone number, and percentage (up to 2 decimals at least).
  3. Write a C program to sum two numbers entered by the user.
  4. Write a C program to Multiply Two Floating-Point Numbers entered by the user.
  5. Write a C program to find the quotient and remainder when an       integer is divided by another integer.
  6. Write a C program for mathematical operations (i.e. Addition, Multiplication, Subtraction, Division, and Modulus Operator) on two numbers entered by the user.
  7. Write a C program to find & print the Size of char, int, float, and double.
  8. Write a C Program to Swap Two Numbers using the third number and without using the third number.
  9. Write a C Program to Check Whether a Number entered by the user is Even or Odd.
  10. Write a C Program to Check Whether a Character entered by the user is a Vowel or Consonant.
  11. Write a C Program to Find the Largest Namber Among Three Numbers entered by the user.
  12. Write a C Program to Calculate the Sum of Natural Numbers.
  1. Write a C Program to Find Factorial of a Number using looping and recursion.
  2. Write a C Program to display the first 25 prime numbers and their sum.
  3. Write a C Program to Display Fibonacci Sequence.
  4. Write a C Program to Find LCM & GCD of two Numbers.
  5. Write a C Program to Check Whether a String is Palindrome or Not.
  6. Write a C program for mathematical operations by creating a function for Addition, Multiplication. Subtraction, Division, and Modulus operator and passing two numbers using value and reference.
  7. Write a C Program to store ten numbers in an Array and display their index values and sum.
  8. Write a C Program to Find Largest Element in a ten items Array.
  9. Write a C Program to Find the Frequency of Characters in a String.
  10. Write a C Program to Find the Length of a String.
  11. Write a C Program to Store Students' Information (name, five subject marks, telephone no., Percentage) Using Structure.
  12. Write a C Program to Write a Sentence to a File.
  13. Write a C Program to Read the First Line From a File.
  14. Write a C Program to Print Pyramids and other Patterns.

 

5. Suggested Books:

6. References

  1. H. M. Deitel and P. J, Deitel, C: How to program, 7th Edition, Pearson Education.
  2. Brain W. Kernighan and Dennis Ritchie, CProgramming Language, Prentice Hall of India.  
  3. Byron Gottfried, Programming with C, Tata McGraw Hill.  
  4. Herbert Schildt, The complete Reference C, McGraw Hill.
  5. Yashwant Kanetkar, Let us C, BPB Publication.
  6. B.A. Forouzan and R.F. Gilberg, AStructured Programming Approach in C, Cengage Learning.
  1. https://www.shiksha.com/online-courses/what-is-c-programming-st619-tg1436
  2. https://www.geeksforgeeks.org/c-programming-language/
  3. https://www.simplilearn.com/tutorials/c-tutorial/use-of-c-language
  4. https://www.programiz.com/c-programming
  5. https://www.javatpoint.com/c-programming-language-tutorial
  6. https://www.simplilearn.com/c-programming-article
  7. https://www.geeksforgeeks.org/c-language-introduction/

FACULTY COORDINATOR: Dr. L. Shyam Sundar Singh

LAB INCHARGE: Ankita Sharma

LAB CO-INCHARGE: Manoj Bairwa

PLACE: Room#10, Ground Floor, CSED@NIELIT

English