Reference no: EM13158856
Design a program to perform the following task:
Calculate the total price based on several key parts required to build a state-of-the-art gaming computer. The user will have the option of selecting different parts.
For example, Windows 7, Windows 8 or Mac OS/X for Operating systems, 4 GB, 8 GB or 12 GB for RAM and 15",17" or 22" Monitors.
There are 5 components of your submission including:
- Program Description
- A detailed, clear description of the program you are building.
- Analysis
- Demonstrates your thought process and steps used to analyze the problem.
- Be sure to include the required input and output and how you will obtain the required output from the given input?
- Also, include your variable names and definitions.
- Be sure to describe the necessary formulas and sample calculations that might be needed.
- You should talk about how you determined your computer part prices.
- Test plan
- Prepare at least 3 sets of input data (Test data) along with their expected output for testing your program.
- Your test data can be presented in the form of a table as follows (note: feel free to adapt to your design)
- Flowchart
- Provide a flowchart for your design. You can use Word, Powerpoint, Visio or any software you have available that will allow to draw shapes and connectors. You can try also RAPTOR a flowchart-based programming environment https://raptor.martincarlisle.com/
- Pseudocode
- Provide pseudocode of your overall design that fulfills the requirements of the project
- Provide C code, compile and run it
All of these components should be placed in word document for submission.
All of these components can be placed in word document.
The C code have to be a txt document written with Notepad++ (https://notepad-plus-plus.org/)
Additional details about the program you need to write:
- You should research current prices of the computer parts on Internet sites such as amazon.com or newegg.com.
- You can assume a computer will consist of the following components:
- CPU
- Case
- Power supply
- Motherboard
- Hard Drive
- RAM
- DVD
- Sound Card
- Monitor
- Graphics Card
- Operating System
I would recommend you keep the option choices limited to 3 different components, or your program will really grow fast. For example, you could provide options for the Operating System (Windows 7, Windows 8 or Mac OS/X), the RAM (4 GB, 8 GB, 16 GB) and the Hard Drive Size (500 GB, 1 TB, 1.5 TB) and leave everything else as a baseline. These are just examples. I leave it up to you to determine which components you want the user to select options. Be sure your prices are realistic.
- There is much flexibility for this project. You should reach a unique design. I recommend keeping it simple at first and then add more user options if you have time.
Example application test data:
The Baseline can be printed by program (components and the cost) and user is just informed.
The user of your program have to choose some type of components.
In our example the user of your program enter:
1
3
2
Test Case #
|
Input
|
Expected Output
|
1
|
Please choose the components:
Operating System:
1 - Windows 7($114.99),
2 - Windows 8 ($104.42),
3 - Mac OS/X($28.77)
: 1
RAM:
1 - 4 GB($46.99),
2 - 8 GB($79.99),
3 - 16 GB(150.99)
: 3
Hard Drive Size:
1 - 500 GB($52.49),
2 - 1 TB(54.44),
3 - 2TB($83.99)
: 2
|
Baseline components are:
- CPU
- Case
- Power supply
- Motherboard
- DVD
- Sound Card
- Monitor
- Graphics Card
The cost of the Baseline is: $500
You had chosen:
Operating System : Windows 7($114.99)
RAM: 16 GB(150.99)
Hard Drive Size: 2TB($83.99)
Total Price = $849.97
|
2
|
Your Computer selection options
|
Your output
|
3
|
Your Computer selection options
|
Your output
|