-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComputerAssembly.h
More file actions
43 lines (36 loc) · 960 Bytes
/
Copy pathComputerAssembly.h
File metadata and controls
43 lines (36 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include<iostream>
#include"PowerSupply.h"
#include"StorageDevice.h"
#include"NetworkCard.h"
#include"Computer.h"
#include"Case.h"
#include"PhysicalMemory.h"
#include"Battery.h"
using namespace std;
class ComputerAssembly
{
protected:
double totalCost;
ComputerAssembly* CA;
Computer* Comp;
PowerSupply* powerSupply;
Battery* battery;
NetworkCard* networkCard;
StorageDevice* storageDevice;
Case* deviceCase;
MainMemory* RAM;
PhysicalMemory* physicalMemory;
public:
ComputerAssembly();
~ComputerAssembly();
StorageDevice* createStorageDevice();
StorageDevice* createStorageDevice(string); // for tablet
NetworkCard* createNetworkCard();
PowerSupply* createPowerSupply(int option1, int option2);
Battery* createBattery(int lowerLimit, int upperLimit);
MainMemory* createMainMemory(int lowerLimit, int upperLimit, int chipSize);
string chooseCaseColor();
virtual void Build(Computer*& Comp, int);
void DisplayMenu();
};