Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write some code that follows the steps below. Step 1: Add code that prompts the user for the number of computers that they wish to

Write some code that follows the steps below.

Step 1: Add code that prompts the user for the number of computers that they wish to enter information for. Do not accept a number less than 0 for the user's input.

Step 2: Display the title String "Computer Hardware Graphics Quality Recommendation Tool" once at the top of the output.

Step 3: Add code to let the user enter information for each computer, and output all of the information about the computer (including the performance score and recommended graphics quality) as shown in the Sample Input and Output below.

Step 4: Add Input Validation to the program using the following rules:

  • The GPU clock speed should be between 800 and 2000 MHz
  • The CPU clock speed should be between 1000 and 5500 MHz
  • The number of cores should be between 1 and 16
  • The user's input for the menu selection should be between 1 and 4

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

Sample Input and Output (user input is in bold) - The output of your program should match the formatting and spacing exactly as shown

How many computers are being processed? 3

Computer Hardware Graphics Quality Recommendation Tool

Please enter the clock speed (in Megahertz) of your graphics card: 1000

Please enter the clock speed (in Megahertz) of your processor: 3000

Please enter the number of cores of your processor: 4

What is the resolution of your monitor?

1. 1280 x 720

2. 1920 x 1080

3. 2560 x 1440

4. 3840 x 2160

Please select from the options above: 1

GPU Clock Speed: 1000 MHz

CPU Clock Speed: 3000 MHz

Number of cores: 4

Monitor Resolution: 1280 x 720

Performance Score: 17,000.000

Recommended Graphics Quality: High

Please enter the clock speed (in Megahertz) of your graphics card: 1250

Please enter the clock speed (in Megahertz) of your processor: 3200

Please enter the number of cores of your processor: 4

What is the resolution of your monitor?

1. 1280 x 720

2. 1920 x 1080

3. 2560 x 1440

4. 3840 x 2160

Please select from the options above: 3

GPU Clock Speed: 1250 MHz

CPU Clock Speed: 3200 MHz

Number of cores: 4

Monitor Resolution: 2560 x 1440

Performance Score: 10,477.500

Recommended Graphics Quality: Unable to Play

Please enter the clock speed (in Megahertz) of your graphics card: 1800

Please enter the clock speed (in Megahertz) of your processor: 4300

Please enter the number of cores of your processor: 4

What is the resolution of your monitor?

1. 1280 x 720

2. 1920 x 1080

3. 2560 x 1440

4. 3840 x 2160

Please select from the options above: 2

GPU Clock Speed: 1800 MHz

CPU Clock Speed: 4300 MHz

Number of cores: 4

Monitor Resolution: 1920 x 1080

Performance Score: 19,650.000

Recommended Graphics Quality: Ultra

The highest performance score was: 19,650.000

The lowest performance score was: 10,477.500

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Precalculus

Authors: Jay Abramson

1st Edition

1938168348, 978-1938168345

More Books

Students also viewed these Programming questions

Question

Explain all drawbacks of the application procedure.

Answered: 1 week ago

Question

Determine Leading or Lagging Power Factor in Python.

Answered: 1 week ago

Question

Find the exact value of sin /6.

Answered: 1 week ago

Question

Determine whether the algebraic equation is linear. 2x + 3y = 7

Answered: 1 week ago