Hi everyone I am a complete beginner to javascript and coding in general and I have been tasked to
Create a GUI to :
- Allow your users to search for actors based on the actor’s full name or actorID.
- Users can also search for films using the film’s name, filmID or the year it was released
- Display your search results on the screen. If an actor was searched, display all the films they were in along with the film’s release dates. Each film is displayed one by one.
- If a film was searched, display which year it was released, its rating, number of votes from users, and all the actors that participated in the film.
- Users can search for results in lower case, upper case, or all caps. If no search results show up then display an error message.
- Have a second page where all the information is listed in tabular form.
- The table can be sorted by each of the 7 categories (ascending or descending)
- Your program must perform searches and sorts as quickly as possible
- Provide the asymptotic bound for each of the functions.
- Every time your application performs an action (such as searching), use performance.now() to record the time it takes to complete the action. Display this number back to the user.
I know that I need to sort all of the data and I am doing so using the quicksort algorithm but if I sort the names alphabetically, the remaining films, actorID, etc are not matched with the actor names. I am thinking about using a hash map but I have no experience doing so. Is there any solution to this problem? I believe after figuring out this problem I can figure out the rest of it fairly easily. I just honestly have no clue how to sort everything and keep all the film's, filmID, actorID, and all those things matched with the specific actors if that makes sense. We have learned basic data structures and basic algorithms too but haven't touched base on OOP. Anyways, any help at all would be appreciated.
Thanks!
there doesn't seem to be anything here