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

Course Title : Computer Programming and utilization

Course code :

State Program Facilitating Unit (SPFU), TEQIP - II


Institutions
Course Title : Computer Programming and Utilization
Course Code :
B.E. Semester: I
Degree Programs in which
this course is offered
All

1.

Co-requisite Course
Type of Course
Course Difficulty level
Course offered in
Academic year

None
Foundation
2013 2014

SS

Total
Credits
(L+T+P)
C

Theory Marks
ESE

Examination Scheme
Practical Marks

Total
Marks

ESE
PA
Pr/Viva
200
2
2
70
30
50
50
L - Lecture; T - Tutorial/Teacher Guided Student Activity; P - Practical; SS Self Study;
C - Credit; ESE - End Semester Examination; PA - Progressive Assessment

1
0
Legends:

2.

10+2 level certificate as per


AICTE guidelines

TEACHING AND EXAMINATION SCHEME

Teaching Scheme
(In Hours)
L

Pre-requisite Course

PA

COURSE OVERVIEW
The course is all about

Logic building for engineering problem


Algorithm development and algorithm writing for a given problem
Flow development and flow diagram building for a given problem
Introducing structure and working of programming languages for computers
Address and memory allocation for data and instruction in programming
languages for computers

Prerequisite :
ICT-Bridge Course
3.

COURSE OBJECTIVES

To enhance students logical thinking and problem solving ability.


To enable students to write steps involved in solving a given problem.
To enable students to prepare work flow diagram for a given problem.
To enable students to write a program by understanding structures of the
programming languages and data structure.

Course Title : Computer Programming and utilization

4.

Course code :

COURSE OUTCOMES
The students will be able to

4.

Analyze simple engineering problems and logically build the functionality of the
problem
Formulate an algorithm for the given problem
Prepare a flowchart/Pseudo code of the problem
Write a program with proper data structure in C language

COURSE DETAILS

Unit - 1

Learning
Outcomes

Unit-2

Learning
Outcomes

Unit-3

Learning
Outcomes

Introduction to computer and programming


Introduction
Basic block diagram and functions of various components of computer,
Concept of Hardware and Software,
Types of software, Compiler and Interpreter,
Concepts of Machine level, Assembly level and High level programming,
Flow charts and Algorithms.
Students will be able to
Identify the various hardware components used in the computer.
Distinguish between application and system software
Divide the given problem logically into functions
Write the steps for solving a given problem
Prepare the flow graph for the given problem
Fundamentals of C
Features of C language, structure of C Program, comments, header files,data
types, constants and variables, operators, expressions, evaluation of
expressions, type conversion, precedence and associativity, I/O functions
Students will be able to
Write a C program at the beginning level
Use different primitive data types available in C language
Use arithmetic operators in C
Write programs that takes input from input devices and writes output
to output devices.
Control structure in C
Simple statements,
Decision making statements,
Looping statements,
Nesting of control structures,
break and continue , goto statement
Students will be able to
Use statements to perform tasks in C language
Use structures that can do a same task repetitively.
Use initial and terminating conditions for a program.

Course Title : Computer Programming and utilization

Unit-4

Learning
Outcomes

5.

Course code :

Array & String


Concepts of array ,
one and two dimensional arrays,
declaration and initialization of arrays ,
string , string storage , Built-in-string functions
Students will be able to
Use data structure that is user defined and stores more than one value
Use functions that manipulate group of characters.

COURSE TEACHING AND LEARNING ACTIVITIES


Lectures Interactive Laboratory Case
Field
(hrs)
Tutorial
(hrs)
Discussion Trip
In/out of
(hrs)
(hrs)
(hrs)
Class
In/Out
1
2

Projects
(hrs)

Web
Oth
Based
ers
Learning (hrs)
(hrs)

(as part of
Laboratory)

Note: The activities given above are suggestive list. Course designer/faculty can use other
activities is required and specify before commencing of course.
6.
SUGGESTED LESSION PLAN (THEORY)
Uni
t

Unit Title

Introduction to computer and programming


Introduction
Basic block diagram and functions of various components of computer,
Concept of Hardware and Software,
Types of software, Compiler and Interpreter,
Concepts of Machine level, Assembly level and High level
programming, Flow charts and Algorithms.

II

Fundamentals of C
Features of C language, structure of C Program, comments,
header files,data types,
constants and variables, operators,
expressions, evaluation of expressions, type conversion,
precedence and associativity, I/O functions
Control structure in c
Simple statements,
Decision making statements,
Looping statements,
Nesting of control structures,
break and continue , goto statement
Array & String
Concepts of array ,
one and two dimensional arrays,

III

IV

