Create a new manager class

Assignment Help Database Management System
Reference no: EM13336783

Create a new package called task04. Copy your classes from package task03 into this package. Create a new class: Manager class.

Manager class

Create a Manager class. In the Manager class create an instance variable which is an ArrayList of at least five objects. Create methods to:

1. add an object to the end of the ArrayListof objects

2. display all objects in the ArrayListof objects (output the ArrayListto the screen usingtoString on each object)

3. display a particular object retrieved from the ArrayListbased on particular criteria. Write a method that will return a particular object. The method has a String parameter which corresponds to a name or something identifying the object. It should search the ArrayListone element at a time. If it finds the object whose name corresponds with the String parameter it should return a reference to that object from the ArrayList and also output a message informing the user of the location where this object was found (e.g. the list position). If it searches all of the elements and cannot find the name it should return null and output the position as -1.

4. delete an object from the ArrayList.

5. Test your manager class with appropriate test data in your main method. Provide screen shots of your testing in your final report.

Reference no: EM13336783

Questions Cloud

Evaluate the molar solubilty of baco3 : Calculate the molar solubilty of BaCO3 in a 0.10 M solution of Na2CO2 (aq). Ksp (BaCO3) = 8.1 x 10^-9
Create a class called testsystem : Create a class called TestSystem and write atest method which tests your system using a scenario. In your report document, describe the testing scenario and the expected behaviour of your system. Provide screen shots of your system testing in your..
What is the wavelength of the third harmonic of vibration : A wire 4 m long and with a mass of 0.5 g is under a tension of 112N. It is made out of the material aluminum. (a)What is the speed of transverse waves in the wire
Compute the ph of a solution prepared by adding hcl : Calculate the pH of a solution prepared by adding 20.0 mL of 0.100 M HCl to 80.0 mL of a buffer that is comprised of 0.25 M NH3 and 0.25 M NH4Cl. Kb of NH3 = 1.8 x 10-5.
Create a new manager class : Create a new package called task04. Copy your classes from package task03 into this package. Create a new class: Manager class.
What is the electric field strength at distance from nucleus : The neutral hydrogen atom in its normal state behaves in some respects like an electric charge distribution which consists of a point charge of magnitude +e surrounded by a distribution of negative charge
What is the accelertation of the object : Two forces act on a 6.5 kg object sitting on friction-less horizontal surface and force is 25N in the(+) x-direction and the other is 35N in the (-)x-direction. What is the accelertation of the object
Explain new objects based on extending other objects : One of the new classes must be based on a reference extending an existing class from package task02 directly(similar to how Customer extends Person in the sample code).Do not repeat that package task02 class in the task03 package.
Explain the ph of a solution prepared by mixing : What is the pH of a solution prepared by mixing 100 ml of 0.0500 M HCL with 300ml of 0.500 M HF? Ka(HF) = 7.1 x 10^-4

Reviews

Write a Review

Database Management System Questions & Answers

  Draw a uml class diagram

Agencies typically keep the details of the employers they have dealt with, even when they have no current business with them.

  Design work breakdown structure for designing database

Design a work breakdown structure for the task below: Designing the database, Working on the website content

  Provide a sql script file to define the database schema

Provide a SQL script file to define the database schema, HappyCustomerDB. Your script should be organised so that whenever the script is loaded all the database objects will be dropped and re-created.

  How do these change with variation in the condence values

Looking at the predictive accuracy (Percent correct) results for tree learning on these data sets, has learning improved accuracy over the baseline ?

  Develop basic tools to expedite use of oracles dictionary

Write a script that provides all of the information in, and duplicates the formatting of, Oracle's SQL*Plus describe command. Additionally, the output should add the comments on the rows. Input: owner and table name. Output: columns for Name, Null..

  Installing the ms-sql server on your computer

Use Hands-on Projects that are in the back of your Chapter to introduce you to the Microsoft SQL Server 2008.

  Describe the different operations of relational algebra

Describe relationships with the example. Also illustrate degree of relationship for that example. Describe the different operations of relational algebra with suitable example each.

  Write sql statements to calculate average salary

Write SQL statements that do the following: Calculate the average salary for all employees. Calculate the maximum salaries for exempt and non-exempt employees.

  Explain evaluating a proposal for acquisition and sourcing

When evaluating a proposal for acquisition and sourcing, are there considerations that are unique in the case of an IT project versus a non-IT project

  Construct a query that can be used on a report

Construct a query that can be used on a report for determining how many days the customer's invoice will require payment if total amount due is within 45 days. Provide a copy of your working code as part of the paper.

  Find the decryption function and decipher

Find '(2007), '(2008), and '(b), where b is the integer obtained from the last four digits of your student number.

  Explain efficient algorithm for edge-labeled graph

Explain efficient algorithm that, provided edge-labeled graph G with distinguished vertex v0 and sequence s = σ1, σ2, ..., σk of characters from Σ, returns path in G which begins at v0.

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