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

  Software engineering code of ethics

1. "Software Engineering Code of Ethics and Professional Practice" Please respond to the following:•Describe one of the eight principles of the ACM Software Engineering Code of Ethics and Professional Practice and explain why the principle is impo..

  What are possible limitations using macros

What are possible limitations using macros within Microsoft Excel and how would you convey this to a user

  Advancing call center logistics

Advancing Call Center Logistics

  Explain in detail what the switches know

Do switches know the entire data link path between the sending and receiving host, explain in detail what the switches know?

  Creating access database for storing employee information

Investigate and present a proposal for the implementation of an Information Technology (IT) system for a small (4-user) business section (for example, Human Resources) of an organization of your choice (real or fictitious).

  Create a swimlane document flowchart

Create a swimlane document flowchart for the following Fitter Snacker sales process. Use the swimlanes of Customer, Sales, Manufacturing, and Procurement.Here is a description of what happens when a customer wants to buy cases of Fitter Snack..

  Develop a first-cut sequence diagram

Develop a first-cut sequence diagram, which only includes the actor and problem domain classes. Add the view layer classes and the data access classes to your diagram from part a. Develop a design class diagram based on the domain class diagram and..

  Construct resolution proofs to demonstrate truth

Can you construct resolution proofs to demonstrate the truth of each of these statements given the 5 facts listed above? Do so if possible.Otherwise add the facts you need & then construct the proofs.

  Capabilities of wimax

Using any source of your choosing, research ADO.NET and in your own words, in about one paragraph, describe your understanding of it. Also, list your sources by providing links and/or printed book/article names.

  Managing a large financial project

Your company has just hired a new CEO, and you make an appointment with her to discuss a large financial project that you have been managing.

  Enter the last names of five candidates

Write a program that allows users to enter the last names of five candidates in a local election and the number of votes received by each candidate. The program should then output each candidate's name, the number of votes received, and the percentag..

  Determine why that happens by closely examining your code

You may have noticed that for some runs, ga terminates with an error that the nonlinear constraint file is not returning a real value. Determine why that happens by closely examining your code. How would you fix this issue? Subsequently, re-run the g..

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