-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComputerBuilderDriver.java
More file actions
53 lines (46 loc) · 1.91 KB
/
ComputerBuilderDriver.java
File metadata and controls
53 lines (46 loc) · 1.91 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
/*
* this is the java version of a call center
*/
import java.util.*;
public class ComputerBuilderDriver{
public static void main(String[] args) {
// to do: prompt the user weather they want to bulid a PC or a Laptop
ComputerBuilder.getLaptopOrDesktop();
// asign string for later printing
ComputerBuilder.type();
// to do: prompt the user for a name for this build
//nameOfBuild = ComputerBuilder.setNameOfBuild();
// to do: prompt the user for brand
//nameOfBrand = ComputerBuilder.setComputerBrand();
// to do: prompt the user for case type
if (laptopOrDesktop == 1){
ComputerBuilder.setSizeOfCase();
}
// to do: prompt the user for CPU brand
cpuBrand = ComputerBuilder.setCPUBrand();
// to do: prompt the user for CPU speed
cpuSpeed = ComputerBuilder.setCPUSpeed();
// to do: prompt the user for Hard Drive capacity
hardDriveCapacity = ComputerBuilder.setHardDriveCapacity();
// to do: prompt user for monitor brand
if (laptopOrDesktop == 1){
monitorBrand = ComputerBuilder.setMonitorBrand();
}
// to do: prompt user for monitor size
monitorSize = ComputerBuilder.setMonitorSize();
// to do: make a new object to store all this info in, call it name.object or something
if (laptopOrDesktop == 2){
ComputerBuilder myBuild = new ComputerBuilder(nameOfBuild, nameOfBrand,
cpuBrand, cpuSpeed, hardDriveCapacity, monitorSize);
}
if (laptopOrDesktop == 1){
ComputerBuilder myBuild = new ComputerBuilder(sizeOfCase, monitorBrand);
}
ComputerBuilder.print();
// to do: make up a bunch of prices and options for all the above
// probably go to newegg.com and just use what I find there
// to do: call a printf that outputs everthing they want and the prices
// and do it in a not ugly way
// and have a total at the bottom
}
}