c++ 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).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

c++

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).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education