CS V13 Object-Oriented Group Project 8. Created class Computer with 12 iterations.
ubuntu2004
Kernel: Python 3 (system-wide)
GP_08_Computer_v01
In [4]:
Out[4]:
1st object: <__main__.Computer object at 0x000002B416667E20>
2nd object: <__main__.Computer object at 0x000002B416667EB0>
GP_08_Computer_v02
In [5]:
Out[5]:
Brand: None
Brand: HP
Brand: Lenovo
GP_08_Computer_v03
In [6]:
Out[6]:
Brand: None
Brand: HP
The object with the brand None was destroyed.
The object with the brand HP was destroyed.
GP_08_Computer_v04
In [7]:
Out[7]:
Brand: None Motherboard: None
Brand: HP Motherboard: None
Brand: Apple Motherboard: M1
Brand: Dell Motherboard: None
Brand: Lenovo Motherboard: Gigabyte
The object with the brand None was destroyed.
The object with the brand HP was destroyed.
The object with the brand Apple was destroyed.
The object with the brand Dell was destroyed.
The object with the brand Lenovo was destroyed.
GP_08_Computer_v05
In [12]:
Out[12]:
Brand: None Motherboard: None
Brand: Apple Motherboard: None
---------- Note the effect of accessor and mutator methods below ----------
Using accessor method for the object comp3 - the value of Brand = Apple
Using accessor method for the object comp3 - the value of Motherboard = M1
Using mutator method for the object comp3 - the new value of Brand = None
Using mutator method for the object comp3 - the new value of Motherboard = None
Brand: Lenovo Motherboard: Asus
---------- Note the effect of accessor and mutator methods above ----------
Brand: Dell Motherboard: None
Brand: Dell Motherboard: AMD
The object with the brand and motherboard of None with None was destroyed.
The object with the brand and motherboard of Apple with None was destroyed.
The object with the brand and motherboard of Lenovo with Asus was destroyed.
The object with the brand and motherboard of Dell with None was destroyed.
The object with the brand and motherboard of Dell with AMD was destroyed.
GP_08_Computer_v06
In [13]:
Out[13]:
Brand: None Motherboard: None CPU: None
Brand: HP Motherboard: None CPU: None
Brand: HP Motherboard: Intel CPU: None
Brand: HP Motherboard: Intel CPU: i3
Brand: Dell Motherboard: None CPU: None
Brand: Dell Motherboard: None CPU: None
Brand: Dell Motherboard: AMD CPU: None
Brand: Dell Motherboard: AMD CPU: Ryzen 5
---------- Note the effect of accessor and mutator methods below ----------
Using accessor method for the object comp7 - the value of Brand = Dell
Using accessor method for the object comp7 - the value of Motherboard = AMD
Using accessor method for the object comp7 - the value of CPU = Ryzen 5
Using mutator method for the object comp7 - the new value of Brand = None
Using mutator method for the object comp7 - the new value of Motherboard = None
Using mutator method for the object comp7 - the new value of CPU = None
---------- Note the effect of accessor and mutator methods above ----------
GP_08_Computer_v07
In [19]:
Out[19]:
Brand: None Motherboard: None CPU: None
Brand: HP Motherboard: None CPU: None
Brand: HP Motherboard: Intel CPU: None
Brand: HP Motherboard: Intel CPU: i3
Brand: Dell Motherboard: None CPU: None
Brand: Dell Motherboard: None CPU: None
Brand: Dell Motherboard: AMD CPU: None
Brand: Dell Motherboard: AMD CPU: Ryzen 5
---------- Note the effect of accessor and mutator methods below ----------
Using accessor method for the object comp7 - the value of Brand = Dell
Using accessor method for the object comp7 - the value of Motherboard = AMD
Using accessor method for the object comp7 - the value of CPU = Ryzen 5
Using mutator method for the object comp7 - the new value of Brand = None
Using mutator method for the object comp7 - the new value of Motherboard = None
Using mutator method for the object comp7 - the new value of CPU = None
---------- Note the effect of accessor and mutator methods above ----------
---------- Starting to destroy objects ----------
The object with the brand None with a None motherboard and None CPU was destroyed.
The object with the brand HP with a None motherboard and None CPU was destroyed.
The object with the brand HP with a Intel motherboard and None CPU was destroyed.
The object with the brand HP with a Intel motherboard and i3 CPU was destroyed.
The object with the brand Dell with a None motherboard and None CPU was destroyed.
The object with the brand Dell with a AMD motherboard and None CPU was destroyed.
The object with the brand Lenovo with a Asus motherboard and Intel i7 CPU was destroyed.
GP_08_Computer_v08
In [18]:
Out[18]:
Brand: HP Motherboard: None CPU: None , 2 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: None , 3 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 , 4 object(s) instantiated.
Brand: Dell Motherboard: None CPU: None , 5 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: None , 6 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 , 7 object(s) instantiated.
Total Object (Computers) Instantiated so far: 7
---------- Note the effect of accessor and mutator methods below ----------
Using accessor method for the object comp7 - the value of Brand = Dell
Using accessor method for the object comp7 - the value of Motherboard = AMD
Using accessor method for the object comp7 - the value of CPU = Ryzen 5
Using mutator method for the object comp7 - the new value of Brand = None
Using mutator method for the object comp7 - the new value of Motherboard = None
Using mutator method for the object comp7 - the new value of CPU = None
---------- Note the effect of accessor and mutator methods above ----------
---------- Starting to destroy objects ----------
The object with the brand None with a None motherboard and None CPU was destroyed.
The object with the brand HP with a None motherboard and None CPU was destroyed.
The object with the brand HP with a Intel motherboard and None CPU was destroyed.
The object with the brand HP with a Intel motherboard and i3 CPU was destroyed.
The object with the brand Dell with a None motherboard and None CPU was destroyed.
The object with the brand Dell with a AMD motherboard and None CPU was destroyed.
The object with the brand Lenovo with a Asus motherboard and Intel i7 CPU was destroyed.
GP_08_Computer_v09
In [22]:
Out[22]:
Brand: HP Motherboard: None CPU: None RAM: None , 2 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: None RAM: None , 3 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: None , 4 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 , 5 object(s) instantiated.
Brand: Dell Motherboard: None CPU: None RAM: None , 6 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: None RAM: None , 7 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: None , 8 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 , 9 object(s) instantiated.
Total Computers Instantiated: 9
---------- Note the effect of accessor and mutator methods below ----------
Using accessor method for the object comp9 - the value of Brand = Dell
Using accessor method for the object comp9 - the value of Motherboard = AMD
Using accessor method for the object comp9 - the value of CPU = Ryzen 5
Using accessor method for the object comp9 - the value of RAM = 16 GB DDR4
Using mutator method for the object comp9 - the new value of Brand = None
Using mutator method for the object comp9 - the new value of Motherboard = None
Using mutator method for the object comp9 - the new value of CPU = None
Using mutator method for the object comp9 - the new value of RAM = None
---------- Note the effect of accessor and mutator methods above ----------
---------- Starting to destroy objects ----------
The object with the brand None with a None motherboard None CPU and None RAM was destroyed. 1 object(S) deleted
The object with the brand HP with a None motherboard None CPU and None RAM was destroyed. 2 object(S) deleted
The object with the brand HP with a Intel motherboard None CPU and None RAM was destroyed. 3 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU and None RAM was destroyed. 4 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU and 32 GB DDR3 RAM was destroyed. 5 object(S) deleted
The object with the brand Dell with a None motherboard None CPU and None RAM was destroyed. 6 object(S) deleted
The object with the brand Dell with a AMD motherboard None CPU and None RAM was destroyed. 7 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU and None RAM was destroyed. 8 object(S) deleted
The object with the brand Lenovo with a Asus motherboard Intel i7 CPU and 32 GB DDR4 RAM was destroyed. 9 object(S) deleted
GP_08_Computer_v10
In [25]:
Out[25]:
Brand: HP Motherboard: None CPU: None RAM: None Hard Disk: None , 2 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: None RAM: None Hard Disk: None , 3 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: None Hard Disk: None , 4 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: None , 5 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: 500GB NVME SSD , 6 object(s) instantiated.
Brand: Dell Motherboard: None CPU: None RAM: None Hard Disk: None , 7 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: None RAM: None Hard Disk: None , 8 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: None Hard Disk: None , 9 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: None , 10 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: 1 TB HDD , 11 object(s) instantiated.
Total Objects (Courses) Instantiated so far: 11
--------------------------------------------
---------- Note the effect of accessor and mutator methods below ----------
Using accessor method for the object comp11 - the value of Brand = Dell
Using accessor method for the object comp11 - the value of Motherboard = AMD
Using accessor method for the object comp11 - the value of CPU = Ryzen 5
Using accessor method for the object comp11 - the value of RAM = 16 GB DDR4
Using accessor method for the object comp11 - the value of HD = 1 TB HDD
Using mutator method for the object comp11 - the new value of Brand = None
Using mutator method for the object comp11 - the new value of Motherboard = None
Using mutator method for the object comp11 - the new value of CPU = None
Using mutator method for the object comp11 - the new value of RAM = None
Using mutator method for the object comp11 - the new value of HD = None
---------- Note the effect of accessor and mutator methods above ----------
---------- Starting to destroy objects ----------
The object with the brand None with a None motherboard None CPU None RAM and None was destroyed. 1 object(S) deleted
The object with the brand HP with a None motherboard None CPU None RAM and None was destroyed. 2 object(S) deleted
The object with the brand HP with a Intel motherboard None CPU None RAM and None was destroyed. 3 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU None RAM and None was destroyed. 4 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM and None was destroyed. 5 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM and 500GB NVME SSD was destroyed. 6 object(S) deleted
The object with the brand Dell with a None motherboard None CPU None RAM and None was destroyed. 7 object(S) deleted
The object with the brand Dell with a AMD motherboard None CPU None RAM and None was destroyed. 8 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU None RAM and None was destroyed. 9 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM and None was destroyed. 10 object(S) deleted
Total Object (Courses) Deleted so far: 10
The object with the brand Lenovo with a Asus motherboard Intel i7 CPU 32 GB DDR4 RAM and 1 TB NVME SSD was destroyed. 11 object(S) deleted
Total Courses Deleted: 11
GP_08_Computer_v11
In [2]:
Out[2]:
Brand: HP Motherboard: None CPU: None RAM: None Hard Disk: None GPU: None , 2 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: None RAM: None Hard Disk: None GPU: None , 3 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: None Hard Disk: None GPU: None , 4 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: None GPU: None , 5 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: 500GB NVME SSD GPU: None , 6 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: 500GB NVME SSD GPU: GTX 1080 TI , 7 object(s) instantiated.
----- New Attributes' Values using attributes' names instead of mutator method -----
Brand: Acer Motherboard: Intel CPU: i3 RAM: None Hard Disk: None GPU: None , 7 object(s) instantiated.
----- New attribute's value is (Using Attributes' Names): -----
Brand: Acer
----- New attributes' values are (Using Getter Methods): -----
Brand: Acer
Brand: Dell Motherboard: None CPU: None RAM: None Hard Disk: None GPU: None , 8 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: None RAM: None Hard Disk: None GPU: None , 9 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: None Hard Disk: None GPU: None , 10 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: None GPU: None , 11 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: 1 TB HDD GPU: None , 12 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: 1 TB HDD GPU: GTX 2060 , 13 object(s) instantiated.
Total Computers Instantiated so far: 13
--------------------------------------------
---------- Starting to destroy objects ----------
The object with the brand None with a None motherboard None CPU None RAM None and None GPU was destroyed. 1 object(S) deleted
The object with the brand HP with a None motherboard None CPU None RAM None and None GPU was destroyed. 2 object(S) deleted
The object with the brand HP with a Intel motherboard None CPU None RAM None and None GPU was destroyed. 3 object(S) deleted
The object with the brand Acer with a Intel motherboard i3 CPU None RAM None and None GPU was destroyed. 4 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM None and None GPU was destroyed. 5 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM 500GB NVME SSD and None GPU was destroyed. 6 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM 500GB NVME SSD and GTX 1080 TI GPU was destroyed. 7 object(S) deleted
The object with the brand Dell with a None motherboard None CPU None RAM None and None GPU was destroyed. 8 object(S) deleted
The object with the brand Dell with a AMD motherboard None CPU None RAM None and None GPU was destroyed. 9 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU None RAM None and None GPU was destroyed. 10 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM None and None GPU was destroyed. 11 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM 1 TB HDD and None GPU was destroyed. 12 object(S) deleted
Total Computers Deleted so far: 12
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM 1 TB HDD and GTX 2060 GPU was destroyed. 13 object(S) deleted
Total Courses Deleted: 13
GP_08_Computer_v12
In [1]:
Out[1]:
Brand: None Motherboard: None CPU: None RAM: None Hard Disk: None GPU: None Operating System: None , 1 object(s) instantiated.
Brand: HP Motherboard: None CPU: None RAM: None Hard Disk: None GPU: None Operating System: None , 2 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: None RAM: None Hard Disk: None GPU: None Operating System: None , 3 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: None Hard Disk: None GPU: None Operating System: None , 4 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: None GPU: None Operating System: None , 5 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: 500GB NVME SSD GPU: None Operating System: None , 6 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: 500GB NVME SSD GPU: GTX 1080 TI Operating System: None , 7 object(s) instantiated.
Brand: HP Motherboard: Intel CPU: i3 RAM: 32 GB DDR3 Hard Disk: 500GB NVME SSD GPU: GTX 1080 TI Operating System: Windows 10 Home , 8 object(s) instantiated.
----- New Attributes' Values using attributes' names instead of mutator method -----
Brand: Acer Motherboard: Intel CPU: i3 RAM: None Hard Disk: None GPU: None Operating System: None , 8 object(s) instantiated.
----- New attribute's value is (Using Attributes' Names): -----
Credit Hours: Acer
----- New attributes' values are (Using Getter Methods): -----
Credit Hours: Acer
Brand: Dell Motherboard: None CPU: None RAM: None Hard Disk: None GPU: None Operating System: None , 9 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: None RAM: None Hard Disk: None GPU: None Operating System: None , 10 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: None Hard Disk: None GPU: None Operating System: None , 11 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: None GPU: None Operating System: None , 12 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: 1 TB HDD GPU: None Operating System: None , 13 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: 1 TB HDD GPU: GTX 2060 Operating System: None , 14 object(s) instantiated.
Brand: Dell Motherboard: AMD CPU: Ryzen 5 RAM: 16 GB DDR4 Hard Disk: 1 TB HDD GPU: GTX 2060 Operating System: Ubuntu , 15 object(s) instantiated.
Total Computers Instantiated so far: 15
--------------------------------------------
---------- Starting to destroy objects ----------
The object with the brand None with a None motherboard None CPU None RAM None with a None GPU and None as the operating system was destroyed. 1 object(S) deleted
The object with the brand HP with a None motherboard None CPU None RAM None with a None GPU and None as the operating system was destroyed. 2 object(S) deleted
The object with the brand HP with a Intel motherboard None CPU None RAM None with a None GPU and None as the operating system was destroyed. 3 object(S) deleted
The object with the brand Acer with a Intel motherboard i3 CPU None RAM None with a None GPU and None as the operating system was destroyed. 4 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM None with a None GPU and None as the operating system was destroyed. 5 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM 500GB NVME SSD with a None GPU and None as the operating system was destroyed. 6 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM 500GB NVME SSD with a GTX 1080 TI GPU and None as the operating system was destroyed. 7 object(S) deleted
The object with the brand HP with a Intel motherboard i3 CPU 32 GB DDR3 RAM 500GB NVME SSD with a GTX 1080 TI GPU and Windows 10 Home as the operating system was destroyed. 8 object(S) deleted
The object with the brand Dell with a None motherboard None CPU None RAM None with a None GPU and None as the operating system was destroyed. 9 object(S) deleted
The object with the brand Dell with a AMD motherboard None CPU None RAM None with a None GPU and None as the operating system was destroyed. 10 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU None RAM None with a None GPU and None as the operating system was destroyed. 11 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM None with a None GPU and None as the operating system was destroyed. 12 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM 1 TB HDD with a None GPU and None as the operating system was destroyed. 13 object(S) deleted
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM 1 TB HDD with a GTX 2060 GPU and None as the operating system was destroyed. 14 object(S) deleted
Total Computers Deleted so far: 14
The object with the brand Dell with a AMD motherboard Ryzen 5 CPU 16 GB DDR4 RAM 1 TB HDD with a GTX 2060 GPU and Ubuntu as the operating system was destroyed. 15 object(S) deleted
Total Courses Deleted: 15
In [0]: