Skip to main content

Programming for Problem SolvingList of Experiment

1. Write a program to that performs as calculator ( addition, multiplication, division, subtraction).


2. Write a program to find area of triangle(a=h*b*.5) a = area h = height b = base 


3. Write 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 


4. Write a C program to interchange two numbers.

 
5. Write a C program to enter a distance in to kilometre and convert it in to meter, feet, inches and centimetre.



6. Write a program to compute Fahrenheit from centigrade (f=1.8*c +32) 

7. Write a C program to find out distance travelled by the equation  d = ut + at^2 


8. Write a C program to find that the accepted number is Negative, or Positive or Zero. 


9. Write a program to read marks of a student from keyboard whether the student is pass or fail( using if else)


10. Write a program to read three numbers from keyboard and find out maximum out of these three. (nested if else) 


11. Write a C program to check whether the entered character is capital, small letter, digit or any special character. 


12. Write a program to read marks from 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

13. Write 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. 


14. Write a C program to read no 1 to 7 and print relatively day Sunday to Saturday. 


15. Write a C program to find out the Maximum and Minimum number from given 10 numbers 


16. Write a C program to input an integer number and check the last digit of number is even or odd. 


17. Write a C program to find factorial of a given number. 



18. Write a program to reverse a number. 


19. Write a program to generate first n number of Fibonacci series 


20. Write a program to find out sum of first and last digit of a given number. 


21. Write a C program to find the sum and average of different numbers which are accepted by user as many as user wants 


22. Write a program to calculate  average and total of 5 students for 3 subjects (use nested for loops) 


23. Read five persons height and weight and count the  number of person having height greater than 170 and weight less than 50, 


24. Write a program to check whether the given number is prime or not. 


25. Write a program to evaluate the series 1^2+2^2+3^2+……+n^2 

26. Write a C program to find 1+1/2+1/3+1/4+....+1/n. 


27. Write a C program to find 1+1/2!+1/3!+1/4!+.....+1/n!. 




28. Write a program to evaluate the series sum=1-x+x^2/2!-x^3/3!+x^4/4!......-x^9/9! 


29. Write a program to print following patterns :  

i       *                          ii           *                  iii   *****           
        * *                                  *  *                       ****           
        * * *                             *  *  *                       ***           
        * * * *                        *  *  *  *                       **           
        * * * * *                   *  *  *  *  *                       * 


30. Write a program to print following patterns : 

 i        1                   ii 12345                     iii 55555            iv  1           
          12                    1234                          4444                  22            
          123                  123                            333                    333           
          1234                12                              22                      4444 
          12345              1                                1                        55555 


31. Write a program to print following patterns:   
i AAAAA                     ii ABCDE   
  BBBB                         ABCD   
  CCC                           ABC   
  DD                             AB   
  E                                A 


32. Write a C program to read and store the roll no and marks of 20 students using array.

 
33. Write a program to find out which number is even or odd from list of 10 numbers using array 


34. Write a program to find maximum element from 1-Dimensional array. 


35. Write a C program to calculate the average, geometric and harmonic mean of n elements in an array. 


36. Write a program to sort given array in ascending order (Use Insertion sort, Bubble sort, Selection sort, Mergesort, Quicksort, Heapsort). 


37. Write a program to find a character from given string.

 
38. Write a program to replace a character in given string. 


39. Write a program to delete a character in given string. 


40. Write a program to reverse string. 


41. Write a program to convert string into upper case 


42. Write a program that defines a function to add first n numbers. 


43. Write a function in the  program to return 1 if number is prime otherwise return 0 


44. Write a function Exchange to interchange the values of two variables, say x and y. illustrate the use of this function in a calling function. 


45. Write a C program to use recursive calls to evaluate F(x) = x – x3 / 3! + x5 / 5 ! – x7 / 7! + … xn/ n!. 



46. Write a program to find factorial of a number using recursion. 



47. Write a C program using global variable, static variable. 


48. Write a function that will scan a character string passed as an argument and convert all lowercase character into their uppercase equivalents 


49. Write a program to read structure elements from keyboard.

 
50. Define 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.

 
51. Define 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 


52. Define 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. 


53. 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. 


54. Write a program to print address of variable using pointer. 


55. Write a C program to swap the two values using pointers. 


56. Write a C program to print the address of character and the character of string using pointer. 


57. Write a program to access elements using pointer. 


