0% found this document useful (0 votes)
11 views3 pages

Additional Problem Set

The document outlines a series of programming tasks primarily focused on C language, including reversing digits, calculating sums, checking for prime numbers, and various conversions between number systems. It also includes tasks related to string manipulation, matrix operations, and the implementation of structures for an inventory system. Additionally, it emphasizes the creation of a strong password validation program.

Uploaded by

sheikhti1205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Additional Problem Set

The document outlines a series of programming tasks primarily focused on C language, including reversing digits, calculating sums, checking for prime numbers, and various conversions between number systems. It also includes tasks related to string manipulation, matrix operations, and the implementation of structures for an inventory system. Additionally, it emphasizes the creation of a strong password validation program.

Uploaded by

sheikhti1205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Given a number, write a program using for loop to reverse the digits of the
number. For example, the number 72345 should be written as 54327.
2. Write a C program to compute the sum of the digits of a given integer.
3. Write a C program to check whether a number is a Prime number or not.
4. Write a C program to print all Prime numbers between I to N. Where N is a
positive integer.
5. Write a C program to print the Fibonacci series up to n terms.
6. Write a C program to convert Binary to Octal number system.
7. Write a C program to convert Decimal to Hexadecimal number system.
8. Write a C program to convert Decimal to Binary number system.
9. Write a C program to print the following patterns using for loop.
10. Write a C program to find the GCD of two positive integers.
11. Write a c program to find out the sum of a given series.
12. Write a C program to find out the largest element of an array.
13. Write a C program to sort the given data in ascending order.
14. Write a C program to find the LCM of two positive integers.
15. Write a C program to find out the smallest element of an array.
16. Write a C program to find out the sum of diagonal elements of a matrix.
17. Write a C program to find the specific element from an array.
18. Write a C program to convert binary number to hexadecimal number.
19. Write a C program to count the frequency of each element of an array.
20. Write a C program to check whether a number is ODD or EVER using bitwise
AND operator.
21. Write a C program to enter any string and check whether the string is
palindrome or not.
22. Write a C program to find the length of a string without using library function.
23. Write a C program to find the factorial of a number using recursion.

1|Page
24. Write a C program to convert Decimal to Binary number using recursion.
25. Write a C program to convert the string from upper case to lower case.
26. Write a C program for the concatenation of two strings without using library
function.
27. Write a C program to reverse a string without using library function.
28. Write a C program for the addition and multiplication of two matrices.
29. Write a C program to print Fibonacci series up to n terms using recursive
function.
30. Write a C program to sort the given data in ascending order where the array as
a function argument.
31. Write a C program to swap two numbers using macro.
32. Write a C program to swap two numbers using call by reference.
33. Write a C program to find the power of any number using recursion.
34. Write a C program to store information (name, roll and marks) of five students
using Structure.
35. Write a C program to find out the sum of a given series using recursive
function.
36. Write a C program to reverse a string using recursive function.
37. Write a C program to find the GCD (a, b) using recursive function. Where a
and b are positive integer.
38. Write a program that takes two words as input and checks if they are anagrams
of each other or not- An anagram is a word that is formed by rearranging the
letters of another word. You can assume the words will consist a maximum of
100 characters. For example, the words dusty and study are anagram.
39. Imagine developing an inventory system for a gift shop named ”Wishee'’ using
a C program. Create efficient structures for the system, where each item
encompasses the following information:
 stock ID (integer)
 price (float)

2|Page
 item type (integer)
 product information depending on the item type,
 t-shirt: brand (string), size (number), design (string)
 toy: brand (string), category (string), age limit (number)
 card: color (string), occasion (string), design (string)

With the upcoming New Year sales at ”Wishee," special discounts will be
available. Various offerings will apply to a customer’s total purchase,
including:
 If a user purchases any item that costs between $101 and $200, the
discount will be 5%.
 If a user purchases any item that costs between $201 and $400, the
discount will be 10%.
 If a user purchases any item that costs more than $400, the discount will
be 25%.
Now write a program that will take an array of structure items and show the
total price and the price after the discount.

40. A password is called STRONG if it holds all of the following properties:


 It has at least 8 characters.
 It contains at least one lower case letter, and at least one upper case letter.
 It does not contain any blank space.
Write a program that will take a password as input to a string and will print
a message indicating whether it is STRONG or WEAK

Sample input: Strange


Sample output: The password is WEAK

3|Page

You might also like