Fibonacci series-sorting method-recursion method


1. Write a program to read 3 numbers x, y, z. Use conditional statement and calculate values of variables a, b and c. Execute the sum with 2 set of variable. Check the sum for equality and print the sum.

2. Write a program to shift input data by the 2 bits left and right.

3. Write a program to employ bitwise “&” operator between 2 integer and display result.

4. Write a program to input 6 numbers and discover the biggest and smallest using nested if.

5. Write a program to enter a year and find the number of:

i. Minutes

ii. Hours

iii. Days

iv. Months

v. Seconds

6. Write a program to find out the sum of even and odd numbers using switch, if, if.else, nested if between 1 and 20.

7. Write a program to find out the numbers between 1 and 100 that are not divisible by 2, 3 and 5.

8.  Write a program to enter the character (alphabetical) and display its position and its corresponding ASCII value.

9. Write a program to simulate the digital clock.

10. Write a program to find out the sum of its digits until the result is in single digit.

11. Write a program to print a series:

a. x – x3/3! + x5/5! – x7/7!...... xn/n!

b. 1 + x2/2! – x3/3! + x4/4!....... xn/n!

12. Write a program to generate following figures:

2017_progrmming.jpg

13. Write a program to find out factorial of a given number.

14. Write a program to find sum of the diagonal elements of matrices.

15. Write function to add, subtract, multiply and divide two complex numbers (x+iy) and (a+ib).

16. Write a program to find out roots of a quadratic equation with each condition.

17. Write a program to find out the numbers between 7 and 100 which is exactly divisible by 4 and is divisible by either 5 or 6.

18. Write a program to convert:

i. Binary to Decimal

ii. Decimal to Binary

iii. Binary to Hexadecimal

19. Write a program to perform Arithmetic operation on the array that is Addition, Subtraction, Multiplication and Division and store the result in another array.

20. Write a program to carry out following string operation: with string functions & without string functions

a. Reverse a string

b. Concatinate 2 string – strcat()

c. Compare 2 string – strcmp(), strcmpi()

21. Write a program to identify the occurrence of the number in a string.

22. Write a program to admit a string up to 15 character, and display the position of a character in a separate line.

23. Write a program to display and count number of vowels in a string.

24. Write a program to generate a palindrome.

25.  Write a program to add to pointer addresses of a pointer variable.

26. Write a program to find out factorial of a number using recursion.

27. Write a program to perform dissimilar arithmetic operations by using pointers

28. Write a program to get prime factors of any integer number by using functions i.e. 24 -> 2, 2, 2, & 3.

29.  Write a program to get the sum of 5 digit number:

a. Without using recursion

b. With using recursion.

30. Write a program to get Fibonacci series by using the recursion.

31. Write a program to display, create, modify and append a file (sequential file).

32. Write a program to copy the content of one file to any other.

33. Write a program to compute space in a file (number of blank spaces and not the file size).

34. Write a program to print out lines from a file that have 50 or more characters in them.

35. Write a program to remove the content from a file and print them. The user must be capable to specify the starting position from where the extraction must begin and the number of characters to be extracted.

36. Write a program to create a structure to admit Firstname, Middlename, Lastname of a person. Display the initials of first and the middle name separated by “.” i.e.

Input – Krishna Kumar Singh
Output – K.K. Singh

Now create a main structure that will hold name, age, salary of an employee.

37. Write a program to call sum() function recursively and carry out sum of 1 to 5 numbers. (Instead of using the sum() function use the main() function itself to perform the above operation)

38.  Write a program to find out larger of the two numbers using macro with arg.

39.  Write a program to count number of character, word and lines in a text file whose name is supplied in the command line.

40.  Write a program to arrange a list by using any sorting method.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Fibonacci series-sorting method-recursion method
Reference No:- TGS01643

Expected delivery within 24 Hours