Sie sind auf Seite 1von 2

1. Write a simple program to check whether a number is even or not.

2. A browsing center wants to calculate the cost of browsing done by its customers. Write a
program to caclcualte this cost which is based on the time taken for browsing
3. Write a C program to check whether the enter character is a vowel/consonant/symbol or digit
4. Write a C program to check two numbers are amicable or not. Two numbers are amicable if the
sum of the proper divisors of each is equal to the other number, Example of amicable pair
numbers are: 220 and 284. The divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110, of
whose sum is 284; and the proper divisors of 284 are 1, 2, 4, 71 and 142, of whose sum is 220. so
220 & 284 amicable pair numbers
5. Write C program to find the sum of digits a number and reverse that sum.
6. Write a C program to calculate the HCF and LCM of two numbers
7. Generate and print Armstrong numbers in a range
8. Generate a calendar for the given month and year.
9. Write a C Program to print pascal’s triangle
10. Binary conversion means converting a decimal integer n to a t base binary (base = 2). Write a C
program for this base conversion using array
11. Saddle point of a matrix is a matrix element which is minimum of row ‘i’ and maximum of
column ‘j’ For example Let 1 2 3;4 5 6;7 8 9 be a 3*3 matrix, the then 7 is the saddle point
12. Write a C program to implement matrix multiplication
13. Celsius to Fahrenheit conversion and vice versa using functions
14. Write a C program to implement exponential series using function
15. Write a C program that uses functions to perform the following operations using Structure:
Reading and addition of two complex numbers
16. Write the function bool isPrime (int n) that takes an int type input parameter n and calculate and
return the Boolean value whether n is a prime or not.

17. Write a C program that prompts for principal and rate from the user. Then calculate and display
the accumulated amount for every year. Test your program with input principal of 100000,
150000, and rates6% (= 0.06), and 8%
18. Write a C function to read a string input, a key k, 1 <= k <= 26 and then encrypt that. The string
can consist of upper case and lower case characters. Both upper case and lower case characters
will be shifted and then wrapped around. The string can contain special characters such as ‘ ‘
(space), ‘,’ (comma), ‘.’ (period) etc., and your code will not shift the special characters.
Write a C program to decipher a string encrypted by the encryption program from step 1.
19. Write a function double quadratic (double x) that computes function f(x) with x as the only input
parameter and returns f(x) = ax2 + bx + c with a = 1.0, b = 2.0, and c = 1.0
Write a C program to check whether a string is Palindrome or Not
20. Credit card number can also be thought of as a string of 16 digit characters. Write C program to
verify a credit card without using string manipulation function
21. Write a program that reads first name, middle name and sur name from user. Concatenate these
three to form a main string. Display the achromatic string of the main string. (Achromatic string
is a string made by taking first letter of each word in main string for eg: “Ante Meridiem(AM)”)
22. Write a program which takes names of five countries as input and prints them in Alphabetical
order
23. Write a Findndex () function which takes two arguments. One argument is subject name and
second is pattern string. The function searches for the pattern in the subject name and returns the
position/index of the start of the string where match found. The function returns -1 if the pattern
is not found. Use pointers.
24. Utilize pointer notation to calculate the average of a list of floating point numbers and the
deviations about the average.(d-xi-avg)
25. Using pointers ,read an array of integers and print the elements in reverse order
26. Using pointers ,add two matrices and print the result in a table
27. Read an array of names and sort the names in ascending order. See whether there are any
identical names. Use pointers
28. Define a structure ‘Product’ with members name, id and price. Get the details of ‘n’ items from
the user and write C functions to search for a particular product by its name or number
29. Generate a result table which consists of student id, student name, marks of three subject and
total marks. Write a program which takes input for ten students and displays result table. Also
display student information separately who got the highest total. USE STUCTURES.
30. Write a C program to add, delete and modify the employee details using Array of structures
31. Store information of N person’s information that includes name and age. But criteria is for the
child age should be in form of full birth date, for an adult the age should be in years only, while
for aged person store age indicating the status ‘O’. Use union for memory efficiency.
32. Read N integers from user and store it in two files name ‘ODD’ and ‘EVEN’. Read the files
again and find the averages of even and odd numbers separately.
33. Write a C program to reverse the first n characters in a file
34. Create a file that stores the details that include register number, name and marks of “N’ students
in a college. Implement random access by printing alternate register numbers from the file. Or

Das könnte Ihnen auch gefallen