Articles by "C Programming"
Showing posts with label C Programming. Show all posts

COMPUTER PROGRAMMING
CT 401

Lecture       : 3                                                                                                            Year     : I
Tutorial     :                                                                                                               Part      : I
Practical    : 3     

Course Objective:      To acquaint the student with computer software and high level programming languages. Emphasis will be given on developing computer programming skills using computer programming in C and FORTRAN languages.
1.              Overview of computer software & programming languages                    (2 hours)
1.1.       System software
1.2.       Application software
1.3.       General software features and recent trends
1.4.       Generation of programming languages
1.5.       Categorization of high level languages

2.              Problem solving using Computer                                                                      (2 hours)
2.1.       Problem analysis
2.2.       Algorithm development and Flowchart
2.3.       Compilation and Execution
2.4.       Debugging and Testing
2.5.       Programming Documentation

3.              Introduction to  ‘C’ programming                                                                    (3 hours)
3.1.       Character set, Keywords, and Data types
3.2.       Preprocessor Directives
3.3.       Constants and Variables
3.4.       Operators and statements

4.              Input and Output                                                                                                   (2 hours)
4.1.       Formatted input/output
4.2.       Character input/output
4.3.       Programs using input/output statements

5.              Control statements                                                                                                (6 hours)
5.1.       Introduction
5.2.       The goto, if,  if … … else, switch statements
5.3.       The while, do … while, for statements


6.              User-Defined Functions                                                                                        (4 hours)
6.1.       Introduction
6.2.       Function definition and return statement
6.3.       Function Prototypes
6.4.       Function invocation, call by value and call by reference, Recursive Functions

7.              Arrays and Strings                                                                                                (6 hours)
7.1.       Defining an Array
7.2.       One-dimensional Arrays
7.3.       Multi-dimensional Arrays
7.4.       Strings and string manipulation
7.5.        Passing Array and String to function

8.              Structures                                                                                                                 (4 hours)
8.1.       Introduction
8.2.       Processing a Structure
8.3.       Arrays of Structures
8.4.       Arrays within Structures
8.5.       Structures and Function

9.              Pointers                                                                                                                     (4 hours)
9.1.       Introduction
9.2.       Pointer declaration
9.3.       Pointer arithmetic
9.4.       Pointer and Array
9.5.       Passing Pointers to a Function
9.6.       Pointers and Structures

10.           Data Files                                                                                                                  (4 hours)
10.1.    Defining opening and closing a file
10.2.    Input/Output operations on Files
10.3.    Error handling during input/output operations

11.           Programming Language: FORTRAN                                                              (8 hours)
11.1.    Character set
11.2.    Data types, Constants and variables
11.3.    Arithmetic operations, Library Functions
11.4.    Structure of a Fortran Program
11.5.    Formatted and Unformatted Input/Output Statements
11.6.    Control Structures: Goto, Logical IF, Arithmetic IF, Do loops
11.7.    Arrays: one dimensional and two dimensional 
Laboratory:
-                Minimum 6 sets of computer programs in C (from Unit 4 to Unit 10) and 2 sets in FORTRAN (from unit 11) should be done individually. (30 marks out of 50 marks)
-                Student (maximum 4 persons in a group) should submit mini project at the end of course. (20 marks out of 50 marks)
References:
1.       Kelly & Pohl, “A Book on C”, Benjamin/Cumming
2.       Brian W. Keringhan & Dennis M. Ritchie, “The ‘C’ Programming Language”, PHI
3.       Bryons S. Gotterfried, “Programming with C”, TMH
4.       Yashavant Kanetkar, “Let Us C”, BPB
5.       D. M. Etter, “Structured Fortran & for Engineers and Scientist”, The Benjamin/Cummings Publishing Company, Inc.
6.       Rama N. Reddy and Carol A. Ziegler, “FORTRAN 77 with Applications for Scientists and Engineers”, Jaico Publishing House
7.       Alexis Leon, Mathews Leon, “Fundamentals of Information Technology”, Leon Press and Vikas Publishing House

Evaluation Scheme
There will be questions covering all the chapters in the syllabus. The evaluation scheme for the question will be as indicated in the table below:
Chapter
Hours
Mark distribution*
1, 2
4
8
3, 4
5
8
5
6
10
6
4
8
7
6
10
8
4
8
9
4
8
10
4
8
11
8
12
Total
45
80
* There may be minor deviation in marks distribution.
 Learning C by ExamplesThe Learning C by example is a very useful Nepalese text book for C Programming subject in many universities like Tribhuvan University, Pokhara University , Purwanchal university for Diploma of Engineering, Bachelor of Engineering, CSIT, IT and other student also.

Book:- Learning C by Example
Auther:- Krishna Kandel 
Source:- Manoj Gyawali (071 batch Student of B. Agri)
This file is uploaded with the permission of Department of Agricultural Engineering

to download/read click here
 Learning C by examples


 Let Us c

Let US C

Is a C Programming book that can be used for taking reference for C Programming CT 401 of first year first part (First Semester).
Among the many book found in the market, Let Us C is  also one of the better book to easy understanding and convenient practice also. 

Even C programming is the High level and one of the vast language in computer, after the better study C programming becomes very simple and easy language.

First study and practice C programming language bu taking the reference of this book, it gives a good result on your programming. 


BOOK:- Let Us C
Writer:- Yashavant Kanetkhar
Edition:- Fifth Edition
Source:- Free internet resources
Uploaded by ioeagrineer
Can be used:- as a reference book for Computer Programming (C Programming) 
For Bachelor of Engineering first year first part in Tribhuvan University's Acedemic syllabus.

To download/read this book click here     
                                                  

About the Author

Destiny drew Yashavant Kanetkar towards computers when the IT industry was just making a beginning in India. Having completed his education from VJTI Mumbai and IIT Kanpur in Mechanical Engineering he started his training company in Nagpur.
Yashavant has a passion for writing and is an author of several books in C, C++, VC++, C#, .NET, DirectX and COM programming. He is a much sought after speaker on various technology subjects and is a regular columnist for Express Computers and Developer 2.0. His current affiliations include being a Director of KICIT, a training company and DCube Software Technologies, a software development company. In recognition to his contribution Microsoft awarded him the prestigious “Best .NET Technical Contributor” award recently. He can be reached at kanetkar@kicit.com

Acknowledgments

It has been a journey of almost a decade from the stage the book idea of “Let Us C” was conceived up to the release of this Fifth Edition. During this journey I have met so many students, developers, professors, publishers and authors who expressed their opinions about Let Us C. They have been the main motivators in my effort to continuously improve this book.
In particular I am indebted to Manish Jain who had a faith in this book idea, believed in my writing ability, whispered the words of encouragement and made helpful suggestions from time to time.
The five editions of this book saw several changes and facelifts. During this course people like Ajay Joshi, Amol Tambat, Ajay Daga, Nandita Shastri, Mrunal Khandekar and Rahul Bedge helped in writing programs, spotting bugs, drawing figures and preparing index. I trust that with their collective acumen all the programs would run correctly in all situations.
Anup Das, my colleague has a lot of influence on this Fifth Edition. He helped my clarify my thoughts and pointing me in the direction of Windows and Linux. He sincerely wanted this edition to offer “C, in today’s perspective”. I am hopeful that his dream has been realized.
I thank Seema, my wife, for her friendship and for her contributions in everything that I do in IT in ways more than she could ever guess. Though she is a Gynecologist by profession she has the uncanny ability to come up with suggestions that make me feel “Oh, why didn’t it occur to me”.
And finally my heartfelt gratitude to the countless students who made me look into every nook and cranny of C. I would forever remain indebted to them..