Programming for Problem Solving (3110003)

Quick solution of practicals

Read More
Problem 01Write a program to that performs as calculator ( addition, multiplication, division, subtraction).
Read More
Problem 02Write a program to find area of triangle (a=h*b*.5) a = area h = height b = base
Read More
Problem 03Write a program to calculate simple interest (i = (p*r*n)/100 ) i = Simple interest p = Principal amount r = Rate of interest n = Number of years
Read More
Problem 04Write a C program to interchange two numbers
Read More
Problem 05Write a C program to enter a distance in to kilometre and convert it in to meter, feet, inches and centimetre
Read More
Problem 06Write a program to compute Fahrenheit from centigrade (f=1.8*c +32)
Read More
Problem 07Write a C program to find out distance travelled by the equation d = vt + at^2
Read More
Problem 08Write a C program to find that the accepted number is Negative, or Positive or Zero
Read More
Problem 09Write a program to read marks of a student from keyboard whether the student is pass or fail(using if else)
Read More
Problem 10Write a program to read three numbers from keyboard and find out maximum out of these three. (nested if else)
Read More
Problem 11Write a C program to check whether the entered character is capital, small letter, digit or any special character
Read More
Problem 12Write a program to read marks from keyboard and your program should display equivalent grade according to following table(if else ladder)
Read More
Problem 13Write a c program to prepare pay slip using 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.
Read More
Problem 14Write a C program to read no 1 to 7 and print relatively day Sunday to Saturday
Read More
Problem 15Write a C program to find out the Maximum and Minimum number from given 10 numbers
Read More
Problem 16Write a C program to input an integer number and check the last digit of number is even or odd.
Read More
Problem 17Write a C program to find factorial of a given number.
Read More
Problem 18Write a program to reverse a number
Read More
Problem 19Write a program to generate first n number of Fibonacci series.
Read More
Problem 20Write a program to find out sum of first and last digit of a given number
Read More
Problem 21Write a C program to find the sum and average of different numbers which are accepted by user as many as user wants
Read More
Problem 22Write a program to calculate average and total of 5 students for 3 subjects (use nested for loops)
Read More
Problem 23Read five persons height and weight and count the number of person having height greater than 170 and weight less than 50,
Read More
Problem 24Write a program to check whether the given number is prime or not.
Read More
Problem 25Write a program to evaluate the series 1^2+2^2+3^2+……+n^2
Read More
Problem 26Write a C program to find 1+1/2+1/3+1/4+....+1/n
Read More
Problem 27Write a C program to find 1+1/2!+1/3!+1/4!+.....+1/n!
Read More
Problem 28Write a program to evaluate the series sum=1-x+x^2/2!-x^3/3!+x^4/4!......-x^9/9!
Read More
Problem 29Write a program to print diffrent star patterns.
Read More
Problem 30Write a program to print diffrent number patterns.
Read More
Problem 31Write a program to print diffrent alphabet patterns.
Read More
Problem 32Write a C program to read and store the roll no and marks of 20 students using array.
Read More
Problem 33Write a program to find out which number is even or odd from list of 10 numbers using array
Read More
Problem 34Write a program to find maximum element from 1-Dimensional array.
Read More
Problem 35Write a C program to calculate the average, geometric and harmonic mean of n elements in an array.
Read More
Problem 36 Write a program to sort given array in ascending order (Use Insertion sort, Bubble sort, Selection sort, Mergesort, Quicksort, Heapsort).
Read More
Problem 37Write a program to find a character from given string.
Read More
Problem 38Write a program to replace a character in given string.
Read More
Problem 39Write a program to delete a character in given string.
Read More
Problem 40Write a program to reverse string.
Read More
Problem 41Write a program to convert string into upper case
Read More
Problem 42Write a program that defines a function to add first n numbers
Read More
Problem 43Write a function in the program to return 1 if number is prime otherwise return 0
Read More
Problem 44Write a function Exchange to interchange the values of two variables, say x and y. illustrate the use of this function in a calling function.
Read More
Problem 45Write a C program to use recursive calls to evaluate F(x) = x – x^ 3 / 3! + x^5 / 5 ! – x^ 7 / 7! + … x^n / n!.
Read More
Problem 46Write a program to find factorial of a number using recursion
Read More
Problem 47Write a C program using global variable, static variable
Read More
Problem 48Write a function that will scan a character string passed as an argument and convert all lowercase character into their uppercase equivalents
Read More
Problem 49Write a program to read structure elements from keyboard
Read More
Problem 50Define a structure type struct personal that would contain person name, date of joining and salary using this structure to read this information of 5 people and print the same on screen.
Read More
Problem 51Define structure data type called time_struct containing three member’s integer hour, integer minute and integer second. Develop a program that would assign values to the individual number and display the time in the following format: 16: 40:51.
Read More
Problem 52Define a structure called cricket that will describe the following information: ' Player name , Team name , Batting average ' Using cricket, declare an array player with 50 elements and write a C program to read the information about all the 50 players and print team wise list containing names of players with their batting average.
Read More
Problem 53Design 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.
Read More
Problem 54Write a program to print address of variable using pointer.
Read More
Problem 55Write a C program to swap the two values using pointers.
Read More
Problem 56Write a C program to print the address of character and the character of string using pointer
Read More
Problem 57Write a program to access elements using pointer.
Read More
Problem 58Write a program for sorting using pointer.
Read More
Problem 59Write a program to write a string in file.
Read More
Problem 60A file named data contains series of integer numbers. Write a c program to read all numbers from file and then write all odd numbers into file named “odd” and write all even numbers into file named “even”. Display all the contents of these file on screen
Read More
Problem-01Introduction to pointers. Call by Value and Call by reference.

© Copyright 2022. All right reserved, GTU Coder.