Write a program that uses an arraylist of parameter type

Assignment Help Basic Computer Science
Reference no: EM13307994

Write a program that uses an ArrayList of parameter type Contact to store a database of contacts. The Contact class should store the contact's first and last name, phone number, and email address. Add appropriate accessor and mutator methods. Your database program should present a menu that allows the user add a contact, display all contacts, search for a specific contact and display it, or search for a specific contact and give the user the option to delete it. The searches should find any contact where an instance variable contains a target search string. For example, if "elmore" is the search target then any contact where the first name, last name, phone number, or email address contains "elmore" should be returned for display or deletion. Use a "for each" loop to iterate through the ArrayList.

Reference no: EM13307994

Questions Cloud

Implement a class for complete binary trees : You should have only one member function that adds a new node(since there is only one place where a node may be added, and one member function that removes the last node of the tree.
Current work organization (or an organization of interest) : Using your current work organization (or an organization of interest) as the subject matter
Determine the values of stress and the change in thickness : A rectangular steel plate with thickness t=0.625 inches is subjected to normal stresses sigma x and sigma y.The strain in the x direction is known to be 0.00065 and the strain in the y direction is known to be 0.0004.
Determine the stresses acting on an element oriented : An element in plane stress is subjected to stresses sigma x=27 MPA,sigma y=14 MPA,sigma xy=6MPA.Using mohr's circle,determine the stresses acting on an element oriented at an angle 40 degrees from the x axis.
Write a program that uses an arraylist of parameter type : For example, if "elmore" is the search target then any contact where the first name, last name, phone number, or email address contains "elmore" should be returned for display or deletion. Use a "for each" loop to iterate through the ArrayList.
Compute the magnitude of the acceleration of the elevator : A man stands on a scale in an elevator that is accelerating upward. compute the magnitude of the acceleration of the elevator?
Find distance required for police officer to overtake car : At the moment when A passes P, the police car begines to accelerate at the constant rate of 6m/s^2 until a speed of 160km/h is achieved, and that speed is then maintained.
Explain a python program storing and processing simple bank : A Python program storing and processing simple bank records is in the early stages of development. The records are stored in a text file (bank.txt) that contains, for each bank customer, their given name, account number and balance.
Develop a plan to connect your remote users : Develop a plan to connect your remote users. your solution can involve more than one remote access type.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write piece of code uses a loop to compute and precending

The Fibonacci numbers are a sequence of integers in which the first two elements are 1, and each following element is the sum of the two preceding elements

  A motor vehicle maintenance center wants to improve serv

A motor vehicle maintenance center wants to improve its services by using database management systems (DBMS) and data mining. What tables are needed in such a database and how can it help improve their 2.2, 3.2services?

  Calculate charges to determine the charge for each customer

A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional .50 per hour for each hour or part thereof in excess of three hours.

  How organizations communicate with prospective

In this assignment, you will locate examples of how the use of digital media was used to communicate information to achieve a specific goal of an organization or individual.

  Calculate and display the total retail value of all products

It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the application should stop looping display the final results.

  Create a class called word

Create a function display(string) which prints to the file with name equal to the string parameter, an alphabetical list of all words contained in the list along with the number of times they appeared in the input file.

  Find the distance from the point

find the distance from the point (1 2 3) from each of the following 1) the line of intersection of the plane p1 x-2y-3z=4 and p2 ; 2x-y +5z=1 2) the plane perpendicular to the ( X+2)/3= (Y-1)/-2 = (Z-3)/-1

  The number of page interrupts in fifo and lru page

A job has four pagse A, B, C, D and the main memory has two page frames only.

  Effort required for various project

Estimation of the effort required for various project tasks is one of the toughest assignments for a project planner. In an organization, who is the best judge for the effort needed for specific tasks? Please explain the basis for your answer.

  Create an applet to draw a digit using the method

Create an applet to draw a digit using the method fillRect of the class Graphics. For instance, if the input is 4, the applet will display the digit 4. In java language please

  How asymptotic notation can be used to rank the efficiency

To illustrate how asymptotic notation can be used to rank the efficiency of algorithms, use the relations "Ì" and "=" to put the orders of the following functions into a sequence, where e is an arbitrary real constant, 0

  Research methods to explain connectivity needs star clothing

Research the alternatives to address the connectivity needs for Star Clothing, and make a recommendation that includes the following.

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