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

  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