Learnprogramo Logo

Problem Solving Through Programming in C

In this lesson, we are going to learn Problem Solving Through Programming in C. This is the first lesson while we start learning the C language.

So let’s start learning the C language.

Table of Contents

Introduction to Problem Solving Through Programming in C

Regardless of the area of the study, computer science is all about solving problems with computers. The problem that we want to solve can come from any real-world problem or perhaps even from the abstract world. We need to have a standard systematic approach to problem solving through programming in c.

computer programmers are problem solvers. In order to solve a problem on a computer, we must know how to represent the information describing the problem and determine the steps to transform the information from one representation into another.

In this chapter, we will learn problem-solving and steps in problem-solving, basic tools for designing solution as an algorithm, flowchart , pseudo code etc.

A computer is a very powerful and versatile machine capable of performing a multitude of different tasks, yet it has no intelligence or thinking power.

The Computer performs many tasks exactly in the same manner as it is told to do. This places responsibility on the user to instruct the computer in a correct and precise manner so that the machine is able to perform the required job in a proper way. A wrong or ambiguous instruction may sometimes prove dangerous.

The computer cannot solve the problem on its own, one has to provide step by step solutions of the problem to the computer. In fact, the task of problem-solving is not that of the computer.

It is the programmer who has to write down the solution to the problem in terms of simple operations which the computer can understand and execute.

Problem-solving is a sequential process of analyzing information related to a given situation and generating appropriate response options.

In order to solve a problem with the computer, one has to pass through certain stages or steps. They are as follows:

Steps to Solve a Problem With the Computer

problem solving through programming in c

Step 1: Understanding the Problem:

Here we try to understand the problem to be solved in totally. Before with the next stage or step, we should be absolutely sure about the objectives of the given problem.

Step 2: Analyzing the Problem:

After understanding thoroughly the problem to be solved, we look at different ways of solving the problem and evaluate each of these methods.

The idea here is to search for an appropriate solution to the problem under consideration. The end result of this stage is a broad overview of the sequence of operations that are to be carried out to solve the given problem.

Step 3: Developing the solution:

Here, the overview of the sequence of operations that was the result of the analysis stage is expanded to form a detailed step by step solution to the problem under consideration.

Step 4: Coding and Implementation:

The last stage of problem-solving is the conversion of the detailed sequence of operations into a language that the computer can understand. Here, each step is converted to its equivalent instruction or instructions in the computer language that has been chosen for the implantation.

The vehicle for the computer solution to a problem is a set of explicit and unambiguous instructions expressed in a programming language. This set of instruction is called a program with problem solving through programming in C .

A program may also be thought of as an algorithm expressed in a programming language. an algorithm, therefore, corresponds to a solution to a problem that is independent of any programming language .

To obtain the computer solution to a problem once we have the program we usually have to supply the program with input or data. The program then takes this input and manipulates it according to its instructions. Eventually produces an output which represents the computer solution to the problem.

The problem solving is a skill and there are no universal approaches one can take to solving problems. Basically one must explore possible avenues to a solution one by one until she/he comes across the right path to a solution.

In general, as one gains experience in solving problems, one develops one’s own techniques and strategies, though they are often intangible. Problem-solving skills are recognized as an integral component of computer programming.

Note: Practice C Programs for problem solving through programming in C.

Problem Solving Steps

Problem-solving is a creative process which defines systematization and mechanization. There are a number of steps that can be taken to raise the level of one’s performance in problem-solving.

A problem-solving technique follows certain steps in finding the solution to a problem. Let us look into the steps one by one:

1. Problem Definition Phase:

The success in solving any problem is possible only after the problem has been fully understood. That is, we cannot hope to solve a problem, which we do not understand. So, the problem understanding is the first step towards the solution of the problem.

In the problem definition phase, we must emphasize what must be done rather than how is it to be done. That is, we try to extract the precisely defined set of tasks from the problem statement.

Inexperienced problem solvers too often gallop ahead with the task of the problem – solving only to find that they are either solving the wrong problem or solving the wrong problem or solving just one particular problem.

2. Getting Started on a Problem:

There are many ways of solving a problem and there may be several solutions. So, it is difficult to recognize immediately which path could be more productive. Problem solving through programming in C.

Sometimes you do not have any idea where to begin solving a problem, even if the problem has been defined. Such block sometimes occurs because you are overly concerned with the details of the implementation even before you have completely understood or worked out a solution.

The best advice is not to get concerned with the details. Those can come later when the intricacies of the problem have been understood.

3. Use of Specific Examples:

To get started on a problem, we can make use of heuristics i.e the rule of thumb. This approach will allow us to start on the problem by picking a specific problem we wish to solve and try to work out the mechanism that will allow solving this particular problem.

It is usually much easier to work out the details of a solution to a specific problem because the relationship between the mechanism and the problem is more clearly defined.

This approach of focusing on a particular problem can give us the foothold we need for making a start on the solution to the general problem.

4. Similarities Among Problems:

One way to make a start is by considering a specific example. Another approach is to bring the experience to bear on the current problems. So, it is important to see if there are any similarities between the current problem and the past problems which we have solved.

The more experience one has the more tools and techniques one can bring to bear in tackling the given problem. But sometimes, it blocks us from discovering a desirable or better solution to the problem.

A skill that is important to try to develop in problem-solving is the ability to view a problem from a variety of angles.

One must be able to metaphorically turn a problem upside down, inside out, sideways, backwards, forwards and so on. Once one has developed this skill it should be possible to get started on any problem.

5. Working Backwards from the Solution:

In some cases, we can assume that we already have the solution to the problem and then try to work backwards to the starting point. Even a guess at the solution to the problem may be enough to give us a foothold to start on the problem.

We can systematize the investigations and avoid duplicate efforts by writing down the various steps taken and explorations made.

Another practice that helps to develop the problem-solving skills, once we have solved a problem, to consciously reflect back on the way we went about discovering the solution.

General Problem Solving Strategies:

problem solving through programming in c

There are a number of general and powerful computational strategies that are repeatedly used in various guises in computer science.

Often it is possible to phrase a problem in terms of one of these strategies and achieve considerable gains in computational efficiency.

1. Divide and Conquer:

The most widely known and used strategy, where the basic idea is to break down the original problem into two or more sub-problems, which is presumably easier or more efficient to solve.

The Splitting can be carried on further so that eventually we have many sub-problems, so small that further splitting is no necessary to solve them. We shall see many examples of this strategy and discuss the gain in efficiency due to its application.

2. Binary Doubling:

This is the reverse of the divide and conquers strategy i.e build-up the solution for a larger problem from solutions and smaller sub-problems.

3. Dynamic Programming:

Another general strategy for problem-solving which is useful when we can build-up the solution as a sequence of the intermediate steps. Problem Solving through programming in C.

The travelling salesman problem falls into this category. The idea here is that a good or optimal solution to a problem can be built-up from good or optimal solutions of the sub-problems.

4. General Search, Back Tracking and Branch-and-Bound:

All of these are variants of the basic dynamic programming strategy but are equally important.

Share This Story, Choose Your Platform!

Related posts.

What is Preprocessor in C

What is Preprocessor in C

What is File Handling in C

What is File Handling in C

Structures and Unions in C

Structures and Unions in C

NPTEL

  • Announcements
  • Explore Courses

Problem solving through Programming In C

  • BE/BTech  in all disciplines
  • BCA/MCA/M. Sc
  • All IT Industries

65741 students have enrolled already!!

problem solving through programming in c assignment 1

In association with

problem solving through programming in c assignment 1

  • Amazon Quiz
  • Flipkart Quiz
  • Play & Win 50,000 Coins
  • Privacy Policy

NPTEL Problem Solving Through Programming In C ASSIGNMENT 1 Answers 2022

  • July 15, 2022 July 15, 2022

NPTEL Problem Solving Through Programming In C ASSIGNMENT 1 Answers 2022

NPTEL Problem Solving Through Programming In C Assignment 1 Answers :- Hello students in this article we are going to share NPTEL Problem Solving Through Programming In C assignment week 1 answers. All the Answers provided below to help the students as a reference, You must submit your assignment at your own knowledge.

About Problem Solving Through Programming In C Course:-

Problem Solving Through Programming In C, a buzz word today has attracted the attention of students, professionals and entrepreneurs all over the world.  Employability, being the major concern today, every individual aims at getting coveted jobs.  Employability today is commensurate with proving multiple Skills in varied situations in a fast changing world.  Hence, everyone aspiring for jobs today has to prove one’s mettle in various situations where one requires to be armed with different Skills, which, collectively come under Problem Solving Through Programming In C.  One may be armed with good competence of one’s subject but one cannot compete with his peer groups unless one has the potential of performance.

Criteria to get Certificate:-

This course is a week 12 course the best of 8 out 12 assignments marks will be calculated for final result.

Below are mentioned criteria for final result

Average assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course. Exam score = 75% of the proctored certification exam score out of 100 Final score = Average assignment score + Exam score YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find NPTEL Problem Solving Through Programming In C Assignment 1 Answers

NPTEL Problem Solving Through Programming In C Assignment 1 Answers 2022:-

Q1. The input given from keyboard is converted to computer understandable unit (bit) by the standard

Q2. The execution nature of C program is

Q3. Choose the correct statements from the following i) In high-level language, testing and debugging a program is difficult than assembly language. ii) C programs are highly portable on any type of operating system platform. iii) A flowchart is a visual representation of the sequence of steps for solving a problem. iv) The role of a compiler is to translate source program statements to decimal codes.

Q4. When we write X=Y in C, which of the following statements is valid?

Q5. What will be the output for the flowchart

Next Week Assignment Answers

quizxp telegram

Q6. The output of the following algorithm?

Q7. The print value of a and b of the flow chart.

Q8. The program which translates high level program into its equivalent machine language program is called

Q9. An interpreter reads the source code of a program

Q10. The C language has been developed at

For Internship and job updates:- Visit

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at  [email protected]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

x

swayam-logo

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.

problem solving through programming in c assignment 1

Prof. Anupam Basu

Course certificate.

problem solving through programming in c assignment 1

DOWNLOAD APP

problem solving through programming in c assignment 1

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

IMAGES

  1. NPTEL Problem Solving Through Programming In C Assignment 1 Answers

    problem solving through programming in c assignment 1

  2. NPTEL Problem Solving Through Programming In C Assignment 1 Answers

    problem solving through programming in c assignment 1

  3. Problem Solving Through Programming in C

    problem solving through programming in c assignment 1

  4. Problem Solving Through Programming in C

    problem solving through programming in c assignment 1

  5. Problem Solving Through Programming in C

    problem solving through programming in c assignment 1

  6. nptel Problem solving through Programming In C Week 6 assignment

    problem solving through programming in c assignment 1

VIDEO

  1. NPTEL WEEK 11

  2. Problem Solving and Python Programming| Unit-I| GE3151|PSPP

  3. NPTEL Problem solving through Programming In C WEEK 5 Programming Assignment Solutions

  4. NPTEL Problem Solving Through Programming In C Week-2 Quiz Assignment Solution

  5. Exercise 1: How to solve coding problems

  6. PPS16:Programming For Problem Solving|C for Beginners|Errors in C Program|Average of 5 sub mark

COMMENTS

  1. Problem Solving Through Programming In C

    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.

  2. PDF Assignment 1

    English language is translated into the programming languages to be worked on. d) Pseudo code is another name of programming. Whereas in flowchart is diagrammatic representation of

  3. Problem solving through Programming In C

    This course is aimed at enabling the students toFormulate simple algorithms for arithmetic and logical problems.Translate the algorithms to programs (in C la...

  4. NPTEL :: Computer Science and Engineering

    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.

  5. Problem Solving Through Programming in C

    Introduction to Problem Solving Through Programming in C. Problem Solving Through Programming in C. Steps to Solve a Problem With the Computer. Step 1: Understanding the Problem: Step 2: Analyzing the Problem: Step 3: Developing the solution: Step 4: Coding and Implementation: Problem Solving Steps. 1.

  6. Problem Solving Through Programming In C

    Week 1 :Introduction to Problem Solving through programs, Flowcharts/Pseudo codes, the compilation process, ... Start your review of Problem Solving Through Programming In C. AYUSH JAISWAL. 3 years ago. Can be explained in a better way and slides could have been provided as study materials. Better to add some more examples for students to ...

  7. NOC

    Course abstract. 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 • decompose a ...

  8. Problem Solving Through Programming In C || Week 1 || Assignment 1

    Problem Solving Through Programming In C || Week 1 || Assignment 1 Solution || NPTEL Swayam || JAN24

  9. Problem Solving Through Programming In C

    Learners enrolled: 41778. 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.

  10. Problem Solving Through Programming In C Week 1 Assignment ...

    📌Join this channel to get access to perks:https://www.youtube.com/channel/UCvvEUpqB1AWPB51lW7BhzfQ/joinYour Query:Problem Solving Through Programming In CPr...

  11. Problem Solving Through Programming In C

    The Assignment -1 & 2 of Week - 1 & 2 Solution for the course "Problem Solving Through Programming In C " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum.

  12. PDF 03/07/2020 Problem solving through Programming In C

    Week 1 Week 2 Week 3 Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Week 11 Week 12 Due on 2020-04-22, 23:59 IST. 1) 1 p o i n t Assignment 12 The due date for submitting this assignment has passed. As per our records you have not submitted this assignment. Which of the following are themselves a collection of dif ferent data types? a ...

  13. Problem solving through Programming In C

    Problem solving through Programming In C. 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 ...

  14. NPTEL Problem Solving Through Programming In C Week-1 Quiz Assignment

    🔊NPTEL Problem Solving Through Programming In C Week1 Quiz Assignment Solution | IIT Kharagpur | GATE NPTEL⛳ABOUT THE COURSE :This course is aimed at enabli...

  15. NPTEL Problem Solving Through Programming In C ASSIGNMENT 1 ...

    Q3. Choose the correct statements from the following. i) In high-level language, testing and debugging a program is difficult than assembly language. ii) C programs are highly portable on any type of operating system platform. iii) A flowchart is a visual representation of the sequence of steps for solving a problem.

  16. Problem solving through Programming In C

    Problem solving through Programming In C - Week 1 assignment is live now!! Dear Learners, The assignment for Week 1 for the course Problem solving through Programming In C is made available early for viewing to get an idea about the assignments but the actual start date of the course remains unchanged.

  17. Problem Solving Through Programming In C

    Course layout. Week 1 : Introduction to Problem Solving through programs, Flowcharts/Pseudo codes, the compilation process, Syntax and Semantic errors, Variables and Data Types Week 2 : Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional BranchingWeek 3 : Conditional Branching and Iterative LoopsWeek ...

  18. NPTEL Week 1 Assignment: Problem Solving Through Programming In C July

    Welcome to NPTEL Week 1 Assignment: Problem Solving Through Programming In C July 2023! In this video, we will dive into the first week of the NPTEL course o...

  19. PDF Week-11 Program-01

    03/07/2020 Problem solving through Programming In C - Course https://onlinecourses.nptel.ac.in/noc20_cs06/progassignment?name=169 2/3 Week 11 Week 12

  20. Problem solving through Programming In C

    Problem solving through Programming In C - NPTEL || WEEK 1 QUIZ ASSIGNMENT SOLUTION 2024 ||Your Queries : problem solving through programming in cnptel probl...

  21. PDF Week-07 Program-02

    03/07/2020 Problem solving through Programming In C - Course ... The due date for submitting this assignment has passed. As per our records you have not submitted this assignment. Sample solutions (Provided by instructor) Week 8 Week 9 Week 10 Array and Strings (unit? unit=8&lesson=46) Lecture 33 :

  22. problem solving through programming in c || Week -1 || Nptel assignment

    problem solving through programming in c || Week -1 || Nptel assignment detailed answers 2023 julynptel problem solving through programming in c assignment d...