Skip to main content

Posts

Showing posts with the label Programs to try using 1D-Array

Programs to try using 1D-Array

1.Read an array and rotate elements right( read n-number of times to rotate). 2.Find the average of list of numbers. 3.Find the maximum and minimum values from an array of integers. 4.Swap the k th and k+1 th element in an array. Read k. 5.Find the binary equivalent of a number using array. 6.Find similar elements in an array and compute the number of times they occur. 7. Separate odd and even integers in separate arrays from a given array. 8.Find the intersection of two set of numbers. 9.Rearrange n numbers in an array in reverse order.(selection sort) 10.Sort the numbers stored in array in ascending order.(bubble sort) 11.Arrange numbers in an array in such a way that the array will have odd numbers followed by the even numbers. 12.Find the frequency of digits in a set of numbers. 13.Remove duplicate elements from an array. 14.Merge two sorted arrays into another array in sorted order. 15.Find the standard deviation of set of integer data. 16.Read list of numbers an