Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
RMIT Classification: Trusted
Advanced Programming
COSC1295
Assignment 2: Data Analytics Hub
Assessment
Type
Individual assignment; no group work. Submit online via Canvas → Assignments → Assignment 2.
Marks are awarded for meeting requirements as closely as possible according to assignment
specifications and the supplied rubric. Clarifications or updates may be made via announcements.
Due Date Week 13, Friday 20 October 11:59pm. Late submission penalty will be applied unless special
consideration has been granted.
There will be 2 milestones: week 12 in-lab milestone check and week 14 post submission final
interview. You will describe the key concepts adopted in your code, your overall application design,
demonstrate code execution, and explain your code at the milestones. No extensions to the Week
12 milestone will be given unless special consideration has been granted.
Marks 45 marks out of 100 for Assignment 2
5 marks for week 12 in-lab milestone check in addition to 45 marks.
1. Overview
NOTE: Carefully read this document. In addition, regularly follow the Canvas assignment discussion board for assignment
related clarifications and discussion.
• In this assignment, you are required to work individually to develop a GUI Application, named Data Analytics
Hub, which allows user to import, analyze, and get insights of social media data. You will practice your knowledge
of object-oriented design principles, design patterns, and GUI-frontend application design. You will use Java SE
8 or later and JavaFX. A suite of suitable JUnit tests should be provided to demonstrate correct functionality.
The assignment can be seen as an extension of Assignment 1. Hence, you can re-use your code for Assignment 1 if you
wish.
Task specification
Stage 1 - Basic functional requirements.
• The application can have multiple users.
• Each user can create a profile, with a username, password (may be unencrypted), first name, and last name. The
username should be a unique identifier of the user in the application.
• Once the username and password are created, the user can log in.
• Each user has a dashboard after login. The dashboard should display a welcome message containing the user’s
full name.
• Each user can keep a collection of social media posts and analyze it. Specifically, a user can perform the following
actions:
o Edit the profile (i.e., change the first name, last name, username, and the password).
o Add a social media post to the collection. A social media post should contain ID, content, author, #likes,
#shares, and date-time (See Assignment 1 -> Task specification for more details). The user will provide
Page 2 of 4
RMIT Classification: Trusted
the details of one post. Afterwards, the post can be added to the collection. For each post, validation
should be done to ensure the post has correct format, such as #likes being a number, ID being unique,
etc.
o Retrieve a post from the collection based on post ID. The user is allowed to enter a post ID, and the
application should retrieve the corresponding post if it exists.
o Remove a post from the collection based on post ID.
o Retrieve the top N posts with the most likes, for a given user or over ALL users, and show retrieved
posts in descending order of #likes. The user is allowed to specify the value of N.
o Export a post to a file based on post ID. The user should be allowed to choose a folder for storing the
file, and specify the file name to be exported. The saved file should be in csv format.
o Log out
Stage 2 – VIP functionalities
When a new user is registered, the user is considered as a non-VIP user. Once a non-VIP user logs in, the user has
the option of upgrading to VIP user. To upgrade, the application asks if the user agrees to subscribe to the application:
The user will become a VIP user once they agree:
For simplicity, you do not need to collect payment information in this assignment. You can assume that the user
agrees by clicking “yes”. A VIP user has advanced functionalities as follows.
• Data visualization - Draw a pie chart showing the distribution of #shares. The application can display a pie chart
that illustrates the distribution of #shares by categorizing all posts into three groups: #shares ranging from 0 to
99, #shares between 100 and 999, and #shares equal or exceeding 1000. Generate a pie chart that displays the
proportions of these three categories.
• Bulk import social media posts. Import multiple social media posts from a csv file altogether. A posts.csv file is
provided for testing. This functionality should capture potential exceptions occurred during import, such as the
case where the csv file does not follow the correct format.
Once a user has become VIP, the same user should always have access to advanced functionalities when logging in.
Disclaimer: the specification in this assignment is intended to represent a simplified version of a system in real life and
thus is not meant to be a 100% accurate simulation of any real system or service that is being used commercially.
4. Assessment details
In this assignment, you will incrementally build a GUI application, named Data Analytics Hub. The assignment is
structured into 2 milestones which must be demonstrated to your lab tutor.
Milestone 1
In Milestone 1, you are expected to complete the following basic functionalities:
• Sign up
• Log in
• User profile editing
• Add a social media post to the application
• Retrieve a post from the collection based on post ID.
Milestone 2
You are expected to complete functionalities of Stage 1 and Stage 2. In addition, you are required to incorporate object-
oriented concepts to design your program (including abstraction, encapsulation, inheritance, and polymorphism). You
Would you like to subscribe to the application for a monthly fee of $0?
Please log out and log in again to access VIP functionalities.
Page 3 of 4
RMIT Classification: Trusted
are required to follow MVC design pattern to connect the frontend with the backend. You are also required to use
another design patterns such as Singleton pattern, besides the MVC pattern.
5. Academic integrity and plagiarism (standard warning)
Academic integrity is about honest presentation of your academic work. It means acknowledging the work of others
while developing your own insights, knowledge and ideas. You should take extreme care that you have:
• Acknowledged words, data, diagrams, models, frameworks and/or ideas of others you have quoted (i.e. directly
copied), summarised, paraphrased, discussed or mentioned in your assessment through the appropriate
referencing methods,
• Provided a reference list of the publication details so your reader can locate the source if necessary. This includes
material taken from Internet sites.
If you do not acknowledge the sources of your material, you may be accused of plagiarism because you have passed
off the work and ideas of another person without appropriate referencing, as if they were your own.
RMIT University treats plagiarism as a very serious offence constituting misconduct. Plagiarism covers a variety of
inappropriate behaviours, including:
• Failure to properly document a source
• Copyright material from the internet or databases