Ask Computer Engineering Expert

Create a flow chart for the following:

A. Problem Analysis

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.

The only item output is the computer selling price (ComputerPrice). To determine the ComputerPrice, the following computation is: ComputerPrice = CompPrice + CPU_cost + RAM_cost + VideoCard_cost.

B. Program 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 calculator


Pseudocode as follows:

// Computer Price calculator
// Programmer: Christian Gutierrez, University of Maryland University College
// Version 1.0 - November 09, 2013
// This program find out 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 options choices
// CPU_cost, RAM_cost, VideoCard_cost - CPU, RAM and the Video card cost once the options // are selected
// ComputerPrice - find outd the total price of the computer.
//*************************************************************************

Main module

// Declare the program variables
Declare CompPrice, CPU_cost, RAM_cost, VideoCard_cost As Float

// Display welcome message and program menu choices
prepare "Welcome to Computer Gaming Build"

prepare "This program is designed to find out the total price of a computer gaming system."

// Prompt for and input the computer base price:

prepare "Enter the Computer base price"

// Computer base price input

Input CompPrice

// Call Modules

Call Compute_CPU_Cost
Call Compute_RAM_Cost
Call Compute_VideoCard_Cost
Call Display_Computer_Price

End Program

//***********************************************************

Compute_CPU_Cost

//Declare variables

Declare CPU_choice As Character

// Display the menu and input user selection:

prepare "i3770 - Intel Core i7-3770 Ivy Bridge 3.4GHz (3.9GHz Turbo) LGA 1155 77W Quad-Core Desktop Processor Intel HD Graphics 4000"

prepare "i2600K - Intel Core i7-2600K Sandy Bridge 3.4GHz (3.8GHz Turbo Boost) LGA 1155 95W Quad-Core Desktop Processor Intel HD Graphics 3000"

prepare "i4930K - Intel Core i7-4930K Ivy Bridge-E 3.4GHz LGA 2011 130W Six-Core Desktop Processor"

prepare "Please enter your selection"

// CPU selection input

Input CPU_choice

// Price options are as follows:

Select Case of CPU_choice

Case "i3770":

Set CPU_cost = 269.99

Case "i2600k":

Set CPU_cost = 329.99

Case "i4930K":

Set CPU_cost = 589.99

End Case

//**************************************************************

Compute_RAM_Cost

// Declare variables

Declare RAM_choice As Character

// Display the menu and input user selection:

prepare "TX8 - Team Xtreem LV 8GB (2 x 4GB) 240-Pin DDR3 2400 (PC311900)"

prepare "EVO - GelL EVO CORSA Series 16GB (4 x 4GB) 240-Pin DDR3 2400 CL 10"

prepare "GSK - G.SKILL Ripjaws Z 16GB (4 x 4GB) 240-Pin DDR3 2400 CL 9"

prepare "Please enter your selection"

// RAM selection input

Input RAM_choice

// Price options are as follows:

Select Case of RAM_choice

Case "TX8":

Set RAM_cost = 149.99

Case "EVO":

Set RAM_cost = 349.99

Case "GSK":

Set RAM_cost = 629.99

End Case

//*******************************************************************

Compute_VideoCard_Cost

// Declare variable

Declare VideoCard_choice

// Display the menu and input user selection:

prepare "V5900 - ATI FirePro V5900 2GB 256-bit 512 Support Stream PCI Express 2.1x16"

prepare "V7900 - ATI FirePro V7900 2GB 256-bit 1280 Support Stream PCI Express 2.1x16"

prepare "Please enter your selection"

// Video Card selection

Input VideoCard_choice

// Price options are as follows:

If VideoCard_choice = "V5900" Then

Set VideoCard_choice = 429.99

Else

Set VideoCard_choice = 699.99

End If

//**********************************************************************

Display_Computer_Price

// Declare variables

Declare ComputerPrice As Float

// Total Computer price

Set ComputerPrice = CompPrice + CPU_cost + RAM_cost + VideoCard_cost

// Output on Display of total price base on selection

prepare "Computer Base Price" + CompPrice

prepare "CPU" + CPU_choice + "Price" + CPU_cost

prepare "RAM"+ RAM_choice + "Price" + RAM_cost

prepare "Video Card" + VideoCard_choice "Price" + VideoCard_cost

prepare "The total computer cost base on your selection is: $" + ComputerPrice








C. Program Comments and Test Data 


The program should run:

// Computer Base Price

CompPrice = 1815.94

// User select CPU, RAM and Video card choice

CPU_choice = "i3770" // selected choice of three options

RAM_choice= "TX8" // selected choice of three options

VideoCard_choice = "V5900" // selected choice of two options

//Base on user option selection from menu the compute formula goes as follows:

CPU_cost = 269.99

RAM_cost = 149.99

VideoCard_cost = 429.99

ComputerPrice = CompPrice + CPU_cost + RAM_cost + VideoCard_cost

ComputerPrice = 1815.94 + 269.99 + 149.99 + 429.99

ComputerPrice = 2,665.91 

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M987583

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As