Posts

Collection Framework

 Linked List: 1. Write a   program to append the specified element to the end of a linked list.   2. Write a   program to iterate through all elements in a linked list.   3. Write a   program to iterate through all elements in a linked list starting at the specified position.   4. Write a   program to iterate a linked list in reverse order.   5. Write a   program to insert the specified element at the specified position in the linked list.   6. Write a   program to insert elements into the linked list at the first and last position.   7. Write a   program to insert the specified element at the front of a linked list.   8. Write a   program to insert the specified element at the end of a linked list.   9. Write a   program to insert some elements at the specified position into a linked list.   10.Write a...

Arrays

1. Calculate average value of array  2. Find largest element of given array 3. Add elements in array  4. To reverse of array  5. Sort array of array ASC 6. Write a   program to count the number of even and odd elements in a given array of integers. 7. Write a   program to test that a given array of integers of length 2 contains a 4 or a 7.   Original Array: [5, 7]                                                  Sample Output: true  8. Convert character array to string array  9. Program to find the second highest number in an array. 10. Add Two Matrices Using Multi-dimensional Arrays 11. Multiply Two Matrices Using Multi-dimensional Arrays 12.Find Transpose of a Matrix Ref : https://www.programiz.com/c-programming/examples/matrix-transpose 13. Write a   program to test if the first and the last...

While block & For loop

 Assignment : 1. write a program to print 0 to 10 2. write a program to print 10 to 20 3. write a program to print 10 to 1 4. Calculate the Sum of Natural Numbers Upto 100 5. print Even/ odd numbers upto 30 6.Print even numbers and odd numbers separately between 0 to 100 7. Power of a numbers  8.Check Whether a Number is Prime or Not 9.write a program to print 0 to 10 except 7 10.Prime Numbers Between Two Intervals Ex :- 1 to 50, 100 to 200 11.program to compute the sum of the first 100 prime numbers 12.Check given number is palindrome or not  13.Program to display first 100 prime numbers Print the numbers ending with 2, 4, 6, 8 between 1 to 100 range 18. Print the numbers having 3 or 6 or 9 in the middle of any three letter number between 100 to 200 range Write a   program and compute the sum of the digits of an integer.   Input Data: Input an integer: 25 Expected Output The sum of the digits is: 7 11. Given number is Armstrong number or no...

If & Switch Block

  Assignment: 1. Write a   program that accepts two integer values from the user and return the larger values. 2. Write a   program to compare two numbers use operators like <, >, <=,>=, ==, != Input Data: Input first integer: 25 Input second integer: 39 Expected Output 25 != 39                                                                           25 < 39                                                                            25 <= 39 3. Check number is even or odd 4. Program to find Largest of three numbers 5. Write a   program to calc...