








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A comprehensive set of lab experiments and quizzes designed to introduce students to the fundamental concepts of computer programming using the c programming language. It covers topics such as basic syntax, data types, operators, control flow, functions, arrays, and pointers. Detailed instructions, code examples, and quiz questions with answers, making it a valuable resource for students learning c programming.
Typology: Lecture notes
1 / 48
This page cannot be seen from the preview
Don't miss anything!
DRONACHARYA COLLEGE OF ENGINEERING KHENTAWAS, FARRUKH NAGAR, GURUGRAM (HARYANA) LABORATORY MANUAL B.Tech. Semester- I
Subject code: CSE-101P
Prof. Sakshi Ahuja Prof. Megha Goel Name : Prof. (Dr.) Isha Malhotra
Table of Contents
Vision and Mission of the Department
To lay a strong foundation for the first year students of the engineering discipline in the area of Applied Sciences and Humanities with a view to make them capable of innovating and inventing engineering solutions and also develop students as capable and responsible citizens of our nation.
Program Educational Objectives (PEOs) PEO1: To provide students with a sound knowledge of mathematical, scientific and engineering fundamentals required to solve real world problems. PEO2: To develop research oriented analytical ability among students and to prepare them for making technical contribution to the society. PEO3: To develop in students the ability to apply state-of-the–art tools and techniques for designing software products to meet the needs of Industry with dueconsideration for environment friendly and sustainable development. PEO4: To prepare students with effective communication skills, professional ethics and managerial skills. PEO5: To prepare students with the ability to upgrade their skills and knowledgefor life-long learning.
Program Specific Outcomes (PSOs) PSO1: Analyze, identify and clearly define a problem for solving user needs by selecting, creating and evaluating a computer-based system through an effective project plan. PSO2: Design, implement and evaluate processes, components and/or programs using modern techniques, skills and tools of core Information Technologies to effectively integrate secure IT- based solutions into the user environment. PSO3: Develop impactful IT solutions by using research-based knowledge and research methods in the fields of integration, interface issues, security & assurance and implementation.
University Syllabus
Course Overview Programming for Problem Solving using C is a course designed to introduce students to the fundamental concepts of computer programming using the C programming language. The course focuses on developing problem-solving skills through the application of programming techniques and algorithms. Throughout the course, students will learn how to analyze problems, design solutions, and implement them using the C programming language. They will gain a solid understanding of programming concepts such as variables, data types, control structures, loops, functions, and arrays. Additionally, students will be introduced to essential algorithms and techniques used in solving common programming problems.
List of Experiments mapped with COs S. No. List of experiments Course Outcomes Page No. 1 WAP to display “Hello World”.^ CO1^1 -^3 2 WAP to Print additional, subtraction, multiplication, and division of two numbers
3 WAP to^ swap two numbers using a third variable^ CO2^7 -^9 4 WAP to calculate Simple Interest.^ CO2^10 -^12 5 WAP to find whether a given number is even or odd.
6 WAP to calculate the sum of first n natural numbers
WAP to design a simple calculator using Switch case.
WAP to display Fibonacci Series. CO4 23 - 25 9 WAP to print sum of diagonal elements of a matrix.
10 WAP to swap 2 numbers by creating a function using call by value.
General Safety Precautions Precautions (In case of Injury or Electric Shock)
Guidelines to students for report preparation All students are required to maintain a record of the experiments conducted by them. Guidelines for its preparation are as follows: - 1) All files must contain a title page followed by an index page. The files will not be signed by the faculty without an entry in the index page.
Department of Applied Science & Humanities 2022 - 23 1
WAP to display “Hello World”.
Q1. When and Where C-language is developed? Q2. What is the use of printf() function in C Language?
console. The function call should look like: printf("Hello World");.
Here's an example of how the complete program would look:
#include <stdio.h> #include <conio.h> int main() { printf("Hello World"); return 0; }
Department of Applied Science & Humanities 2022 - 23 3 return a value (if applicable) back to the caller of the function. It allows a function to pass a result or outcome back to the code that called it. Q5. What is the use of printf() statement? Ans: The printf() statement is a function in the C programming language (and other programming languages influenced by C) that is used to print formatted output to the console or standard output. It stands for "print formatted" and is part of the standard input/output library in C. Q6. What is #include? Ans: In C programming, the #include directive is a preprocessor directive that is used to include external files or libraries into your C program. It allows you to use code from other files or libraries in your program by "including" them at the specified location. Q7. What are header files? Ans: A C header file is a text file that contains pieces of code written in the C programming language. Q8. What are the functions included in #include<stdio.h>? Ans: The <stdio.h> header file contains function prototypes and definitions for functions like printf(), scanf(), fprintf(), and fscanf(), which are commonly used for input and output operations. By including this header file in your C program, you make these functions available for use. Q9. What are the functions included in #include<conio.h>? Ans: Following are some of the functions of the header file conio.h -
Department of Applied Science & Humanities 2022 - 23 4
WAP to Print additional, subtraction, multiplication, and division of two numbers.