Remove an entry or print an entry given the entry name

Assignment Help Basic Computer Science
Reference no: EM131032696

Create a BlueJ project that maintains a student, faculty and staff directory. Your project should be able to add new entries, update entries and print the entries alphabetically by name. In addition, you should be able to remove an entry or print an entry given the entry name.

Assume the entries have the following fields:

All Persons

First name

Last name

Email address

Students

Class (e.g. freshman, sophmore, junior, senior)

Staff

Office

Title (e.g. Mr., Ms.)

Faculty

Office

Tenured (Boolean)

The directory should contain these methods:

Add person

Print all people (alphabetically by name)

Print just Students

Remove a person

Retrieve a person

You should develop an hierarchical class structure that minimizes duplication among the classes. Each class should overload the toString() method to produce an appropriate String to be used as the directory listing. The listing should be produced by iterating through the Collection of entries, using the toString() method to print each entry. Since you want to display the directory alphabetically, you might consider using a Tree Map Collection to store your database, creating the key by concatenating the last and first name. To facilitate implementation of the remove and retrieve methods, add a getter method to the Person class to return the key of the object.

Reference no: EM131032696

Questions Cloud

Illustrate the satellite communication system : Illustrate the satellite communication system and calculate the order of delay in the above channel
What substance particle has a neutral charge : How do we define matter? Can you think of anything that is NOT mateer? What does it mean for a substance to be a "pure substance?
Find the parametric equations for the given curves : Find the vector valued function describing the curves of intersection of the pairs of surfaces. Then draw the two surfaces together in the space provided. The parabaloid y = x^2 + z^2 and the parabolic cylinder z = x^2.
How stress can have affect on cardiovasular disease : My research project based on patients have stress & how stress can have affect on cardiovasular disease.And also What's the difference affects of stress and heart disease in young people and old people.Our knowledge:Stress can make;-increased hear..
Remove an entry or print an entry given the entry name : To facilitate implementation of the remove and retrieve methods, add a getter method to the Person class to return the key of the object.
What are the benefits of a network in a business : What are the benefits of a network in a business? Provide an example from your experience, an interview, or an article that describes a network topology and how it supported the business .
What was the population from which the sample was drawn : What was the population from which the sample was drawn? Why was this particular sample selected? What did the participants do- e.g. complete a survey, participate in an interview? What kind of research was this: Experimental? Correlational?
Write a paragraph explaining the con side of your selected : Write a paragraph, explaining the Pro side of your selected topic. Write a paragraph, explaining the Con side of your selected topic. Which side more closely aligns with your belief/feeling about the topic (Pro or Con)?
Obtain the relevant data of the sedimentation tank : Write a reflective journal on what have been observed in the water treatment plant and what functions do each unit operation have in water treatment;

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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