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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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