Teaching
Hours
03

03

03

03

Course Title : Computer Programming and utilization

Uni
t

Course code :

Unit Title
Teaching
Hours

declaration and initialization of arrays ,


string , string storage , Built-in-string functions
Total
7.

12

ASSESSMENT SCHEME (Including Rationale)

A break up of Internal assessment and Final examination should be provided


It should be clearly stated that what is required to pass the course and also the
requirement for progression

A breakdown of each of the component with their weight and it will be due should be
clearly stated
Internal Break up
- It is decided by the Faculty teaching the course at the institute based on the
objectives and contents.
Final Examination Plan
Unit

Unit Title

R
I

Introduction to computer and


programming
Fundamentals of C
Control structure in c
Array & String

II
III
IV

Total

Distribution of Theory Marks


Cognitive level
(Blooms taxonomy)
U Ap An E
Sy
Total
Marks

5
5
5

5
10
5

5
10
5

20

25

25

00

00

00

00

Legends: R = Remember; U = Understand; Ap = Apply; An = Analysis; E = Evaluation, Sy = Synthesis, as per


(Blooms revised taxonomy)

8.

SUGGESTED LIST OF EXERCISES/PRACTICAL

The practical/exercises should be properly designed and implemented with an attempt to develop
different types of skills so that students are able to acquire the competency. Following is the list
of experiments for guidance.
S. No.

Unit
No.

Practical/Exercise

Write an algorithm for finding cube of the number and draw


flowchart for the same.
Write an algorithm for calculating interest on principal
amount and draw flowchart for the same.
Write an algorithm for finding the odd digits and even digits
in a given number (for example in 12 1 is an odd number and
2 is an even number) and draw flowchart for the same.
4

Apprx.
Hrs.
Required
4 hrs

Course Title : Computer Programming and utilization

Course code :

S. No.

Unit
No.

Practical/Exercise

Write an algorithm for finding articles(a,an and the) in a


given sentence and draw flowchart for the same.

II

II

III

III

III

10

IV

1. Write a program to print hello world on


screen.
2. Write a program to print your name, address and
enrollment number on screen
3. Write a program to print list of all subject in 2nd
Semester for GTU.
1. Write a program to add and multiply two
numbers.
2. Write a program to subtract and divide two
numbers.
3. Write a program to find area of
triangle(a=h*b*.5)
a = area
h = height
b = base
4. Write a program to calculate simple
interest(i=(p*r*n)/100)
i= interest
p =Principal amount
r =Rate of interest
n = Number of years
1. Write a program to evaluate the series
1^2+2^2+3^2++n^2
2. Write a C program to find
1+1/2+1/3+1/4+....+1/n.
3. Write a C program to find
1+1/2!+1/3!+1/4!+.....+1/n!.
4. Write a program to evaluate the series sum=1x+x^2/2!-x^3/3!+x^4/4!......-x^9/9!
Write a program to print following pattern.
*
**
***
****
Write a program to print following pattern
55555
4444
333
22
1
1. Write a program to find maximum element from
1-D array
2. Write a program to sort given array in ascending
order
3. Write a program to add two matrices
5

Apprx.
Hrs.
Required

4 hrs

4 hrs

4 hours

4 hrs

Course Title : Computer Programming and utilization

S. No.

Unit
No.

11

IV

Course code :

Practical/Exercise

1.
2.
3.
4.
5.

Write a program to find character.


Write a program to replace character.
Write a program to delete character
Write a program to reverse string
Write a program to convert string into upper
case
Total

Apprx.
Hrs.
Required
4 hrs

24 hrs

Suggested additional programs :


1. Write a program to read one number and display it
2. Write a c program to calculate 10% bonus of salary
3. Write a c program to interchange two nos.
4. Write a c program to find out area of circle and volume of cylinder.
5. Write a c program to enter a distance in to K.M and convert it in to meter, feet, inches and
centimeter
6. Write a program to compute Fahrenheit from centigrade (f=1.8*c +32)
7. Write a c program to find out distance traveled by this eq d = ut + at^2
8. Write a C program to find that the accepted no is Negative, or Positive or Zero.
9. Write a program to read marks of a student from keyboard whether the student is pass or
fail( using if else)
10. Write a program to read three numbers from keyboard and find out the maximum among
them. (nested if else)
11. Write a c program to display days into months, weeks and all remainder days.
12. Write a c program to find out the largest value from three given numbers using
conditional operator.
13. Write a c program to check if input no is positive then add 10, otherwise decrease by 5.
14. Check whether entered char is capital, small, digit or any special character.
15. Write a program to read marks from keyboard and to display equivalent grade according
to following table(if else ladder)
Marks
grade
100-80
distinction
60-79
First Class
40-59
Second Class
0-39
Fail
16. Write a program to check whether the given number is even, odd or zero
17. Write a c program to prepare pay slip using following data.
Da = 10% of basic, Hra = 7.50% of basic, Ma = 300,
Pf = 12.50% of basic, Gross = basic + Da + Hra + Ma, Nt = Gross Pf.
18. Write a c program to compute an electric city bill.
Unit
Rate/unit
1 100
3
101-200
3.50
201-400
4.25
401 Up
5

