Computer Science

Project 2 is a continuation of Project 1. Modify the code from Project 1 to read and process information from a file named Computers.txt.

The text file contains profiles about a set of computers. Each computer should be processed. The text file contains information in the following order:
◦The GPU clock speed
◦The CPU clock speed
◦The number of cores
◦The Monitor Resolution (will be represented as 1,2,3, or 4 corresponding to the menu options in Project 1 – so ‘1’ means ‘1280 x 720’, ‘2’ means ‘1920 x 1080’, and so on)


Display the title once at the top of the output, just like in Project 1.

After displaying the title, the program should process all of the information in the file and display the following output for each computer in the file:
◦The GPU clock speed
◦The CPU clock speed
◦The number of cores
◦The Monitor Resolution
◦The Performance Score (rounded to three decimal places)
◦The Recommended Graphics Quality


At the end of the output, the program should display the highest and lowest performance score.

The code you submit should be thoroughly documented with comments where appropriate.

Sample Input and Output

Computer Hardware Graphics Quality Recommendation Tool



GPU Clock Speed: 1000 MHz

CPU Clock Speed: 3000 MHz

Number of cores: 4

Monitor Resolution: 1280 x 720

Performance Score: 17000.000

Recommended Graphics Quality: High



GPU Clock Speed: 1250 MHz

CPU Clock Speed: 3200 MHz

Number of cores: 4

Monitor Resolution: 2560 x 1440

Performance Score: 10477.500

Recommended Graphics Quality: Unable to Play



GPU Clock Speed: 1675 MHz

CPU Clock Speed: 3950 MHz

Number of cores: 6

Monitor Resolution: 3840 x 2160

Performance Score: 11226.250

Recommended Graphics Quality: Low



GPU Clock Speed: 1800 MHz

CPU Clock Speed: 4300 MHz

Number of cores: 4

Monitor Resolution: 1920 x 1080

Performance Score: 19650.000

Recommended Graphics Quality: Ultra



GPU Clock Speed: 1600 MHz

CPU Clock Speed: 3500 MHz

Number of cores: 3

Monitor Resolution: 1920 x 1080

Performance Score: 13875.000

Recommended Graphics Quality: Medium



The highest performance score was: 19650.000

The lowest performance score was: 10477.500

  1. 👍 1
  2. 👎 0
  3. 👁 87
  1. so, I assume you have some algorithm or formula to calculate the performance score and graphics quality from the given data?

    Looks fairly simple. For each computer, read in the data and display it and the results. Compare the score to the existing high/low scores and update them if necessary.

    After the input terminates, display the high and low scores.

    Pretty much just I/O and minimal calculation. Where do you have trouble?

    1. 👍 0
    2. 👎 0
    posted by oobleck

Respond to this Question

First Name

Your Response

Similar Questions

  1. Finance

    Wheel Industries is considering a three year expansion project. The project requires an initial investment of $1.5 million. The project will use straight line depreciation method. The project has no salvage value. It is estimated

    asked by Shelly on April 22, 2010
  2. analysis and design

    My project is upgrading a bathroom and this is what I need help with: Project Risk-list 5 factors and their potential impact for the project. Project Constaints-ex: triple constaints variable (cost,time/schedule and scope)are

    asked by Becky on June 20, 2009
  3. Project Selection

    If cost and rate of return were the only determining factors in the selection of a project, which one would you agree is the best selection? Scoring model: project 1: Score = 22 project 2: Score = 28 NPV analysis: project 1:

    asked by animal on October 5, 2008
  4. finance

    Wheel Industries is considering a three-year expansion project. The project requires an initial investment of $1.5 million. The project will use straight-line depreciation method. The project has no salvage value. It is estimated

    asked by Anonymous on April 5, 2012
  5. business

    Describe a work-related situation you feel could be improved. For example, you want to streamline the process for reimbursing employees, or you want to create a high-tech website for your small business but have no experience in

    asked by mee on June 11, 2010
  6. Finance

    Describe a work-related situation you feel could be improved. For example, you want to streamline the process for reimbursing employees, or you want to create a high-tech website for your small business but have no experience in

    asked by mee on June 11, 2010
  7. Finance

    Capital Budgeting Problems I. Indigo Industrial, Inc. is trying to determine which, if any, of five different projects it should undertake. Indigo Industrial has a 8.25% required rate of return on projects that it undertakes. The

    asked by Jeremy on April 19, 2014
  8. Math

    Indigo Industrial, Inc. is trying to determine which, if any, of five different projects it should undertake. Indigo Industrial has a 8.25% required rate of return on projects that it undertakes. The projected cash flows for each

    asked by Jeremy on April 19, 2014
  9. Science Fair

    I just wanted to ask if this project written below is a High School Project... (Up,up,away in your own hot air ballon) This is the project name and also I don't need a link to this project, I have it already... Just tell me

    asked by Tisy on January 2, 2016
  10. Math

    Three friends were working on a project. Cindy completed 4/8 of the project. Kim completed 3/8 of the project. Sandy completed 1/8 of the project. How much of the project did they complete all together

    asked by Anonymous on January 26, 2016
  11. Devon

    A person must decide whether or not to proceed with a particular investment project. If the project succeeds, She will gain $15 million. If the project fails, she will lose $3 million. She estimates there is a 20% chance that the

    asked by Economics on February 25, 2008

More Similar Questions