Question: SA Object 1 Description: Consider the following Five objects: Foundry, VRAM, GPUManufacturer, Processor and Nvidia. GPUManufacturer consists of a single Foundry and multiple VRAM. Nvidia

SA Object 1 Description: Consider the following Five objects: Foundry, VRAM, GPUManufacturer, Processor and Nvidia. GPUManufacturer consists of a single Foundry and multiple VRAM. Nvidia is a type of GPUManufacturer and is composed of Processor: class Foundry \{
//...
string process; string name; \} class Processor \{//... Processor(float cl): clock(c1)\{\} class VRAM \{//... int bytes; string type; \}; float clock; ; class Nvidia : public GPUManufacturer \{ public: class GPUManufacturer \{ public: GPUManufacturer(string
b
, int nmod) : brand(b), num_vram(nmod)\{ foundry = new Foundry; vram = new VRAM[num_vram];
//...
\} Nvidia(string a, int
g
):
arch(a),gen(g){}
void aiWorkloads()\{ cout "CUDA"; \} void marketstrategy()\{ cout "Good Performance! Higher Costs!"; sellToMiners(); \}
//...
private: virtual void consumervalue()=
\theta
; virtual void aiworkloads ()
=\theta
; int gen; Processor proc; string arch; void marketstrategy()\{ cout "High Performance! Low Cost!"; \}
//...
private: void sellToMiners ()\{ cout
"$\(\ll "\$ \$ \$ " ;\}\)quot;;}
string brand; Foundry * foundry; VRAM * vram; int num_vram; \};

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 Programming Questions!