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

  Define average or mean

In numerical analysis the average and standard deviation is often calculated

  Netstack college has received a grant to wire all

Netstack College has received a grant to wire all of its six buildings for 10/100 Ethernet. Four of the buildings contain classrooms and laboratories and will need to support 250 network connections each. One building is for administration and ..

  Demonstrate skills in drawing tools

To begin to combine and demonstrate skills in drawing tools, tweens, working with text, and telling a story

  Design an enhanced entity relationship

Develop, document and design an Enhanced Entity Relationship (EER) model for this situation.  You are working for country club with thousands of members. You have been tasked with designing a database to keep track of the members and their guests.

  Create direct-mapped data cache for the byte offset

Create the 128KB direct-mapped data cache which uses a 32 bit address and 16 bytes per block. Compute the following: How many bits are utilized for the byte offset?

  Incorporate this method into an application

Incorporate this method into an application that inputs a series of pairs of integers (one pair at a time) and determines whether the second value in each pair is a multiple of the first

  What can be the record source of the form

What can be the record source of the form

  Approach appropriate for company forefront of technology

However, adopting a secondary approach where others adopt early and a firm learns from their mistakes is often a viable strategy. When is each approach most appropriate and why?

  How many function evaluation does the genetic algorithm need

How many function evaluations does the genetic algorithm need? How many function evaluations does fmincon need?

  Write java program convert sorted array into balanced tree

Balanced Search Tree Write a program (in Java) that can convert a sorted array into a balanced binary search tree. For this project, a balanced binary tree is one where the size of the left and right subtrees at each node differs by at most one.

  Use html5 to create a document that contains

Insert a horizontal rule between the h1 element and the p element. Open your new document in a web browser to view the marked up document.

  Describe the role of patents as barriers to entry

Describe the role of  patents as barriers to entry in the Pharmaceutical industry.

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