Giter VIP home page Giter VIP logo

pps1's Introduction

Complete Code Solution for Programming For Problem Solving I

KPGU University Subject: PROGRAMMING FOR PROBLEM SOLVING-I (21GS2118)

Note: Click on Module Number to view Code Solution :)

Module 1 Operators and Evaluation Of Expresssions

  1. Write a program that works as a calculator (addition,multiplication,division,subtraction)
  2. Write a program to find the area of triangle.
  3. Write a program to calculate simple interest.
  4. Write a C program to interchange two numbers with and without using third variable.
  5. Write a program to display the size of every data type using "sizeof" operator.
  6. Write a C program to enter a distance in to kilometer and convert it in to meter,feet,inches and centimeter.
  7. Write a program to compute Fahrenheit from centigrade.
  8. Write a program to illustrate the use of unary prefix and postfix increment and decrement operator.

Module 2 Decision Making

  1. Write a C program to find that the accepted number is negative or positive or zero.
  2. Write a program to read marks of a student from keyboard whether the student is pass or fail.
  3. A. Write a program to read three numbers from the keyboard and find out the maximum out of these three.(Nested if else) B. Write a C program to check whether the entered character is capital, small letter, digit or any special character.
  4. Write a program to read marks from the keyboard and your program should display equivalent grade according to following table(if else ladder) Marks Grade 100-80 : Distinction, 79-60 : First Class, 59-40 : Second Class, < 40 : Fail.
  5. Write a C program to prepare payslips using the following data. Da=10% of basic, Hra=7.50% of basic, Ma= 300, Pf= 12.50% of Basic. Gross = basic + Da + Hra + Ma, Nt = Gross - Pf.
  6. Write a C program to read no 1 to 7 and print relatively day Sunday to Saturday.
  7. Write a C program to find out the Maximum and Minimum number from given 10 numbers.
  8. Write a C program to input an integer number and check if the last digit of the number is even or odd.

Module 3 Looping

  1. Write a C program to find the factorial of a given number.
  2. Write a program to reverse a number.
  3. Write a program to generate first n number of Fibonacci Series.
  4. Write a program to find out the last sum of the first and last digit of a given number.
  5. Write a C Program to find the sum and average of different numbers which are accepted by user as many as user wants.
  6. Write a program to check whether the given number is prime or not.
  7. Write a program to evaluate the series 1^2 + 2^2 + 3^2 + ... + n^2
  8. Write a C program to find 1 + 1/2 + 1/3 + 1/4 + ... + 1/n
  9. Write a program to print patterns.
  10. Write a program to print patterns.

Module 4 Arrays and Strings

  1. Write a C program to read and store the roll no and marks of 20 students using an array.
  2. Write a program to find out which number is even or odd from list of 10 numbers using array
  3. Write a program to find the maximum element from a one- Dimensional array.
  4. Write a Program to Search an element in array.
  5. Write a Program to perform addition of all elements in Array.
  6. Write a Program to reverse the array elements in C Programming.
  7. Write a Program for deletion of an element from the specified location from Array.
  8. Write a program to find a character from a given string.
  9. Write a program to replace a character in a given string.
  10. Write a program to delete a character in a given string.
  11. Write a program to reverse string.
  12. Write a program to convert string into upper case.

Module 5 Functions

  1. Write a program that defines a function to add first n numbers.
  2. Write a function in the program to return 1 if number is prime otherwise return 0
  3. Write a function Exchange to interchange the values of two variables, say x and y illustrates the use of this function in a calling function.
  4. Write a C program to check whether a number is prime, Armstrong or perfect number using functions.
  5. Write a program to find the factorial of a number using recursion.
  6. Write a program to calculate sum of first 20 natural numbers using recursive function.
  7. Write a program to generate Fibonacci series using recursive function.
  8. Write a program to find sum of digits of the number using Recursive Function.
  9. Write a function that will scan a character string passed as an argument and convert all lowercase character into their uppercase equivalents.

Module 6 Pointers

  1. Write a program to print the address of a variable using a pointer.
  2. Write a C program to swap the two values using pointers.
  3. Write a C program to print the address of a character and the character of string using a pointer.
  4. Write a program to add two numbers using pointers.
  5. Write a program to input and print array elements using pointer.
  6. Write a program to copy one array to another using pointer.
  7. Write a program to swap two arrays using pointers.
  8. Write a program to access elements using a pointer.
  9. Write a program for sorting using a pointer.

Module 7 Structures

  1. Write a program to read structure elements from the keyboard.
  2. Design a structure student_record to contain name, branch and total marks obtained. Develop a program to read data for 10 students in a class and print them.
  3. Write a program to add two distances in feet and inches using Structure.
  4. Write a program to read and print an Employee‟s Details using Structure.
  5. Write a program to declare, initialize an UNION.

Module 8 File Handling in C

  1. Write a program to write a string in file.
  2. A file named data contains a series of integer numbers. Write a c program to read all numbers from a file and then write all odd numbers into a file named “odd” and write all even numbers into a file named “even”. Display all the contents of these file on screen.
  3. C Program to count number of lines in a file.
  4. C Program to print contents of file.
  5. C Program to copy contents of one file to another file.
  6. C Program to merge contents of two files into a third file.

Module 9 Graphics Functions

  1. Write a Program to draw a point, arc, line, and circle.
  2. Write a Program to draw a rectangles and polygons.
  3. Write a Program to fill polygons.

Module 10 OEP

  1. Number Guessing Game ( MINI PROJECT )

Made with ❤️ by Jainam Panchal

pps1's People

Contributors

jainam-panchal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.