Looking for Plagiarism-Free Answers for Your US, UK, Singapore, New Zealand, and Ireland College/University Assignments?
Talk to an Expert| Category | Coursework | Subject | Computer Science |
|---|---|---|---|
| University | University of Warwick (UOW) | Module Title | CS126 Design of Information Structures |
A developer of a new Java application has asked for your help in storing a large amount of film data efficiently. The application, called Warwick+, is used to present data and fun facts about films, the cast and crew who worked on them, and some ratings the developer has gathered in there free time. However, because the developer hasn’t taken the module, they don’t want to design how the data is stored.
Therefore, this coursework and the task the developer has left to you, is to design one or more data structures that can efficiently store and search through the data. The data consists of 3 separate files:
To help out, the developer of Warwick+ has provided classes for each of these. Each class has been populated with functions with JavaDoc preambles that need to be filled in by you. As well as this, the developer has also tried to implement the MyArrayList data structure into a 4th dataset (called Keywords), to show you where to store your data structures and how they can be incorporated into the pre-made classes. Finally, the developer has left instructions for you, which include how to build, run and test you code; and the file structure of the application (see Section 4).
Therefore, your task is to implement the functions within the Movies, Credits and Ratings classes though the use of your own data structures.
You should submit the following in a singular ZIP file by Tuesday 5th May 2026 @ 12 noon:
The ZIP file should be uploaded to Tabula by the deadline specified. Instructions for combining all your files together into a ZIP file on the DCS system can be found by running the command man zip in the terminal of any DCS machine.
All marking will be done in accordance with the Universities marking scheme (more details can be found at https://warwick.ac.uk/fac/sci/dcs/teaching/handbook/assessment/). The work you submit should be your own work, and thus should abide by the Universities rules on plagiarism. All late submissions and cases of plagiarism will be handled in accordance with the Universities regulations (Reg. 36.3 and 11 respectively). Any and all code will be evaluated on the Department of Computer Science machines. Therefore, you should test and validate your code works on these machines before and after submitting your work to Tabula.
When developing the code, you should not use the data structures, searching algorithms or sorting algorithms implemented within the Java itself. This includes the data structures found within the Java utils package. However, you are allowed to use any Java data structure interfaces. These should be clearly communicated in both your code and in the report.
It should also be noted that submitting a solution that utilises the MyArrayList will score low marks, as an example of this solution has been provided for you. You should implement your own data structures within the Movies, Ratings and Credits classes.
Have a read through the documentation provided in Section 4. This explains how to build and run the application. This can be done without writing anything, so make sure you can do that first.
I would then have a look at the comments and functions found in the Movies, Credits and Ratings classes. The location of these is described in Section 4.5.2. Each of the functions you need to implement has a comment above it, describing what it should do. It also lists each of the parameters for the function (lines starting with @param), and what the function should return (lines starting with @return).
When you are ready to start coding, I would recommend starting off with the Movies class first. This is because whist it is a rather long file, it is also one of the simplest. When you have completed a function, you can test it using the test suit described in Section 4.4. More details about where the code for the tests are can be found in Section 4.5.3.
If you have any issues, don’t hesitate to contact the Module Organisers or the lab tutors!
Details for them can be found on the module webpage.
Warwick+ is a Java application that pulls in data from a collection of Comma Separated Value (csv) files. It is designed to have a lightweight UI, so that users can inspect and query the data. The application also has a testing suit connected to it, to ensure all the functions work as expected. The functions called in the Warwick+ UI are the same as those called in the testing, so if the tests work, the UI will also work.
For the Warwick+ to compile and run, Java 21 is required. If you are running Warwick+ on the DCS system, then you don’t need to worry about this as it has already been installed for you. However, if you are planning on working on Warwick+ on your own machine, then you will need to make sure you download this specific version of Java. Whilst a newer version of Java can be utilised, other parts of the application will also have to be updated and this has not been tested. As such, it is highly recommended you download and use Java 21.
To compile the code, simply run the command shown in the table below in the head directory (the one with src directory in it).
| Linux/DCS System | MacOS | Windows |
| ./gradlew build | ./gradlew build | ./gradlew.bat build |
To run the application, simply run the command shown in the table below in the head directory (the one with src directory in it).
| Linux/DCS System | MacOS | Windows |
| ./gradlew run | ./gradlew run | ./gradlew.bat run |
This command will also compile the code, in case any files have been changed. When this is done, a window will appear with the UI for the application. The terminal will not be able to be used at this time. Instead it will print anything required from the program. To stop the application, simply close the window or press CTRL and C at the same time in the terminal.
| Linux/DCS System | MacOS | Windows |
| ./gradlew test | ./gradlew test | ./gradlew.bat test |
This command will also compile the code, in case any files have been changed. When ran, this will produce the output from each test function. It will also produce a webpage of the results, which can be found in build/reports/test/test/index.html
Every effort has been made to keep the file structure simple and clean, whilst maintaining good coding practices. In the following subsections, a brief description of each of the key directories is given, along with its contents and what you need to worry about in them.
4.5.1 data/
This directory stores all the data files that are pulled into the application. There are 4 .csv files in this directory, 1 for each of the datasets described in Section 1. Each line in these files is a different entry, with values being separated by commas (hence the name Comma Separated Values). You do not need to add, edit or remove anything from this directory for your coursework. More details on how these files are structured can be found in Section 4.6.
4.5.2 src/main/
This directory stores all the Java code for the application. As such, there are a number of directories and files in this directory, each of which are required for the application and/or the UI to function. To make things simpler, there are 3 key directories that will be useful for you:
In Movies, Credits and Ratings, you will see that the constructor requires a singular argument, a variable called stores of type Stores and uses this to store an variable called stores. This class contains a reference to all the data stores, including itself. As such, if you need to access data from other stores, you can use this class to attain the data through the appropriate get functions. For example, if you need to call a function from the Movies store, you can use the function stores.getMovies() to get the instance of the Movies store currently being used by the application.
4.5.3 src/test/
This directory stores all the code that related solely to the JUnit tests. As such, there is a Java file for each of the stores you need to implement, and one that manages the tests. You do not need to add, edit or remove anything from this directory for your coursework.
All of the data used by the Warwick+ application can be found in the data directory, as described in Section 4.5.1. Each file in this directory contains a large collection of values, separated by commas (hence the CSV file type). Therefore, each of these can be opened by your favourite spreadsheet program. Most of these values are integers or floating point values, but some are strings. In the cases of strings, double quotation marks (“) are used at the beginning and end of the value. Where multiple elements could exist in that value, a JSON object has been used. You do not need to parse these files, Warwick+ will do that for you in the LoadData class. The data generated by the LoadData class is passed to the corresponding data store class (Movies, Credits, Ratings and Keywords) using the add function. The only exception to this is the Movies class, more details for this can be found in Section 4.7.1.
To make development easier, we have provided only 1000 films present in the data. This means that there are 1000 entries in the credits data set, and 1000 entries in the keywords data set. However, some films may not have any cast and/or crew (that information may not have been released yet, or it is not known), some films don’t have keywords and some films may not have ratings. In these cases, an empty list of the required classes will be provided the add function.
When we are testing the application, we will be using a larger film data set. Therefore, the data structures you develop should be both memory efficient and time efficient. Every effort has been made to ensure the data we have given you is a fair representation of the larger data set.
The dataset used in Warwick+ is a little dated. As such, some films will have release dates and other information missing when it is readily available online. You are not expected to update the data provided, only to process the data passed to the stores. The data passed to the stores is valid, and should be handled appropriately. If data is missing, an appropriate value has been provided where necessary.
Table 1 shows all the stats about the dataset provided with the application. This can be used as a reference when checking to see whether data is being stored correctly.
| Films | 1000 | |
| Credits | Film Entries Unique Cast | 1000
10756 |
| Unique Crew | 8650 | |
| Ratings | 16960 | |
| Keywords | Film Entries
Unique Keywords |
1000
2136 |
Table 1: Stats generated for the dataset provided with the application
4.7.1 Movies Metadata
The following is a list all of the data stored about a film using the given name from the CSV file, in the same order they are in the CSV file. Blue fields are ones that are added through the add function in the Movies class. • adult: A boolean representing whether the film is an adult film.
For ease, Warwick+ passes this as an array of Genre objects.
here: https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html).
4.7.2 Credits
The following is a list all of the data stored about the cast and crew of a film using the given name from the CSV file, in the same order they are in the CSV file. All these fields are used by Warwick+:
4.7.3 Ratings
The following is a list all of the data stored about the ratings for a film using the given name from the CSV file, in the same order they are in the CSV file. Blue fields are ones that are actually used by Warwick+:
https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html).
4.7.4 Keywords
The following is a list all of the data stored about the keywords for a film using the given name from the CSV file, in the same order they are in the CSV file. All these fields are used by Warwick+:
For ease, Warwick+ passes this into an array of Keyword objects.
Get expert help with your CS126 Design of Information Structures Coursework through our reliable Coursework Writing Services. We provide well-structured, plagiarism-free solutions that meet academic standards and help you understand complex topics like data structures and algorithms. Whether you need complete assistance or high-quality Coursework Writing Examples, our experienced writers ensure accuracy and timely delivery. Our assignment writing services are affordable, student-friendly, and designed to boost your grades with ease. Don’t let coursework stress you out—get professional support today and achieve academic success with confidence while improving your knowledge and performance in every submission you make.
Hire Assignment Helper Today!
Let's Book Your Work with Our Expert and Get High-Quality Content