Problem Solving Through Programming In C
- Formulate simple algorithms for arithmetic and logical problems
- Translate the algorithms to programs (in C language)
- Test and execute the programs and correct syntax and logical errors
- Implement conditional branching, iteration and recursion
- Decompose a problem into functions and synthesize a complete program using divide and conquer approach
- Use arrays, pointers and structures to formulate algorithms and programs
- Apply programming to solve matrix addition and multiplication problems and searching and sorting problems
- Apply programming to solve simple numerical method problems, namely rot finding of function, differentiation of function and simple integration
Note: This exam date is subjected to change based on seat availability. You can check final exam date on your hall ticket.
Page Visits
Course layout, books and references, instructor bio.
Prof. Anupam Basu
Course certificate.
- Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
- ( All assignments in a particular week will be counted towards final scoring - quizzes and programming assignments).
- Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam - out of 100
- Proctored Exam score =50% of the proctored certification exam score out of 100
DOWNLOAD APP
Problem solving using C
Structured programing techniques, by yuksel uckan.
- 3 Want to read
- 0 Currently reading
- 0 Have read
My Reading Lists:
Use this Work
Create a new list
My book notes.
My private notes about this edition:
Check nearby libraries
- Library.link
Buy this book
This edition doesn't have a description yet. Can you add one ?
Showing 6 featured editions. View all 6 editions?
Add another edition?
Book Details
Published in, edition notes.
Includes index. System requirements for accompanying computer disk: IBM PC or compatible, with Microsoft Windows 3.1 or higher and C programming language.
Classifications
External links.
- Publisher description
- Table of contents
The Physical Object
Community reviews (0).
- Created April 1, 2008
- 12 revisions
Wikipedia citation
Copy and paste this code into your Wikipedia page. Need help ?
- Computer Science and Engineering
- NOC:Problem Solving through Programming in C (Video)
- Co-ordinated by : IIT Kharagpur
- Available from : 2017-12-21
- Intro Video
- Lecture 1 : Introduction
- Lecture 2 : Idea of Algorithms
- Lecture 3 : Flow Chart and Pseudocode
- Lecture 4 : Introduction to Programming Language Concepts
- Lecture 5 : Variables and Memory
- Lecture 6 : Types of Software and Compilers
- Lecture 7 : Introduction to C Programming Language
- Lecture 8 : Variables and Variable Types in C
- Lecture 9 : Introducing Functions
- Lecture 10 : Address and Content of Variables and Types
- Lecture 11 : Assignment Statement and Operators in C
- Lecture 12 : Arithmetic Expressions and Relational Expressions
- Lecture 13 : Logical Operators and Change in Control Flow
- Lecture 14 : Use of Logical Operaotrs in Branching
- Lecture 15 : Branching : IF - ELSE Statement
- Lecture 16 : IF-ELSE Statement (Contd.)
- Lecture 17 : Switch statement
- Lecture 18 : Switch Statement (Contd.) and Introduction to Loops
- Lecture 19 : Implementing Repetitions (Loops)
- Lecture 20 : Implementation of Loops with for Statement (Contd.)
- Lecture 21 : For Statement (Contd.)
- Lecture 22 : Example of If-Else
- Lecture 23 : Example of Loops
- Lecture 24 : Example of Loops (Contd.)
- Lecture 25: Example of Loops (Contd.), Use of FOR Loops
- Lecture 26 : Introduction to Arrays
- Lecture 27 : Arrays (Contd.)
- Lecture 28 : Arrays (Contd.)
- Lecture 29 : Program using Arrays
- Lecture 30 : Array Problem
- Lecture 31 : Linear Search
- Lecture 32 : Character Array and Strings
- Lecture 33 : String Operations
- Lecture 34 : 2-D Array Operation
- Lecture 35 : Introducing Functions
- Lecture 36 : More on Functions
- Lecture 37 : Function (Contd.)
- Lecture 38 : Scanf and Printf Functions; Function Prototype
- Lecture 39 : Parameter Passing in Function Revision
- Lecture 40 : Parameter Passing in Function Revision (Contd.)
- Lecture 41: Substitution of # include and Macro
- Lecture 42: "search" as a function
- Lecture 43: Binary Search
- Lecture 44: Binary Search (Contd.)
- Lecture 45: Sorting Methods
- Lecture 46 : Bubble Sort (Contd.)
- Lecture 47 : Use of Pointer in Function : Context Bubble Sort
- Lecture 48 : Arrays at Strings
- Lecture 49 : Data Representation
- Lecture 50 : Bisection Method
- Lecture 51 : Interpolation
- Lecture 52 : Trapezoidal Rule and Runge-Kutta Method
- Lecture 53 : Recursion
- Lecture 54 : Recursion(Contd.)
- Lecture 55 : Structure
- Lecture 56 : Structure (Contd.)
- Lecture 57 : Structure with typedef
- Lecture 58 : Pointer
- Lecture 59 : Pointer (Contd.)
- Lecture 60 : Pointer in Structures
- Lecture 61 : Dynamic Allocation and File
- Week 2 - PMRF Live Session
- Week 3 - PMRF Live Session
- Watch on YouTube
- Assignments
- Download Videos
- Transcripts
- Handouts (3)
- C Data Types
- C Operators
- C Input and Output
- C Control Flow
- C Functions
- C Preprocessors
- C File Handling
- C Cheatsheet
- C Interview Questions
- How to use gotoxy() in codeblocks?
- Program For Newton’s Forward Interpolation
- getch() function in C with Examples
- C program to check if a given string is Keyword or not
- Discrete Fourier Transform and its Inverse using C
- rand() in C
- C Program to Print Armstrong Numbers Between 1 to 1000
- Reverse String in C
- Else without IF and L-Value Required Error in C
- time.h header file in C with Examples
- C Program to Convert Decimal to Octal
- C Program To Remove Duplicates From Sorted Array
- C Program to Find Determinant of a Matrix
- C Program to Convert Hours into Minutes and Seconds
- C Program to Find Largest Element in an Array
- C Program to Show Thread Interface and Memory Consistency Errors
- Convert Binary to Decimal in C
- C Program to Add N Distances Given in inch-feet System using Structures
C Exercises – Practice Questions with Solutions for C Programming
The best way to learn C programming language is by hands-on practice. This C Exercise page contains the top 30 C exercise questions with solutions that are designed for both beginners and advanced programmers. It covers all major concepts like arrays, pointers, for-loop, and many more.
So, Keep it Up! Solve topic-wise C exercise questions to strengthen your weak topics.
C Programming Exercises
The following are the top 30 programming exercises with solutions to help you practice online and improve your coding efficiency in the C language. You can solve these questions online in GeeksforGeeks IDE.
Q1: Write a Program to Print “Hello World!” on the Console.
In this problem, you have to write a simple program that prints “Hello World!” on the console screen.
For Example,
Click here to view the solution.
Q2: write a program to find the sum of two numbers entered by the user..
In this problem, you have to write a program that adds two numbers and prints their sum on the console screen.
Q3: Write a Program to find the size of int, float, double, and char.
In this problem, you have to write a program to print the size of the variable.
Q4: Write a Program to Swap the values of two variables.
In this problem, you have to write a program that swaps the values of two variables that are entered by the user.
Swap two numbers
Q5: Write a Program to calculate Compound Interest.
In this problem, you have to write a program that takes principal, time, and rate as user input and calculates the compound interest.
Q6: Write a Program to check if the given number is Even or Odd.
In this problem, you have to write a program to check whether the given number is even or odd.
Q7: Write a Program to find the largest number among three numbers.
In this problem, you have to write a program to take three numbers from the user as input and print the largest number among them.
Q8: Write a Program to make a simple calculator.
In this problem, you have to write a program to make a simple calculator that accepts two operands and an operator to perform the calculation and prints the result.
Q9: Write a Program to find the factorial of a given number.
In this problem, you have to write a program to calculate the factorial (product of all the natural numbers less than or equal to the given number n) of a number entered by the user.
Q10: Write a Program to Convert Binary to Decimal.
In this problem, you have to write a program to convert the given binary number entered by the user into an equivalent decimal number.
Q11: Write a Program to print the Fibonacci series using recursion.
In this problem, you have to write a program to print the Fibonacci series(the sequence where each number is the sum of the previous two numbers of the sequence) till the number entered by the user using recursion.
Fibonacci Series
Q12: Write a Program to Calculate the Sum of Natural Numbers using recursion.
In this problem, you have to write a program to calculate the sum of natural numbers up to a given number n.
Q13: Write a Program to find the maximum and minimum of an Array.
In this problem, you have to write a program to find the maximum and the minimum element of the array of size N given by the user.
Q14: Write a Program to Reverse an Array.
In this problem, you have to write a program to reverse an array of size n entered by the user. Reversing an array means changing the order of elements so that the first element becomes the last element and the second element becomes the second last element and so on.
Reverse an array
Q15: Write a Program to rotate the array to the left.
In this problem, you have to write a program that takes an array arr[] of size N from the user and rotates the array to the left (counter-clockwise direction) by D steps, where D is a positive integer.
Q16: Write a Program to remove duplicates from the Sorted array.
In this problem, you have to write a program that takes a sorted array arr[] of size N from the user and removes the duplicate elements from the array.
Q17: Write a Program to search elements in an array (using Binary Search).
In this problem, you have to write a program that takes an array arr[] of size N and a target value to be searched by the user. Search the target value using binary search if the target value is found print its index else print ‘element is not present in array ‘.
Q18: Write a Program to reverse a linked list.
In this problem, you have to write a program that takes a pointer to the head node of a linked list, you have to reverse the linked list and print the reversed linked list.
Q18: Write a Program to create a dynamic array in C.
In this problem, you have to write a program to create an array of size n dynamically then take n elements of an array one by one by the user. Print the array elements.
Q19: Write a Program to find the Transpose of a Matrix.
In this problem, you have to write a program to find the transpose of a matrix for a given matrix A with dimensions m x n and print the transposed matrix. The transpose of a matrix is formed by interchanging its rows with columns.
Q20: Write a Program to concatenate two strings.
In this problem, you have to write a program to read two strings str1 and str2 entered by the user and concatenate these two strings. Print the concatenated string.
Q21: Write a Program to check if the given string is a palindrome string or not.
In this problem, you have to write a program to read a string str entered by the user and check whether the string is palindrome or not. If the str is palindrome print ‘str is a palindrome’ else print ‘str is not a palindrome’. A string is said to be palindrome if the reverse of the string is the same as the string.
Q22: Write a program to print the first letter of each word.
In this problem, you have to write a simple program to read a string str entered by the user and print the first letter of each word in a string.
Q23: Write a program to reverse a string using recursion
In this problem, you have to write a program to read a string str entered by the user, and reverse that string means changing the order of characters in the string so that the last character becomes the first character of the string using recursion.
reverse a string
Q24: Write a program to Print Half half-pyramid pattern.
In this problem, you have to write a simple program to read the number of rows (n) entered by the user and print the half-pyramid pattern of numbers. Half pyramid pattern looks like a right-angle triangle of numbers having a hypotenuse on the right side.
Q25: Write a program to print Pascal’s triangle pattern.
In this problem, you have to write a simple program to read the number of rows (n) entered by the user and print Pascal’s triangle pattern. Pascal’s Triangle is a pattern in which the first row has a single number 1 all rows begin and end with the number 1. The numbers in between are obtained by adding the two numbers directly above them in the previous row.
Pascal’s Triangle
Q26: Write a program to sort an array using Insertion Sort.
In this problem, you have to write a program that takes an array arr[] of size N from the user and sorts the array elements in ascending or descending order using insertion sort.
Q27: Write a program to sort an array using Quick Sort.
In this problem, you have to write a program that takes an array arr[] of size N from the user and sorts the array elements in ascending order using quick sort.
Q28: Write a program to sort an array of strings.
In this problem, you have to write a program that reads an array of strings in which all characters are of the same case entered by the user and sort them alphabetically.
Q29: Write a program to copy the contents of one file to another file.
In this problem, you have to write a program that takes user input to enter the filenames for reading and writing. Read the contents of one file and copy the content to another file. If the file specified for reading does not exist or cannot be opened, display an error message “Cannot open file: file_name” and terminate the program else print “Content copied to file_name”
Q30: Write a program to store information on students using structure.
In this problem, you have to write a program that stores information about students using structure. The program should create various structures, each representing a student’s record. Initialize the records with sample data having data members’ Names, Roll Numbers, Ages, and Total Marks. Print the information for each student.
We hope after completing these C exercises you have gained a better understanding of C concepts. Learning C language is made easier with this exercise sheet as it helps you practice all major C concepts. Solving these C exercise questions will take you a step closer to becoming a C programmer.
Frequently Asked Questions (FAQs)
Q1. what are some common mistakes to avoid while doing c programming exercises.
Some of the most common mistakes made by beginners doing C programming exercises can include missing semicolons, bad logic loops, uninitialized pointers, and forgotten memory frees etc.
Q2. What are the best practices for beginners starting with C programming exercises?
Best practices for beginners starting with C programming exercises: Start with easy codes Practice consistently Be creative Think before you code Learn from mistakes Repeat!
Q3. How do I debug common errors in C programming exercises?
You can use the following methods to debug a code in C programming exercises Read the error message carefully Read code line by line Try isolating the error code Look for Missing elements, loops, pointers, etc Check error online
Please Login to comment...
Similar reads.
- 5 Reasons to Start Using Claude 3 Instead of ChatGPT
- 6 Ways to Identify Who an Unknown Caller
- 10 Best Lavender AI Alternatives and Competitors 2024
- The 7 Best AI Tools for Programmers to Streamline Development in 2024
- 30 OOPs Interview Questions and Answers (2024)
Improve your Coding Skills with Practice
What kind of Experience do you want to share?
Problem Solving and Programming In C Notes and Study Material PDF Free Download
Problem Solving and Programming in C Notes: C is one of the popular programming languages that are simple and flexible. It is a general-purpose programming language that is widely used in different kinds of applications. Operating Systems like Windows and many others are written in C language. Git, Python Interpreter, and Oracle Database are also written in C. This language is often called the base knowledge of programming. If you know this language, it becomes easier for you to learn any other programming language. This is a simple language which can provide faster execution. The demand for C developers is very high in the job market. This programming language can extend itself. It contains various kinds of functions that are part of the library. In this article, you will find complete details about problem-solving and programming of C language Lecture Notes .
Problem Solving And Programming In C Notes and Study Material PDF Free Download
Problem solving and programming in c reference books, problem solving and programming in c curriculum, list of problem solving and programming in c important questions.
- FAQs on Problem Solving And Programming In C Notes
Introduction to Problem Solving And Programming In C
Ritchie first developed this language in 1972. It is a structured language that is widely used in the software development field. For every software developer, it is important to know the C language. This language can handle low-level activities and can be compiled easily. This language is primarily used in UNIX. This language is the successor of the B language. C language is used in databases, utilities, text editors, assemblers, operating systems, and language compilers. In C programming course, you will learn this programming language from scratch. You will find all the study materials of this widely used language from this article.
Anyone interested in making a career in software development should learn C programming. It is because this language is considered as the base language of every other programming language. If you plan to do a course on C programming, you can find the right study material through this article. We have made a list of some important study materials on C programming. You can check out computer programming terminologies once before starting C programming course.
It is a relatively small language, but it is very useful. You need to learn some simple things in C programming. This language was mainly discovered so that programmers can interact with the machines efficiently. To learn this language, you must read the right set of books. We have made a list of some important books on C language.
- C Programming Absolute Beginner’s Guide.
- C Programming Language.
- The C Programming Language 2nd Edition.
- C Programming: A Modern Approach.
- Expert C Programming: Deep Secrets.
- C: The Complete Reference.
- Head First C: A Brain-Friendly Guide.
- Computer Fundamentals and Programming in C.
- Low-Level Programming by Igor Zhirkov
- C in a Nutshell by Peter Prinz & Tony Crawford
Before starting the course on C programming, you must know the syllabus. It is crucial to understand the syllabus. The syllabus of C programming varies depending on the type of course and institution. However, the basic structure of the C programming’s syllabus remains the same. In this article, you will get to know about the necessary details taught in C programming.
C Programming Language Syllabus
Fundamentals of C Language
About C tutorial
Important points about C
Applications of C
C Language and English Language
Features of C
C, C++ and Java
Overview of C Language
History of C
First Program in C Hello World
Basic Structure of C Programming
Tokens in C
Keywords in C
Identifiers in C
Format Specifiers
Format Specifiers Examples
Data Types in C Language
Introduction to Data Types in C
int Data Type in C
float Data Type in C
double Data Type in C
char Data Type in C
Variable in C Language
Variable Introduction in C
Variable Declaration and Initialization
Variable types and Scope in C
Local Variable in C
static Variable in C
Global variables in C
Storage Class in C
Constant in C Language
Constants in C
Operators and Enums in C Language
Introduction to Operator
Arithmetic Operators in C
Relational Operators in C
Bit-wise Operators in C
Logical Operators in C
Assignment Operators in C
Conditional Operator in C
size of() Operator in C
Operator Precedence
Decision Making of C Language
Decision Making in C Introduction
if Statement
if-else Statement
Nested if Statement
if- else if Ladder
switch case
Loop control in C Language
Loop Introduction in C
while loop in C
do-while Loop In C
for Loop in C
Control Flow in C Programming
break Statement in C
continue Statement in C
goto statement in C
Array in C Language
Single Dimensional Array
Multi-Dimensional Array in C
String in C Language
Introduction to String
Function in C Language
Function in C
Function Calling in C
return type in Function
Call by Value in C
User Define Function
Predefined Functions
String functions in C
All String Functions
strcat() function
strncat() function
strcpy() function
strncpy() function
strlen() function
strcmp() function
strcmpi() function
strchr() function
strrchr() function
strstr() function
strrstr() function
strdup() function
strlwr() function
strupr() function
strrev() function
strset() function
strnset() function
strtok() function
Recursion in c
Introduction to Recursion
Direct and Indirect Recursion
Pointer in C Language
Pointer in C
types of pointer
NULL pointer
Dangling Pointer
Void/Generic Pointers
Wild Pointer
Near, Far and Huge Pointer
Pointer Expressions and Arithmetic
Pointer and Array
Strings as pointers
Pointer to Function
Call by Reference in C
Structure in C Language
Structure in C
Nested Structure in C
The array of Structures in C
Pointer to Structure
Structure to Function in C
typedef in C
typedef vs #define in C
Union in C Language
File Input/Output
Introduction to File
File Operation in c
Dynamic Memory Allocation
Introduction to DMA
calloc() and free() function
realloc() and free() function
C Pre-processor
Introduction about Pre-processor
- What is the difference between ++i and i++?
- Give a brief note on the volatile keyword.
- What are the basic data types related to C?
- Explain syntax errors.
- How can you create a decrement and increment statement in C?
- Explain dangling pointer in C.
- What is called the prototype function in C?
- What is a header file? Explain its usage in C programming.
- Explain pointer on a pointer in C language.
- How can you save data in a stack data structure type?
IMAGES
VIDEO
COMMENTS
Programming for problem solving using C Notes Unit - I Computer History, Hardware, Software, Programming Languages and Algorithms: Components andfunctions of a Computer System, Concept of Hardware and Software Programming Languages: Low- level and High-level Languages, Program Design Tools: Algorithm, Flowchart, Pseudo code.
(R18A0501) PROGRAMMING FOR PROBLEM SOLVING SYLLABUS Course Objectives • To understand the various steps in Program development. • To understand the basic concepts in C Programming Language. • To learn how to write modular and readable C Programs • To learn to write programs (using structured programming approach) in C to solve problems.
This self-readable and student-friendly text provides a strong programming foundation to solve problems with C language through its well-supported structured programming methodology, rich set of operators and data types. It is designed to help students build efficient and compact programs. The book, now in its second edition, is an extended version of Dr. M.T. Somashekara's previous book ...
Documentation - Techniques of Problem Solving - Problem solving aspects - Top- Down aspects - Implementation of algorithms - Program verification - Flowcharting, decision table, algorithms, Structured programming concepts, Programming methodologies viz. top-down and bottom-up programming. Basic Concepts of Computer
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.
Step 3: Read variables a,b and c. Step 4: If a>b If a>c Display a is the largest number. Else Display c is the largest number. Else If b>c Display b is the largest number. Else Display c is the greatest number. Step 5: Stop Advantages of algorithm It is a step-wise representation of a solution to a given problem, which makes it easy to understand.
Jones and Harrow present programming concepts in the context of solving problems. Each chapter introduces a problem first, and then covers the C language elements needed to solve it. Students can see how a program is built from its simplest beginning to its final polished form. This book introduces beginning programming concepts using the C language.
This book is especially written for undergraduate engineering students. It is equally useful for all students having C programming in their courses. Book is designed in such manner that any student can self start C programming with confidence. This book is equally useful for teachers who are teaching C programming to young students.
Learners enrolled: 29073. ABOUT THE COURSE : This course is aimed at enabling the students to. Formulate simple algorithms for arithmetic and logical problems. Translate the algorithms to programs (in C language) Test and execute the programs and correct syntax and logical errors. Implement conditional branching, iteration and recursion.
This introductory-level C programming book is designed primarily for engineering students required to learn how to program. In Engineering Problem Solving with C, 4th Edition, best-selling author, Delores Etter, uses real-world engineering and scientific examples and problems throughout the text. Solutions to the problems are developed using ...
Programming and Problem Solving Through C Lang. Harsha Priya, R. Ranjeet. ... Contents. ALGORITHMS FOR PROBLEMSOLVING . 20: FUNDAMENTALS OF C PROGRAMMING CONDITIONAL . 36: switch case statement . 65: FUNCTIONS STRUCTURES UNIONS . 94: POINTERS SELF REFERENTIAL STRUCTURE LINKED LISTS . 111:
Problem Solving Using C: Structured Programming Techniques. September 15, 1998, Mcgraw-Hill College. Paperback in English - 2nd edition. 0075619369 9780075619369.
Abstract and Figures. Programming is the process of converting a solution (algorithm or flowchart) to a set of instructions. A computer language is used to write the set of instructions (Computer ...
The second step in solving our problem involves the use of flowcharting. Flowcharting is a graphical way of depicting a problem in terms of its inputs, outputs, and processes. Though the shapes we will use in our flowcharts will be expanded as we cover more topics, the basic elements are as follows: Rounded Rectangle (start/end of a program)
Courses. Computer Science and Engineering. NOC:Problem Solving through Programming in C (Video) Syllabus. Co-ordinated by : IIT Kharagpur. Available from : 2017-12-21. Lec : 1.
concepts of computer programming using the C programming language. The course focuses on developing problem-solving skills through the application of programming techniques and algorithms. Throughout the course, students will learn how to analyze problems, design solutions, and implement them using the C programming language.
Catalog Description: 14 - Introduction to Structured Programming In C++. 4 Units. Introduction to structured programming and problem solving using the C++ language. Problem solving techniques, algorithm design, testing and debugging techniques, and documentation standards. C++ syntax: elementary operators, data types, control structures, user ...
Q2: Write a Program to find the Sum of two numbers entered by the user. In this problem, you have to write a program that adds two numbers and prints their sum on the console screen. For Example, Input: Enter two numbers A and B : 5 2. Output: Sum of A and B is: 7.
51 M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH 'C' LANGUAGE Model Question Paper NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the TEAR-OFF ANSWER SHEET only, attached to the question paper, as per the instructions contained therein.
Introduction to Problem Solving And Programming In C. Ritchie first developed this language in 1972. It is a structured language that is widely used in the software development field. For every software developer, it is important to know the C language. This language can handle low-level activities and can be compiled easily.
Problem Solving Using C. : Yuksel Uckan. Irwin, 1995 - Application software - 773 pages. An introduction to basic programming, which includes coverage of modular programming, looping, iteration, data types, and other topics. Intended for students of computer science and mathematics, the book aims to offer them experience in writing increasingly ...
A C++ program consists of one or more modules, called functions, one of which must be called. main() All C++ statements must be terminated by a semicolon. Data types include int, float, bool, char. cout object can be used to display data. cout object requires the preprocessor command #include <iostream>.
C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs.