Lab-4 Task
Lab-4 Task
Lab – 4
1. Write a function to find first and last digit number in 10 digits array.
2. Write a function to get 10 numbers using array and find sum of all elements.
3. Write a function to get 10 numbers using array and find the average of all elements.
4. Write a function to get 10 numbers using array and find the maximum and minimum.
5. Write a function to get 10 numbers using array and reverse the elements.
9. Write a function to get 10 numbers array and give options with menu function for
10. Write a function to get 10 numbers and perform binary search on a sorted array.
11. Write a function to get 2 arrays of 10 elements and sort in ascending order then
12. Write a function to find the missing number in a 5 sequenced array of integers.
13. Create a program to manage student records, including adding, editing, and
searching records.
14. Write a function called "grade" that takes a student's percentage as a parameter and
returns the letter grade using 2D array of grade and numbers range. (e.g. 90-100 is an
A, 80-89 is a B, etc.). Then, write a main function that prompts the user to input a
percentage and calls the "grade" function to find and print the corresponding letter
grade.
Implement a program to find the sum of elements of each row and each column of a
2D array.
15. Implement a program to check if a 2D array is a magic square (the sum of each row,