Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

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 sort

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago