CSP Day 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

Course Contents Prerequisite: Nil

Module# Name Details


1 Introduction Introduction to computer and it’s organization Computer memory Introduction to
programming (High level/low level languages, procedural/structural
programming)Introduction to Flowchart & Algorithm Number system representation
2 Variables,constants, Data Types of variables and constants Console input/output operations (library
types,Operators functions)Operators Type casting
3 Control statements Decision control and branching statements (if, nested if and switch case statements,
etc.)Looping control and their types (while, do-while, for, etc.)break and continue
statements
4 Arrays Introduction to Array Single Dimensional Array Multidimensional array
5 Functions Library & User defined Functions, Formal and Actual parameters Declaring, defining and
calling functions Parameter Passing – call-by-value and call-by-reference, Recursion
6 Storage Classes Introduction to different types of storage classes – (auto, static, extern, register)
7 Character Arrays and Strings String Manipulation
8 Pointers Pointer variable, Pointer Arithmetic, Passing parameters by reference, Pointer to pointer,
Pointer to functions
9 User Defined Data Types Structure: definition, structure variable, creation, initialization and assignment Pointers to
–Structures and Unions structures Union and their housemen and their uses

10 Dynamic Memory Allocation Memory allocation functions (malloc, calloc, realloc, etc.)Memory de-allocation function
(free)
11 File Handling File operations - opening, closing, reading, writing etc.
12 Additional Features Command line argumentativeness operators Macros
Course Outcomes
Course Outcomes Modules

CO1 Able to have fundamental knowledge on basics of computers Module #1


hardware and number systems.
CO2 Able to understand the basic terminology used in computer Module #1, #2
programming .
CO3 Able to write, compile and debug programs in C language. Module #2, Module#3

CO4 Able to design programs involving decision structures, loops and Module#3, #4, #5, #6, #7
functions.
CO5 Able to understand the dynamics of memory by the use of Module#8, #10
pointers.
CO6 Able to use different data structures and create/update basic Module#9, #11
data files.
Text Book
Text books
• Programming in ANSI C (Latest Edition) by E. Balagurusamy

Reference books

The C Programming Language by Brian Kernighan and Dennis Ritchie


(Second Edition)
Sr# Conduction
Topics of Lab Details
- guidelines
1 Lab manual There is an existing manual, will be circulated.
Examples will be referred from Text Book .

2 Required software to conduct the Compiler :


Lab class GCC (Linux) can be used

3 Course online groups:


• WhatsApp groups for students of each sections will be created for
• Whatsapp fast communication
• Google Classroom (you will get invite in your mail id)
• Moodle • Assignments will be submitted in
Google classrooms/ Moodle
Sr#
ConductionTopicsof Lab Details
4 Classroom Hours- 6 hrs a week
Instructions to the students :
3 hrs per lab, 2 days in week • Create Date-wise folder
• Type and execute a program
1) First 1 hr - 1.15 hr : Faculty will teach. • Save each program (along with the screenshot of your
2) Faculty will Assign programs execution)
3) Then next 2 hours, students will write and run
the programs
5 Debugging
• Students will be divided into groups (25-30 in each
Students/teachers can share the screen as group).
required. • One Teaching assistant will be assigned to each group.
• Teaching assistants will help in debugging

6 Uploading in Lab Report • The successfully executed programs (code and


screenshots ) will be uploaded as Lab Report in google
classrooms or moodle
Evaluation Components
S Internal/Sessional Assessment Component Weightage /
No. Marks
1 Internal(60 Marks) Lab Report 20
Viva 10
Quiz
10
Programming Test
10
Participation - Continuous evaluation
10
2 Sessional(40 Marks) Quiz 20
Programming Test 20
Are we ready for the new world of learning?
Enjoy Programming !
Problem Solver

Problem Solver Output


Input
Problem Solver
Problem Solver Output
Input

Length, Area Breadth


Find the area of a rectangle
Area=Length*Breadth
• Rather using a person as Problem Solver, let us use a Computer as
Problem Solver
How to talk to a Computer – Computer
Language

• Computer Language is same as some other language, rather quite


easy, because it has similarities to english language, which is quite
familiar.
• Words Keywords { print printf }
• Sentences Statement or Instructions
• Full stop(.) Semi-Colon(;)
• Grammar Syntax { Hurrah ! printf(“Hello”) }
Famous “Hello World” Program
• Set of aInstructions
Writing Letter is called a Program
Writing a Program
--Dear Friends---------------------------------- -------------------------------------------
……………….main content……
................main content……………….. --------------------------------------------

--Yours Lovingly----------------------------------
#include <stdio.h>
int main(void)
{
-------------------------------------------
printf (“Hello World.\n”);
return 0;
--------------------------------------------
}
Algorithm to find Average of Three Numbers
Notations of Flowchart
Flowchart to find average of three numbers
Lab Assignments

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy