NPTEL Problem Solving Through Programming In C WEEK 7 Assignment 2023

NPTEL Problem Solving Through Programming In C WEEK 7 Assignment

NPTEL Problem solving through Programming In C Week 7 All Programming Assignment Solutions | Swayam January 2023. With the growth of Information and Communication Technology, there is a need to develop large and complex software.

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
  • 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
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 Branching
    • Week 3 : Conditional Branching and Iterative Loops
    • Week 4 : Arranging things : Arrays
    • Week 5 : 2-D arrays, Character Arrays and Strings 
    • Week 6 : Basic Algorithms including Numerical Algorithms
    • Week 7 : Functions and Parameter Passing by Value
    • Week 8 : Passing Arrays to Functions, Call by Reference
    • Week 9 : Recursion
    • Week 10 : Structures and Pointers
    • Week 11 : Self-Referential Structures and Introduction to Lists
    • Week 12 : Advanced Topics

Once again, thanks for your interest in our online courses and certification. Happy learning!

Course Name : “Problem Solving through Programming In C 2023

Question : 1 Write a C Program to Count Number of Uppercase and Lowercase Letters in a given string. The given string may be a word or a sentence.

Course Name : “Problem Solving through Programming In C 2023

Question : 2  Write a C program to find the sum of all elements of each row of a matrix.
Example:
For a matrix
 4 5 6
 6 7 3
 1 2 3

 The output will be
 15
 16
 6

Course Name : “Problem Solving through Programming In C 2023

Question : 3  Write a C program to find subtraction of two matrices i.e, matrix_A – matrix_B=matrix_C.

If the given martix are:
 2 3 5 and 1 5 2 Then the output will be 1 -2 3
 4 5 6        2 3 4                                          2 2 2
 6 5 7        3 3 4                                          3 2 3

Course Name : “Problem Solving through Programming In C 2023

Question : 4  Write a C program to print lower triangle of a square matrix.
For example the output of a given matrix
2 3 4 will be 2 0 0
5 6 7             5 6 0
4 5 6             4 5 6