Book description
A hands-on book on rudiments of programming, Programming Techniques through C: A Beginner's Companion teaches you the techniques of solving problems from simpler ones like "finding out the area of a triangle" to more involved ones like "sorting and searching".
The visual approach to solve problems in a step-by-step manner through flowcharts makes it easy for the beginners to solve problems and write programs using the C programming language. The emphasis is on problem solving procedures rather than learning a language.
Table of contents
- Cover Page
- Title Page
- Copyright
- Contents
- Preface
- CHAPTER 1: Algorithms and Flowcharts
- CHAPTER 2: Basic Techniques
- CHAPTER 3: Decision Making
-
CHAPTER 4: Looping Techniques
- 4.1 SUM OF FIRST N NATURAL NUMBERS
- 4.2 SUM OF THE SQUARES OF ALL INTEGERS FROM 1 TO N
- 4.3 FACTORIAL OF A GIVEN INTEGER
- 4.4 FINDING THE SUM OF ODD NUMBERS AND SUM OF EVEN NUMBERS FROM 1 TO N
- 4.5 GENERATION OF REQUIRED NUMBER OF TERMS OF THE FIBONACCI SEQUENCE
- 4.6 FINDING THE GCD AND LCM OF GIVEN NUMBERS
- 4.7 SUM OF ALL THE DIGITS OF A GIVEN INTEGER NUMBER
- 4.8 REVERSING A NUMBER AND TO CHECK WHETHER IT IS A PALINDROME OR NOT
- 4.9 TO FIND OUT WHETHER A GIVEN INTEGER NUMBER IS PRIME OR NOT
- 4.10 PRIME NUMBERS BETWEEN 1 AND N
- 4.11 SUM OF FIRST N TERMS IN THE EXPANSION OF SINE SERIES
- 4.12 COMPUTING THE AREA OF CIRCLES GIVEN THEIR RADII
- CHAPTER 5: Multi-Way Decision Making
-
CHAPTER 6: Arrays
- 6.1 READING IN AN ARRAY AND TO OUTPUT THE SAME
- 6.2 BIGGEST AMONG GIVEN ‘N’ INTEGER NUMBERS
- 6.3 THE MAXIMUM AND MINIMUM AMONG GIVEN N INTEGER NUMBERS
- 6.4 AVERAGE OF A GIVEN SET OF N NUMBERS
- 6.5 GIVEN N INTEGERS (ZERO, +VE, -VE) TO FIND OUT THE SUM OF +VE NUMBERS, -VE NUMBERS AND THE AVERAGE OF ALL NUMBERS
- 6.6 MEAN, VARIANCE AND STANDARD DEVIATION OF A GIVEN SET OF NUMBERS
- 6.7 CLASSIFICATION OF THE ELEMENTS OF A GIVEN ARRAY INTO AN ARRAY CONSISTING OF ONLY ODD ELEMENTS AND ANOTHER ARRAY CONSISTING OF ONLY EVEN ELEMENTS.
- 6.8 SORTING N NUMBERS IN ASCENDING ORDER USING BUBBLE SORT
- 6.9 EVALUATING A POLYNOMIAL
- 6.10 READING AND PRINTING OUT A GIVEN MATRIX
- 6.11 TO COMPUTE THE SUM/DIFFERENCE OF GIVEN MATRICES
- 6.12 TRACE OF A GIVEN MATRIX
- 6.13 NORM OF A GIVEN MATRIX
- 6.14 TRANSPOSE OF A GIVEN MATRIX
- 6.15 PRODUCT OF TWO GIVEN MATRICES
- 6.16 SEARCHING A GIVEN ELEMENT IN A GIVEN LIST OF INTEGER ELEMENTS (LINEAR SEARCH ALGORITHM)
- 6.17 SEARCHING FOR A GIVEN ELEMENT IN AN ARRAY USING BINARY SEARCH METHOD
- 6.18 SORTING A GIVEN ARRAY OF ELEMENTS USING SELECTION SORT
-
CHAPTER 7: Characters and String Handling
- 7.1 FINDING THE LENGTH OF A GIVEN STRING
- 7.2 DETERMINING WHETHER A GIVEN STRING IS PALINDROME OR NOT
- 7.3 REVERSING A GIVEN STRING
- 7.4 COPYING THE CONTENTS OF A GIVEN STRING INTO ANOTHER STRING
- 7.5 CONCATENATING TWO GIVEN STRINGS
- 7.6 CONVERTING THE UPPERCASE ALPHABETS INTO LOWERCASE ALPHABETS IN A GIVEN STRING AND VICE - VERSA
- 7.7 COUNTING THE NUMBER OF VOWELS AND CONSONANTS IN A GIVEN LINE
- 7.8 SORTING A GIVEN SET OF NAMES
- 7.9 COUNTING THE NUMBER OF CHARACTERS IN AN INPUT
- 7.10 COUNTING THE NUMBER OF WORDS IN A GIVEN LINE
- 7.11 COUNTING THE NUMBER OF LINES IN A GIVEN TEXT
-
CHAPTER 8: Solving with Modules
- 8.1 FUNCTION TO PRINT A LINE MADE UP OF ONLY HASH (#) CHARACTERS
- 8.2 FUNCTION TO MULTIPLY TWO GIVEN INTEGER NUMBERS
- 8.3 FUNCTION TO COMPUTE THE GCD OF GIVEN THREE NUMBERS
- 8.4 FUNCTION TO SUM FIRST N TERMS OF SINE SERIES EXPANSION AND TO TABULATE SINE VALUES FOR DIFFERENT ANGLES
- 8.5 FUNCTIONS TO COMPUTE MEAN AND VARIANCE AND HENCE TO COMPUTE STANDARD DEVIATION OF GIVEN SET OF NUMBERS
- 8.6 FUNCTIONS TO READ AND WRITE ONE DIMENSIONAL ARRAY
- 8.7 FUNCTION TO SORT AN ARRAY USING BUBBLE SORT METHOD
- 8.8 FUNCTION TO SEARCH FOR A REQUIRED ELEMENT USING BINARY SEARCH METHOD
- 8.9 FUNCTIONS TO SORT A GIVEN UNSORTED ARRAY USING SELECTION SORT
- 8.10 FUNCTIONS TO READ, WRITE AND COMPUTE TRACE OF GIVEN MATRIX
- 8.11 FUNCTIONS TO COMPUTE SUM OF EACH ROW, SUM OF EACH COLUMN AND SUM OF ALL ELEMENTS OF GIVEN MATRIX
- 8.12 FUNCTIONS TO READ, WRITE AND COMPUTE PRODUCT OF TWO GIVEN MATRICES
- 8.13 PROGRAM TO SEARCH FOR REQUIRED ELEMENT IN A GIVEN UNSORTED ARRAY USING FUNCTIONS ON SEPARATE FILE
- 8.14 UNDERSTANDING THE MEANING OF LOCAL AND GLOBAL VARIABLES
- 8.15 FUNCTION TO SWAP CONTENTS OF TWO VARIABLES—THE WRONG ONE
- CHAPTER 9: Pointers
-
CHAPTER 10: Structures
- 10.1 DEFINING A STRUCTURE, DECLARING, STRUCTURE VARIABLES, ASSIGNING VALUES TO STRUCTURE MEMBERS AND PRINTING OUT STRUCTURE MEMBER VALUES
- 10.2 ARRAY OF STRUCTURE VARIABLES: LISTING NAMES OF STUDENTS WHO HAVE SCORED MORE THAN 60% OF TOTAL MARKS IN THREE SUBJECTS USING STRUCTURE VARIABLES
- 10.3 SUM OF TWO COMPLEX NUMBERS-PASSING STRUCTURE VARIABLE TO FUNCTION
- 10.4 ARRAY OF STRUCTURE VARIABLES WITH A STRUCTURE AS MEMBER OF ANOTHER STRUCTURE
- Index
Product information
- Title: Programming Techniques Through C: A Beginner's Companion
- Author(s):
- Release date: August 2006
- Publisher(s): Pearson India
- ISBN: 9788131705087
You might also like
book
Interfacing with C, 2nd Edition
Interfacing with C is about interfacing personal computers using C. Anyone who is interested in ports, …
book
Parallel and Distributed Programming Using C++
Parallel and Distributed Programming Using C++ provides an up-close look at how to build software that …
book
Computer Fundamentals and Programming in C (RMK)
Computer Fundamentals and Programming in C, with its abounding, extensive chapter-end questions and unique pedagogy, is …
book
Modern C Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library
Discover how C's efficiency makes it a popular choice in a wide variety of applications and …