Just to let you know, the program that's being used is in Java
Part 1:
Step 1:
Ask the user to enter the clock speed (in Megahertz) of their graphics card (GPU). This is an indicator of how fast their graphics card is.
Note: Example GPU clock speeds range from 1000 MHz to 2000 MHz
Step 2:
Ask the user to enter the clock speed (in Megahertz) of their processor (CPU). This is an indicator of how fast their processor is.
Note: Example CPU clock speeds range from 3000 MHz to 5000 MHz
Step 3:
Ask the user to enter the number of cores that their processor (CPU) has. The more cores a processor has, the more work it can do.
Note: Example CPUs have between 2-8 cores
Step 4:
Display a menu and ask the user to select the resolution of their monitor. The menu should contain the following options:
1280 x 720
1920 x 1080
2560 x 1440
3840 x 2160
Note: Resolution consists of two numbers separated by an ‘x’. The first number is the number of pixels in the width of the screen. The second number is the number of pixels in the height of the screen.
Step 5:
Assign a “multiplier” value based on the monitor resolution by using the following table:
Resolution
Multiplier
1280 x 720
1
1920 x 1080
.75
2560 x 1440
.55
3840 x 2160
.35
Step 6:
Calculate a “performance score” by using the following formula:
Performance Score = ((5 * GPU Clock Speed) + (Number of Cores * CPU Clock Speed)) * Multiplier
Example: A GPU with a clock speed of 1200MHz, a 4-core CPU with a clock speed of 4200 MHz, and a 1280 x 720 resolution monitor would have a Performance Score calculation of:
Performance Score = ((5 * 1200) + (4 * 4200)) * 1 = 22800
Step 7:
Determine the recommended graphics quality that the hardware can support by using the information in the table below.
Performance Score
Recommended Graphics Quality
Over 17,000
Ultra
Over 15,000 but not more than 17,000
High
Over 13,000 but not more than 15,000
Medium
Over 11,000 but not more than 13,000
Low
11,000 or less
Unable to Play
Step 8:
Create a String object in memory to hold the text “Computer Hardware Graphics Quality Recommendation Tool”. Display that text at the top of the output (See sample Input and Output below).
Step 9:
Display the following output (See sample Input and Output below):
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
The code you submit should be thoroughly documented with comments where appropriate.
Sample Input and Output (user input is in bold)
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: 2
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
Computer Hardware Graphics Quality Recommendation Tool
GPU Clock Speed: 1000 MHz
CPU Clock Speed: 3000 MHz
Number of cores: 2
Monitor Resolution: 1280 x 720
Performance Score: 11000.000
Recommended Graphics Quality: Unable to Play
___________________________________________________________________
I will post Part 2 separately
Answers
Answered by
4
Okay thanks
But what will we do with this
Similar questions
Environmental Sciences,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Physics,
1 year ago
Biology,
1 year ago