Cmis102 Homework Assignment 2

923 Words4 Pages
CMIS102 Homework Assignment 2 (Worth 13% of your grade) Problem definition: 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. A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section. INPUT Computer base price (CompPrice) CPU choice (CPU_Choice) RAM (RAM_Choice), 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 - To determine the ComputerPrice, the following computation is: ComputerPrice = ComputerPrice + CPU_Cost + RAM_Cost + VideoCard_Cost. B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode. The followings are the 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 We will input the base price in the main module and then transfer control to several sub modules. Within the submodule, a menu will be display allowing the user to enter a choice for that option. Then the submodule will use this selection to determine the corresponding option cost. After the option selections are made, another module will compute the total cost and display the results. The main module will contain the following submodules: • Compute_CPU_Cost • Compute_RAM_Cost • Compute_VideoCard_Cost • Display_ Computer_Price The

More about Cmis102 Homework Assignment 2

Open Document