Course Title : Computer Programming and utilization

Course code :

19. Write a program to find out the solution of quadratic equation (delta = b^2 4ac) (if delta
=0 then alpha=beta =-b/2a else if delta is < 0 then imaginary roots else alpha = (b+sqrt(delta))/2a and beta = (-bsqrt(delta))/2a)
20. Make a simple calculator (ladder if)
21. Write a c program to read no 1 to 7 and print relatively day Sunday to Saturday.
22. Write a c program to find out the max. and min. no from given 10 no
23. Write a program to find out given year is a leap year or not
24. Write a c program to find out the max. and min. no from given 10 no.
25. Write a program to read any five numbers and print the average value
26. Write a c program to input an integer no check the last digit of no is even or odd.
27. Write a program to find out all the numbers divisible by 5 and 7 between 1 to 100.
28. Write a program to find out sum of digits if given number.
29. Write a C program to find the sum of digits of given number.
30. Write a C program to find factorial of a given number.
31. Write a program to reverse a number
32. Write a program to generate first 25 Fibonacci numbers.
33. Write a C program to display first 5 Armstrong nos
34. Write a program to find a greatest common factor among entered 2 number
35. Write a program to find out sum of first and last digit of a given number
36. Write a C program to find the sum and average of different nos which are accepted by
user as many as user wants
37. Write a program to calculate average and total of 5 students for 3 subjects(use 2 for
loops)
38. Read five persons height and weight and count the number of person having height
greater than 170 and weight less than 50,
39. Write a program to check whether the given number is prime or not.
40. Write a program to check whether the given number is binary or not
41. Write a program to check whether the given number is octal or not
42. Write a c program to print a no in to hexadecimal and octal no.
43. Write a program to do sum of n numbers
44. Write a program to print following patterns :
i
*
ii
*
iii
*****
**
* *
****
***
* * *
***
****
* * * *
**
*****
* * * * *
*
45. Write a program to print following patterns :
i

1
ii
12345
iii
12
1234
123
123
1234
12
12345
1
46. Write a program to print following patterns:
i
AAAAA
ii
ABCDE
BBBB
ABCD
CCC
ABC
DD
AB
E
A

55555
4444
333
22
1

iv

1
22
333
4444
55555

Course Title : Computer Programming and utilization

Course code :

47. Write a program to print Floyds triangle


48. Write a c program to enter the roll no and marks of 20 students using array
49. Find the median from given nos.
50. Write a program to find out which number is even or odd from list of 10 numbers using
array
51. Write a program to print sum of any 10 numbers using 1-D array
52. Write a c program to input N no and find out the sum, average, max, min, total even no
and total odd no
53. Write a program to find a word in a given string
54. Write a program to string compare
55. Accept two different array with equal no of elements and match corresponding elements
of array display proper message for matched or unmatched elements
56. Sort the accepted string in ascending order.
9.

SUGGESTED LIST OF STUDENT ACTIVITIES

Project work
Suggested projects :
1. Develop a calculator.
2. To generate the marksheet of the students using array.
3. To generate a game of spelling using arrays and strings.
4. To generate inventory of the store using arrays.
5. To develop an application that converts any measuring unit to other measuring unit.

8. SUGGESTED LEARNING RESOURCES


A. List of Books:
S.
Title of Books
No.
1
Programming In ANSI C
2
C Programming Language

Author

Publication

E Balagurusamy

McGraw-Hill

Brian W. Kernighan
Dennis M. Ritchie

Prentice Hall

3
4
5
6

Yashvant Kanetkar
Ashok Kamthane
Reema Thareja
Vikas Gupta

BPB
Pearson
Oxford
Dreamtech

V. Rajaraman

PHI

Let Us C
Programming in C
Introduction to C Programming
Computer Fundamentals and C
Programming
Computer Programming in C

B. Learning Websites
-

nptel.iitm.ac.in
ocw.mit.edu
www.geeksforgeeks.org

C. List of Software (preferably open source)


-

Any C compiler

D. List of Major Equipment with broad specifications


-

Personal Computer with an open source C compiler


8

You might also like