58. Write a program for sorting using pointer. 


59. Write a program to write a string in file 


60. A 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 

Comments

Contact Form

Name

Email *

Message *

Popular posts from this blog

Microsoft SQL Server 2019 Serial Key For All Edition

  Microsoft SQL Server 2019 Enterprise Edition HMWJ3-KY3J2-NMVD7-KG4JR-X2G8G Microsoft SQL Server 2019 Enterprise Core Edition 2C9JR-K3RNG-QD4M4-JQ2HR-8468J Microsoft SQL Server 2019 Standard Edition PMBDC-FXVM3-T777P-N4FY8-PKFF4 SQL Server2019 key   SQL Server 2019 Enterprise:HMWJ3-KY3J2-NMVD7-KG4JR-X2G8G Strandard:PMBDC-FXVM3-T777P-N4FY8-PKFF4 SQL Server 2017 Enterprise:TDKQD-PKV44-PJT4N-TCJG2-3YJ6B Enterprise Core:6GPYM-VHN83-PHDM2-Q9T2R-KBV83 Strandard:PHDV4-3VJWD-N7JVP-FGPKY-XBV89 Web:WV79P-7K6YG-T7QFN-M3WHF-37BXC SQL Server 2016 Enterprise:MDCJV-3YX8N-WG89M-KV443-G8249 Enterprise Core:TBR8B-BXC4Y-298NV-PYTBY-G3BCP Standard:B9GQY-GBG4J-282NY-QRG4X-KQBCR Web:BXJTY-X3GNH-WHTHG-8V3XK-T8243 SQL Server 2014 Business Intelligence:GJPF4-7PTW4-BB9JH-BVP6M-WFTMJ Developer:82YJF-9RP6B-YQV9M-VXQFR-YJBGX Enterprise:27HMJ-GH7P9-X2TTB-WPHQC-RG79R Enterprise Core:TJYBJ-8YGH6-QK2JJ-M9DFB-D7M9D Strandard:P7FRV-Y6X6Y-Y8C6Q-TB4QR-DMTTK Web:J9MBB-R8PMP-R8WTW-8JJRD-C6GGW

VS CODE PRODUCT KEY

Visul Studio 2013 Ultimate Key BWG7X-J98B3-W34RT-33B3R-JVYW9 https://www.microsoft.com/en-us/download/details.aspx?id=55992 https://go.microsoft.com/fwlink/?linkid=841310 https://www.microsoft.com/en-us/download/details.aspx?id=35747 https://downloads.i-theses.com/?task=downloads&groupid=9&id=110 Product Year Version Product Keys Visual Studio 2022 2022 Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J Visual Studio 2020 2020 HG8FD-DR6F8-T7G9Y-H80UI-9NUB8 YV7T8-R6C8R-C6VT9-7GBHY-80NUJ T6RX5-EZXCR-6VT7B-Y80NU-HBGVF CDX5X-7E5CR-86VT7-9BY9V-7TC8R Visual Studio 2019 2019 16.x Professional: NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y Enterprise: BF8Y8-GN2QH-T84XB-QVY3B-RC4DF Visual Studio 2017 2017 15.x Test Professional: VG622-NKFP4-GTWPH-XB2JJ-JFHVF Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH 4F3PR-NFKDB-8HFP7-9WXGY-K77T7 Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF N2VYX-9VR2K-T733M-MWD9X-KQCDF Visual Studio 2015 2015 14.x Profession
   (MI) – PRACTICAL LIST 1 Write an 8085 assembly language program for exchanging two 8-bit numbers stored in memory locations 2050h and 2051h. 2 Write an 8085 assembly language program to add two 8-bit numbers stored in memory locations 2050h and 2051h. Store result in location 2052h 3 Write an 8085 assembly language program to subtract two 8-bit numbers stored in memory location 2050h from 2051h.Store result in location 2052h. 4 Write an 8085 assembly language program to add two 16-bit numbers stored in memory. 5 Write an 8085 assembly language program to add two decimal numbers using DAA instruction. 6 Write an 8085 assembly language program to find the minimum from two 8-bit numbers. 7 Write an 8085 assembly language program to get the minimum from block of N 8-bit numbers. 8 Write an 8085 assembly language program to add block of 8-bit numbers. 9 Write an 8085 assembly language program to copy block of five numbers starting from memory location 2001h to location starting from 3001