Class Template – Array
Write a C++ program to create a class template using an array. Perform operations like sorting, searching, and displaying the array using a class template.
A class named Array with the following member variables.
Data TypeVariable NameIntegersizeT*array
Function NameDescriptionvoid sorting() This function is used to sort the array elements in ascending order and display the array.void search(T &search) This function is used to search the array element, if the element is found display "Element found at position x" else print "Element not found"
Sample Input and Output 1:
Menu
1.Sorting integer array
2.Searching array of double values
Enter your choice:
1
Enter size of array:
3
Enter the array elements:
5
2
55
Sorted array
2
5
55
Write your own unique Python program that has a runtime error. Do not copy the program from your textbook or the Internet. Provide the following.
Create a console calculator application that make use of a menu it should gives a user an option to end a program when she entered a certain option
Design and develop an algorithm, function, method, utility, command or component that sorts a multi-column contact list (contain last name, first name, middle name). You may use any appropriate data structure of choice to hold your data.
Implement your solution as part of a program (written in JAVA) that displays list, before sorted, after sorted. Refer to the Sample Unsorted Input Data and the Sample Sorted Output Data below to see how the list be transformed by the sort process.
The output should be ordered by Last Name. First Name must be ordered within Last Name and the Middle Name should be ordered within First Name. All the sorting be performed in ascending order.
If use a pre-existing algorithm, identify Library, OS, individual, etc. give full attribution to source.
Sample Unsorted Input Data:
Smith, John Vince
Doe, Jane Marie
Doe, Sally Mae
Smith, Robert Anthony
Doe, Sally Maria
Sample Sorted Output Data:
Doe, Jane Marie
Doe, Sally Mae
Doe, Sally Maria
Smith, John Vince
Smith, Robert Anthony