Validating the bounds of data entered and not storing


Write a program in Java to satisfy the following :

Create a class to store information on Network infrastructure assets.

Network Infrastructure Asset may include PCs, Monitors, Switches, Routers, Cables, Access Points etc.

The class must store the serial number, name of device, model number, date of manufacture, date of purchase, date of install, date of last maintenance, battery replacement date ( for ups devices ),

Design and test various containers to store the data.

Ensure that the container can be persisted to non-volatile storage using the methods, saveData() and restoreData().

Validate all user data to ensure consistency, reduce errors and that mandatory data is present. Test for missing data, non-numbers or dates, out of range numbers.

Place all input and output operations into try catch handlers.

Provide statistic methods from the data including count of items, overdue maintenance or UPS batteries

Use Java Swing classes for Object-Oriented Graphical User Interface

Additional 50 Marks will be awarded for :

Validating the bounds of data entered and not storing invalid data. Return negative result codes for invalid data and test for these in your test.

Prompt the user to repair or re-enter invalid data and program must not crash.

Add a search method to find the index of a found asset.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Validating the bounds of data entered and not storing
Reference No:- TGS02931467

Now Priced at $15 (50% Discount)

Recommended (95%)

Rated (4.7/5)