Question: Question 1 : Write a complete program that uses the Computer class you created and tests its functionality: a . Declare a single Computer object

Question 1:
Write a complete program that uses the Computer class you created and tests its functionality:
a. Declare a single Computer object named base. Call the printConfig to show the values.
b. Declare a single Computer object called mySystem and during declaration initialize it to:
73000, A0010,16,intel-i5,4,2.7. Call the printConfig method of the object created
and display to the screen/console.
c. Declare a vector called inventory of class Computer.
d. Ask the user to input the information for 3 new system configurations. All information can
be entered on the same line and strings should NOT have a space.
i.e. Enter System Info: 76002 A000532 AMD-R742.55
e. The information is to be stored in the vector when entered.
f. Create and empty a data file Lab2Inventory.dat and write to it using the value returned
by printConfig for every item in your vector.
g. Explicitly close the output file.
h. Provide code, screen shots, and the output of your data file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!