You are an IT Manager for a small company and must create a program to track your
Question:
You are an IT Manager for a small company and must create a program to track your company’s personal
computer inventory.
Create a class that can be used for a Personal Computer. The class should have attributes for the:
-Manufacturer (e.g. Dell, Gateway, etc.),
-Form Factor (laptop/desktop),
-Serial Number
-Processor ( I3, I5, I7, AMD Ryzen 3, AMD Ryzen 5, etc.),
-RAM (4, 6, 8, 16, 32, or 64GB),
-Storage Type (UFS, SDD, HDD) and
-Storage Size (128GB, 256GB, 512GB, 1TB, 2TB).
The constructor must accept the manufacturer, form factor, serial number, processor, RAM, storage type/size. Create accessor methods that allow these attributes to be retrieved individually. Create mutator methods that allow the RAM and the storage drive (type and size) to be changed. Incorporate exception handling to reject invalid values in the constructor and mutator methods. Create a toString() method formulate a string containing the manufacturer, form factor, serial number, processor, RAM, and storage type/size.
Write a main program that creates a vector that can contain personal computers. The program should prompt the user for an indeterminate number of personal computers, create a personal computer object, and add the object to the vector. After each personal computer is entered the program should display the object that was just created and the total number of personal computers in the list/vector. When the user has finished entering personal computers into their inventory, the program should display the contents of the inventory list (complete list of personal computers).