The IT Centre of a small company looks after all the PCs that are used by staff. When a new PC is purchased by the company it is allocated a unique serial number. Each PC has a model and year of purchase. Some of the computers are laptops.
You have been given the task to design and implement a small application which will maintain records of the company's PCs. The application is to be written in Java.- eclipse
The application that you are required to develop is considered to be the 'Beta version' of the software. This beta version is being developed to provide a prototype for the final version which will be run in a Windows environment with a graphical user interface. Your final documentation should reflect on the design and implementation of your application so that software developers producing the final version will have the benefit of your experience.
1 Design a class Computer with the following properties:
• serial number string, default: ??????
• model string, default: Unknown
• laptop boolean, default: false
• year purchased integer, default: -1
Write a constructor and a method to print details of a Computer on the console.
Write a simple application to test your Computer class.
2 Amend your Computer class by writing the following additional methods:
• methods to set and get the properties of a Computer
• a method to ask the user for details of a Computer
• a toString() method.
Write a simple application to test your additional methods.
3 Design and implement a container class named Computers which can contain details of every Computer for which the IT Centre are responsible. Your class should (at least) have methods to add a Computer and print details of all Computers.
4 Develop a menu driven application which will enable the IT Centre staff to:
• add a Computer
• display details of all Computers
• display details of all Computers purchased on or before a given year.