Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views

Computer Programming

Uploaded by

saileshbro01
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Computer Programming

Uploaded by

saileshbro01
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Pokhara University

Faculty of Science and Technology

Course No.: xxx xxx Full marks: 100


Course title: Computer Programming (3-1-2) Pass marks: 45
Nature of the course: Theory & Practical Time per period: 1 hour
Level: Undergraduate Total Periods: 45
Program: BE Civil/ELE/ELX

1. Course Description
This course is designed to encompass the fundamental concepts of structured programming
and object-oriented programming. It deals with functions, structures and file handling to
develop the software systems. The course will be delivered through the uses of lectures, self-
learning by students, exercises and tests.

2. General Objectives
To provide the students with the concepts and implement structured and object-oriented
programming languages.

3. Methods of Instruction
Lecture, discussion, readings, Lab works, Project works

4. Contents in Detail

Specific Objectives Contents


State various types of Unit I: Introduction to Programming Languages (4 hrs)
programming languages 1.1 Programming Languages- machine-level language,
assembly language and high-level language.
1.2 Software and its types
1.3 Generations of programming languages
1.4 Structured programming language
Explain use of computer in Unit II: Problem Solving Using Computer (5 hrs)
solving problems 2.1 Problems Analysis (understanding of the problem,
feasibility and requirement analysis)
2.2 Design (Algorithm and flowchart)
2.3 Coding (compilation and execution)
2.4 Testing and debugging
2.5 Implementation, Evaluation and Maintenance of
computer programs
2.6 Program documentation
Describe basic constructs of Unit III: The C Language and its Basic Constructs (8
the C language hrs)
3.1 History of C language
3.2 Features of C
3.3 The C character set
3.4 Keywords and Identifiers

1
3.5 Data types
3.6 Constants, variables and their declaration
3.7 Formatted input/output functions
3.8 The C Operators
3.9 Control structures- branching statements (if, if-else and
switch statements), looping statements (for, while and
do-while loop)
Apply concepts of arrays Unit IV: Arrays and Structures in C (5 hrs)
and structures to store the 4.1 Arrays (one dimensional and multi-dimensional arrays),
homogenous and 4.2 Initialization of arrays and accessing the elements of
heterogenous types of data. arrays
4.3 Character arrays (strings)
4.4 Structure and union.
Application of functions and Unit V: Functions and Pointers in C (9 hrs)
pointers in a program. 5.1 Functions and their importance
5.2 Declaration of a function
5.3 Structure of a function and return statement
5.4 Library and user-defined functions
5.5 Function arguments and return types
5.6 Local and global variables
5.7 Calling a function- call by value
5.8 Pointers, pointer operators and pointer arithmetic
5.9 Returning multiple values form functions using
pointers.
Describe the concept of the Unit VI: Introduction to C++ (6 hrs)
object-oriented 6.1 Procedure-oriented vs object-oriented programming
programming using C++. 6.2 Concepts of object-oriented programming (object, class,
abstraction, encapsulation, inheritance and
polymorphism)
6.3 Origin of C++
6.4 Features of C++
6.5 C++ program structure
6.6 Input/output streams
6.7 Access specifiers
6.8 Objects and accessing data members and member
functions
6.9 Constructors (default and parameterized) and
destructors
Use the concept of the Unit VII: Object-Oriented Programming Concepts (8
object-oriented hrs)
programming using C++. 7.1 Inline function
7.2 Friend function
7.3 Function overloading
7.4 Inheritance and its types (single, multiple and multi-
level)
7.5 Function overriding
7.6 Template function

2
7.7 Exception handling

5. List of Experiments/Laboratories /Assignments


Laboratory work should cover all the concepts of C and C++ languages from all chapters
studied in the lectures. Students should develop the algorithm, flowchart and coding to solve
the following problems in laboratory:
- Temperature conversion between degree Celsius and Fahrenheit.
- Solve quadratic equation.
- Find factorial of n number.
- Find the fibonacci series and its terms.
- Multiplication, addition and product of two-dimensional matrices and find the transpose
and inverse of a two-dimensional matrices.
- Use structure to keep the records of books or any other item and access them.
- Using the concept of class, create the objects to keep the records of books or any other
items.
- Implement the single, multiple and multilevel inheritance to solve real world problem.
- Implement the template function that works for all data types to perform certain task.
- Implement exception handling in C++ with a simple example.

Students should submit a final project that uses the concepts of C or C++ studied in this
course. The marks for the practical will be based on the project work.

6. List of Tutorials
The various tutorial activities that suits your course should cover all the content of the course
to give students a space to engage more actively with the course content in the presence of
instructor. Students should submit tutorials as assignments or class works to the instructor for
evaluation. The following tutorial activities of 15 hours should be conducted to cover the
content of this course:

A. Discussion-based Tutorials: (2 hrs)


1. Evolution of Programming languages and its generations (Class discussion)
2. Structured programming and Object-oriented programming paradigms (Class
discussion).
3. Purpose and benefits of generic programming (Oral Presentation).
B. Problem solving-based Tutorials: (8 hrs)
4. Develop algorithms and flowcharts to find simple interest, largest number among three
numbers, factorial of a number, fibonacci series, prime numbers, temperature
conversion, product of matrices.
5. Develop the C programs of the above stated algorithms.
6. Develop the C++ programs to illustrate the concept of inline functions, friend functions,
template function and exception handling with simple examples.
C. Review and Question/Answer-based Tutorials: (5 hrs)
7. Case study of “Development of C with the UNIX operating system and origin of C++
languages” followed by Oral Presentation in class.
8. Students ask questions within from the course content and assignments and review key
course content in preparation for tests or exams.

3
7. Evaluation System and Students’ Responsibilities

Evaluation System
The internal evaluation of a student may consist of assignments, attendance, term-exams, lab
reports and projects etc. The tabular presentation of the internal evaluation is as follows:

External Evaluation Marks Internal Evaluation Weight Marks


Semester-End examination 50 Theory 30
Attendance and Class Participation 10%
Assignments 20%
Presentations/Quizzes 10%
Term exam 60%
Practical 20
Attendance and Class Participation 10%
Lab Report/ Project Report 20%
Practical Exam/ Project Work 40%
Viva 30%
Total Internal 50
Full Marks: 50 + 50 = 100

Student Responsibilities
Each student must secure at least 45% marks in internal evaluation with 80% attendance in
the class in order to appear in the Semester End Examination. Failing to get such score will
be given NOT QUALIFIED (NQ) and the student will not be eligible to appear the Semester-
End Examinations. Students are advised to attend all the classes, formal exam, test, etc. and
complete all the assignments within the specified time period. Students are required to
complete all the requirements defined for the completion of the course.

8. Prescribed Books and References

Text Books
1. Gottfried, B. Programming with C. New Delhi: McGraw-Hill.
2. Lafore, R. Object Oriented Programming in C++. USA: SAMS Publication.

References
1. Kernighan, B. W. & Ritchie, D. M. The C Programming Language. USA: Prentice Hall
Publication.
2. Balagurusamy, E. C programming. New Delhi: McGraw-Hill.
3. Balagurusamy, E. Object-oriented programming with C++. New Delhi: McGraw-Hill.

You might also like