Create the shoutbox class for your virtual world

Assignment Help Data Structure & Algorithms
Reference no: EM13499195

You will create the ShoutBox class for your Virtual World. Your ShoutBox class will have two methods:

Method shoutOutCannedMessage() will return type String. The shoutOutCannedMessage will use an Array or an ArrayList to store 10 messages of type String. For those of you who are more advanced with your Java skills, you could use a HashMap for the data structure. You can load this data structure with 10 messages of your choosing. You can initialize your Array or ArrayList with the messages or have the user enter the messages. The choice is yours. shoutOutCannedMessage() will loop through the data structure to first display all canned messages and allow the user to select one. The shoutOutCannedMessage() will return the selected message String.

The shoutOutRandom Message() method will return type String.

The shoutOutRandomMessage() will use several Arrays or an ArrayList to store words. You will have one data structure that holds a list of words that are subjects, another data structure that holds a list of words that are objects, another that holds a list of verbs, another that holds a list of adverbs, and another that holds a list of adjectives. You can initialize your data structures with words or have the user enter the words. The choice is yours.

The shoutOutRandomMessage() method will use a random number generator that selects one word from each data structure to form a random message. The shoutOutRandomMessage() method will return the random message as a String data type. Random messages will be of the form: Subject - Verb - Adjective - Object - Adverb. Document your shoutOutRandomMessage() method to explain the code.

Reference no: EM13499195

Questions Cloud

Create a fictional start-up company : Provide a detailed description of your company. The description should include, at a minimum, the company's name, its history, founders, business purpose, and mission.
Historical transitioning and growth of the u.s. health care : Historical Transitioning and Growth of the U.S. Health Care System
Explain what mass of mgnh4po4 precipitated : what mass of MgNH4PO4 precipitated when 200 mL of 1%(w/v) solution of MgCl2 were treated with 40 mL of 0.1753 M Na3PO4 and excess of NH4+ what was the molarity of the excess reagent (Na3PO4 or MgCl2) after the precipitation was complete
Find the post-collision angular speed : A small blob of putty of mass m=12 g falls from the ceiling and lands on the outer rim of a turntable of radius R= 20 cm, find the post-collision angular speed of the turntable-putty system
Create the shoutbox class for your virtual world : Create the ShoutBox class for your Virtual World. Your ShoutBox class will have two methods - initialize your data structures with words or have the user enter the words
Explain what is the concentration of in mass percent : An aqueous solution has a vapor pressure of 82.6 at 50 . The vapor pressure of pure water at this temperature is 92.6. What is the concentration of in mass percent
Determine the rms current in this circuit : A 451-? resistor and a 257-mH inductor are connected in series with an ac generator with an rms voltage of 20.0 V and a frequency of 60.0 Hz
Explain the width of a 1275 gram piece of aluminum : What is the width of a 1275 gram piece of aluminum with an area of 18.5 square meters and a density of 2.7 g/cc
Compute the heat generated in the rod : A rod of 2.0-m length and a square (2.0 mm x 2.0 mm) cross section is made of a material with a resistivity of 6.0 x 10 ^-8 ohms m. What is heat generated in the rod

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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