Question
In this labwork you are expected to implement a program that builds a computer for different purposes using Template Method pattern. Your program needs to
In this labwork you are expected to implement a program that builds a computer for different purposes using Template Method pattern. Your program needs to able to build two types of computers Gaming and Office. CPU, Memory and type of storage depends on the computer type. For a gaming computer you need to put: High-end multi-core cpu High-clock speed memory SSD storage For an office computer you need to put: Low-end dual-core cpu Energy-efficient memory Energy-efficient HDD However, way you build a computer is a set of pre-determined steps: Plug CPU Plug Memory Plug Storage Plug peripherals (which are common for both type of computer)
In this labwork you are expected to implement a program that builds a computer for different purposes using Template Method pattern. Your program needs to able to build two types of computers Gaming and Office. CPU, Memory and type of storage depends on the computer type. For a gaming computer you need to put: * High-end multi-core cpu * High-clock speed memory * SSD storage For an office computer you need to put: * Low-end dual-core cpu * Energy-efficient memory * Energy-efficient HDD However, way you build a computer is a set of pre-determined steps: * Plug CPU * Plug Memory * Plug Storage * Plug peripherals (which are common for both type of computer) F* 1 * run: Putting high-end multi-core cpu Putting high clock speed memory Putting ssd storage Connecting mouse, keyboard, monitor Putting low-end dual core cpu. Putting energy efficient memory. Putting energy efficient hdd. Connecting mouse, keyboard, monitor BUILD SUCCESSFUL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started