Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Write C++ Program: Write a program which will do the following: - The program should ask the user: how many processors need to be evaluated

Write C++ Program: image text in transcribed
image text in transcribed
Write a program which will do the following: - The program should ask the user: how many processors need to be evaluated and what are their identifying names. The program should then ask the user: how many benchmark programs have been executed on each processor and what are their identifying names. - The program should then ask the user to enter execution time in seconds) for each identified benchmark program for each identified processor. The program should then display a table of the information entered by the user. The program should ask the user to identify the reference processor, The program should then evaluate speed metric for each processor with respect to reference processor and display a table containing the values of speed metrics. The program should calculate arithmetic mean and geometric mean of the speed metrics for each processor. The program should then display the ranking of the processors based on both arithmetic mean and geometric mean. 3 Sample Output: Please enter the number of processors to be evaluated? What is the name of processori 1: R What is the name of processor#2: M What is the name of processor#3: Z Please enter the number of benchmark programs run on each processor? 5 What is the name of benchmark: E What is the name of benchmark#2: F What is the name of benchmark#1: H What is the name of benchmark=1:1 What is the name of benchmark#1: K Please enter the execution time (in sec) for running benchmark E on processor R: 417 Please enter the execution time (in sec) for running benchmark F on processor R: 83 Please enter the execution time in sec) for running benchmark K on processor R: 772 (repeat for processors M and Z and get execution times from the user for each benchmark) Following is the data entered: Benchmark E F Processor RMZ 417 244 134 83 70 70 66 153 3944935527 66000 772 368 H K 369 Please identify the reference processor: R Taking processor R as reference, following are the values of speed metrics with their arithmetic mean and geometric mean: Processor RM 7. Speed Metric For Each Benchmark DE w 1.0 1.0 1.0 1.0 1.0 1.0 1.709 1.186 0.431 1.110 2.098 1.307 3.112 1.186 0.489 0.598 2.092 1.495 Arithmetic Mean Geometric Mean 1.0 1.153 1.177 Using Arithmetic Mean, this is the ranking of the processors: 1. Z 2. M 3. R Using Geometric Mean, this is the ranking of the processors: 1. Z 2. M 3. R

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions