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

  Find a recurrence relation for the number

Find a recurrence relation for the number of bit strings that contain the string 01 . what are the initial condition , and how many bit strings of length seven contain the string 01. please explain it fully step by step to better undestand

  Compare signature-based and anomaly-based network

Compare and contrast signature-based and anomaly-based network intrusion detection systems. In your analysis, describe at least three ways in which the two types of IDS are similar, and at least three ways in which they differ.

  Compute the fraction of time mary spends using her telephone

Assuming a single-server limited-capacity Bernoulli queuing process with 1-minute frames, compute the fraction of time Mary spends using her telephone.

  Describe elements of credit card theft and identity thef

Describe the elements of Credit Card Theft and Identity Theft. Describe how technology is used to facilitate these crimes

  How would you select your server components

How would you design the logical structure of Active Directory for the Rough Country Miles of Alaska, and what domain naming structure would you suggest?

  Calculate height and velocity of balloon

The calculation of height and velocity should be done in a single function that will accept the time, calculate the height and velocity of the balloon and send both the height and velocity back to the function call.

  Amusement park system

Amusement Park System

  Write a paper on the relative merits of .net and j2ee

Write a paper on the relative merits of .NET and J2EE as a platform for business systems integration.

  Explain whetherucita should or should not be adopted

What are your arguments in support of these points? You really did not answer the question as these don't really explain whether you believe the UCITA should or should not be adopted.

  Discuss and analyze the mbti outcomes

Discuss and analyze the MBTI outcomes for yourself and for your teammates. Based on the MBTI insights, consider: How you might improve your working relationships with your teammates.

  Determine minimum number of tapes needed for backups

Days of the week (including the weekend), determine the minimum number of tapes needed to accommodate seven days worth of backups?

  Key principles on smart phone devices gps tracking system

How to apply these key principles on smart phone devices GPS tracking system/software to mitigate user personal information be exposed undesirably.

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