Create a new project in bluej called assignment

Assignment Help Computer Engineering
Reference no: EM131095387

Overview:

Facebook now want to expand their software to include extra features. They need the software to be able to maintain large numbers of Friends and Stories. It must also include the ability to add Events and to classify Friends as best friends or close friends. In addition, a menu system is now required to manage user interaction with the software.

Getting Started:

1. Create a new project in BlueJ called Assignment2. It is possible to use the published solution to Assignment Part 1 or your own solution as the basis for this assignment. The published solution will be made available in UTSOnline if you wish to use it.

2. Create the required classes for the project – all classes from Part 1 should be included, however they may be modified. You can have any number of additional classes you think are required.

3. Basic Functionality:

Fasebook – a FasebookUser has an array of Friends (max 200, you must setup at least 5) and an array of Events (max 100). Friends now have a best friend status (true or false). A Newsfeed has an array of Stories (max 300, you must setup at least 5). Stories now must have an ID as an attribute.

An Event has a type, month, date in the month, and title. It must be possible to add Friends and Events, up to the maximum number specified. It must be possible to add Stories to a Newsfeed, up to the maximum number specified.

4. Menu System: a menu must be provided that asks the user of the software what task they would like to perform; it then activates the required task. The menu should loop until the user requests to exit. The menu must offer these tasks:

- Add a Friend

- Search for a Friend by name

- Add an Event

- View a list of Events

- Add a Story

- Comment on a Story

- Like a Story

- Share a Story

- Create a best Friend

- View a list of best Friends

- View a list of close Friends

5. Constructors: all classes must have at least 1 constructor that accepts any required input parameters used to initialise the class attributes (done in the body of the constructor).

6. Standard methods & visibility: all classes must provide accessor and mutator methods for all class attributes. A toString() method must also be implemented for each class. All classes must use the appropriate visibility modifiers for methods and attributes.

7. Comments: all methods in each class must have a brief comment that describes what the method is doing.

NOTE: All functionality from Assignment Part 1 must also be available – do not remove methods offering Part 1 functionality.

Detailed Functionality:

1. Add a Friend

Adding a Friend follows the rules set out in Part 1 of the Assignment, but is now done using arrays. A new Friend can be created in the system by entering all the Friend details: name,login, city, best friend status, and a message (this should be empty when the Friend isadded).

2. Search for a Friend by name

Allow the user to enter the name of the Friend they are searching for, if found display all details of the Friend. If not found, display an appropriate error message. Allow name matches that do not consider the case of the letter e.g. Janine would match the name janine or JANine etc.

3. Add an Event

A new Event can be created in the system by entering all the Event details: type, month,date in the month, and title. When the new Event is created it is added to the array of Events.

4. View a list of Events of a certain type

Display a list of all Events for a FasebookUser that matches the type entered by the user. Display all details about the matching Events, or an error is no matching Events are found.

5. Add a Story

Adding a Story follows the rules set out in Part 1 of the Assignment, but is now done using arrays. A new Story can be created in the system by entering all the Story details: ID, headline, description, comments (as a String array – empty when the story is created), a is public status (true or false), number of likes counter (zero when the story is created) and number of comments counter (zero when the story is created).

6. Comment on a Story

Commenting on a Story follows the rules set out in Part 1 of the Assignment, but is now done using arrays. When commenting on a story, the user must enter the story ID, and the method must find this story in the array of stories. The new comment is then added to the array of comments for that story if found. If no story is found with a matching ID, display an error message.

7. Like a Story

Liking on a Story follows the rules set out in Part 1 of the Assignment, but is now done using arrays. When liking a story, the user must enter the story ID, and the method must find this story in the array of stories. If the story is found, add a Like to the story. If no story is found with a matching ID, display an error message.

8. Share a Story

Sharing a Story follows the rules set out in Part 1 of the Assignment, but is now done using arrays. When sharing a story, the user must enter the story ID, and the method must find this story in the array of stories. If the story is found, change the status of the story to public. If no story is found with a matching ID, display an error message.

9. Create a Best Friend

A Friend that is already in the system can become a best Friend. When creating a best Friend, the user must enter the name of the Friend, and the method must find this Friend in the array of friends. If the Friend is found, change the status of the Friend to Best. If no Friend is found with a matching name, display an error message.

10. View a list of best Friends

Allow the user to view a list of their best Friends. Display all details of the best friends found. If no best friends are found, display an appropriate message to the user.

11. View a list of close Friends

Allow the user to view a list of their close Friends. Close friends are those friends who live in the same city. Display all details of the close friends found. If no close friends are found, display an appropriate message to the user.

NOTE: It is expected that if an error occurs e.g. if the Club is full and no more Players can register, then the system will display an appropriate error message. This applies for all common errors.

Program Flow:

The menu system must be activated first that accepts user choices as to what task they want to perform. Relevant objects such as the FasebookUser must be created to achieve this.

NOTE : All methods created in earlier parts of the assignment MUST be called somewhere in the code to avoid a loss in marks.

Reference no: EM131095387

Previous Q& A

  Understanding biblical view of business ethics

Review three or four key principles that are important in understanding a Biblical view of business ethics. Give examples of how you have (or might in the future) apply these principles.

  What are ramifications for business ethics

Describe key components of Biblical view of work. What are ramifications for business ethics? ; For personnel function in organizations? ; For the economy? Give one or two examples

  Two possibilities for pricing rides at its theme parks

Disneyland has two possibilities for pricing rides at its theme parks: (1) Set MR = MC for each ride and charge the maximum price consumers will bear. (2) Charge an admission fee to the theme park but allow unlimited rides for free. Using graphs, sho..

  Challenges in hiring

Write a clear report on the topic: Challenges in Hiring

  Monopolist profits are equal to what number

A monopolist faces a market demand curve given by: Q = 70 – P. This monopolist charges a single price for its output. If the monopolist can produce at constant average and marginal costs of AC = MC = 6, the monopolist’s profits are equal to what numb..

  Consider single-price monopoly

Consider a single-price monopoly

  Why firms in monopolistically competitive industry advertise

Why do firms in a monopolistically competitive industry advertise? Research a firm you feel would be in monopolistic competition and explain their advertising scheme in a short summary. Be sure and cite your reference.

  Decides to make a college education more affordable

Let’s say the current administration decides to make a college education more affordable, so they establish a price ceiling of $50 per credit hour for community colleges, $75 per credit hour for four year institutions, and $100 per credit hour for gr..

  What is meant by total surpluses

The author defines market equilibrium as generating the largest possible total surpluses and being efficient when four conditions are met. What is meant by "total surpluses", and what are the four conditions that must be met? Can you name a market in..

  Define the quantity of money theory

Define the Quantity of Money theory and identify whether this is a Keynesian or Classical cornerstone. Describe what happens when, according to this theory, the money supply is increased.

Reviews

Write a Review

 

Similar Q& A

  Determine the process used to add content and publish the

write a 200- to 300-word short-answer response to the followingwhat is the process used to add content and publish the

  Create a java program that demonstrates a static recursive

Write down a Java program that demonstrates a static recursive method that accepts two integer arguments into the parameters x and y. The method should return the value of x times y.

  Generate and display on the console the elements

Generate and display on the console the elements of a one-dimensional array b[M] where each element of b[M] represents the average grade over the semester of each of the M students .

  Communication among various constituents in terms of time

communication among various constituents in terms of time and place is key to project management consideration.

  Write down a 2 page proposal for the backhaul connecting

write a 2 page proposal for the backhaul connecting several campuses for your company in one metropolitan area. all of

  Show the key code in the center of the screen

Write down a program that will display the hex code for any key, or key combination that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the ..

  Write the same program using a for-loop

Write the same program using a for-loop - write the same program that will display only the even numbers and odd numbers from 1 to N.

  Karnaugh maps and demorgan equivalences

How can we use both Karnaugh maps and DeMorgan equivalences to better understand systems we build?

  Convert an nfa to a dfa

Comments should be included in the program to explain your calculations and program.

  Explain the features and characteristics of atm networks

explain the features and characteristics of ATM networks, as well as their benefits and limitations.

  How did your team plan the group presentation

How did your team plan the group presentation? What worked well during the group presentation? What did not work so well during the group presentation? If you had to do the presentation again, what would you do differently?

  Implementing compstat

Explain how COMPSTAT, as an information system (IS), implements the four basic IS functions Calculate how information systems have enabled the police departments which implement tools like COMPSTAT in order to respond to the crime faster.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd