Hi, I am looking for JavaScript code and corresponding HTML
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Hi, I am looking for JavaScript code and corresponding HTML code. See the following instructions:You should automatically populate the List with 20 element (random strings). The attached word document has the code base for the list.Then you will add 2 sort functions,you can use any sort method that you desire for each of the sortfunctions. You can also delineate the functions by the name of the Sortfunction – so your functions might be QuickSort() and MergeSort() – ifyou chose to implement those 2 algorithms (you can select from any sortfunctions).The interface should have buttons to (1) Repopulate the list withRandom strings , (2) Sort list with selected algorithm 1 (3) Sort listwith selected algorithm 2 and (4) Insert a new random string entered bythe user into the list. After each operation it should display the newlist.The option 4 here will insert the new string entered by the user (youwill need a textbox to enter the string) in the correct sortedposition and you should print the new list with the new element on thescreen.For a nice clean interface you may want to create a table with 3columns and put the insert button on columns 2 and 3 and the results ofsorting the list (printed in column 1) in columns 2 and 3 below thebutton. This is not required, but it does give you an opportunity tolook at various methods of creating an interface to present results.When you insert the “String” ensure that it inserts into the correctlocation in one of the sorted lists. You can demonstrate the insertioninto any of the sorted lists.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds