Cmis 102 Assignment 2

858 Words4 Pages
Name Luis Ortiz CMIS102 Section No. 6387 Date 8 SEP 2013 Assignment No. 2 Problem Statement: Calculate the total price to purchase all the components required to build a state-of-the-art gaming computer from components available on the internet. Analysis: Input : The input consists of computer base price (CompPrice), the CPU choice (CPU_choice), the RAM choice (RAM_choice), and the Graphics Card choice (VideoCard_choice). Once the customer has entered a choice of an option, the program will determine the corresponding cost of that option: CPU_cost, RAM_cost, VideoCard_cost. Output: The only item output is the computer selling price (ComputerPrice). Describe how to get the output from the input. Describe any necessary formulas and sample calculations that might be needed. To determine the ComputerPrice, the following computation is: ComputerPrice = CompPrice + CPU_cost + RAM_cost + VideoCard_cost. Design: Things the program must do: 1. Input the computer base price 2. Process the various options to compute the additional costs 3. Total all the costs 4. Display the final selling price The main Module will contain the following submodules: Compute_CPU_Cost Compute_RAM_Cost Compute_VideoCard_Cost Display_Computer_Price The Hierarchy chart for Computer Price program Pseudocode as follows: // Computer Price calculator // Programmer: Luis Ortiz, University Of Maryland University College // Version 1.0 – September 08, 2013 // This program calculate the total price to purchase all the components required to build a // state-of-the-art gaming computer from components available on the internet. // Variables used: // CompPrice – computer base price // CPU_choice, RAM_choice, VideoCard_choice – CPU, RAM and Video card

More about Cmis 102 Assignment 2

Open Document