Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use JAVA. I will upvote if you give a complete answer. Thank you! 2. Use JAVA. Create a database with the following details for
Please use JAVA. I will upvote if you give a complete answer. Thank you!
2. Use JAVA. Create a database with the following details for at least 20 users and store it as a text file: UserID first name last name email id Write a program to read the data from the text file. Choose an appropriate data type and data structure (lists, lists of list, dictionary) for storing the information in your program. Write a function which takes a parameter and sorts the entire list of students and displays all the details of all students. Your function should sort the list using UserID / first name / last name. Implement the sorting using selection sort, insertion sort, bubble sort and merge sort, and print out how much cpu time it took to sort the data. You can import a library to calculate the time. Show an example for searching a value using linear search. Table-1: Tabulate your recorded time for the linear search and all the four sorting algorithms i.e., selection sort, insertion sort, bubble sort and merge sortStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started