Programming ProblemWrite a program to implement the sorting and searching algorithms discussed in the class. Theprogram should display the following menu repeatedly to allow user to read strings into thestring array, print the content of the array, sort the string array elements based on thealphabetic order of the initial letter of each string array element, search for a key letter(one single letter) in the array, or exit from the program.1. Read2. Print3. Sort4. Search0. QuitOption 3 should trigger the following submenu:1. Quick sort2. Merge sort0. QuitOption 4 should use the following submenu:1. Sequential search2. Binary search0. QuitNote• Assume all the input strings start with different letters.• The user is able to determine how many input strings are entered.• The key letter for searching is one single letter, the program should output the position ofthis key letter.Submission:Zip the Java source code folder and Submit it on Blackboard.Grading1. Demonstrate to Instructor (Bonus 5%)2. Include comments as specified in the course syllabus. (15%)3. Source code and results.• Correctness (70%)• Efficiency of the code (15%)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Programming Problem
Write a program to implement the sorting and searching algorithms discussed in the class. The
program should display the following menu repeatedly to allow user to read strings into the
string array, print the content of the array, sort the string array elements based on the
alphabetic order of the initial letter of each string array element, search for a key letter
(one single letter) in the array, or exit from the program.
1. Read
2. Print
3. Sort
4. Search
0. Quit
Option 3 should trigger the following submenu:
1. Quick sort
2. Merge sort
0. Quit
Option 4 should use the following submenu:
1. Sequential search
2. Binary search
0. Quit
Note
• Assume all the input strings start with different letters.
• The user is able to determine how many input strings are entered.
• The key letter for searching is one single letter, the program should output the position of
this key letter.
Submission:
Zip the Java source code folder and Submit it on Blackboard.
Grading
1. Demonstrate to Instructor (Bonus 5%)
2. Include comments as specified in the course syllabus. (15%)
3. Source code and results.
• Correctness (70%)
• Efficiency of the code (15%)

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY