1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Setler79 [48]
3 years ago
7

P1 has a clock rate of 4 GHz, average CPI of 0.9, and requires the execution of 5.0E9 instructions.P2 has a clock rate of 3 GHz,

an average CPI of 0.75, and requires the execution of 1.0E9 instructions.1.12.1 [5] <§§1.6, 1.10> One usual fallacy is to consider the computer with thelargest clock rate as having the largest performance. Check if this is true for P1 and P2.1.12.2 [10] <§§1.6, 1.10> Another fallacy is to consider that the processor executingthe largest number of instructions will need a larger CPU time. Considering thatprocessor P1 is executing a sequence of 1.0E9 instructions and that the CPI ofprocessors P1 and P2 do not change, determine the number of instructions that P2can execute in the same time that P1 needs to execute 1.0E9 instructions.1.12.3 [10] <§§1.6, 1.10> A common fallacy is to use MIPS (millions ofinstructions per second) to compare the performance of two different processors,and consider that the processor with the largest MIPS has the largest performance.Check if this is true for P1 and P2.1.12.4 [10] <§1.10> Another common performance figure is MFLOPS (millionsof floating-point operations per second), defined asMFLOPS = No. FP operations / (execution time × 1E6)but this figure has the same problems as MIPS. Assume that 40% of the instructionsexecuted on both P1 and P2 are floating-point instructions. Find the MFLOPSfigures for the programs.

Computers and Technology
1 answer:
nadezda [96]3 years ago
7 0

Answer:

Following is attached the solution for all parts. I hope it will help you!

Explanation:

You might be interested in
2.Consider the following algorithm and A is a 2-D array of size ???? × ????: int any_equal(int n, int A[][]) { int i, j, k, m; f
Elis [28]

Answer:

(a) What is the best case time complexity of the algorithm (assuming n > 1)?

Answer: O(1)

(b) What is the worst case time complexity of the algorithm?

Answer: O(n^4)

Explanation:

(a) In the best case, the if condition will be true, the program will only run once and return so complexity of the algorithm is O(1) .

(b) In the worst case, the program will run n^4 times so complexity of the algorithm is O(n^4).

5 0
3 years ago
Pls help me pls I’m struggling
steposvetlana [31]
You have it correct
6 0
2 years ago
What is the reddish-brown substance in the water?
Mariulka [41]

Answer:

iron

Your water might be affected by iron, which is a commonly-occurring constituent of drinking water. Iron tends to add a rusty, reddish-brown (or sometimes yellow) color to water. If the color is more black than red, your water might contain a combination of iron and manganese.

5 0
3 years ago
Read 2 more answers
Create a structure representing a student. The member variables should include student name, student ID, and four test grades fo
Neporo4naja [7]

Answer:

Output:

Name: Brainly

ID:0001

Write the 4 tests grades of the student separated by space :10 9 8 10

Brainly

0001

10 9 8 10

Average :9.66667

'1' to continue '0' to exit :

Explanation:

#include<iostream>

#include<string>

using namespace std;

//variables declaration

struct Student {

  string id; //string declaration ID

  string name; // string declaration name

  int grades[4]; //array of 4 because it is 4 grades

};

//definition of the function get information

void inputData(Student &s){

 

   

   cout << "Name:" ;

   getline(cin,s.name);

   cout << "ID:";

   cin >> s.id;

   cout << "Write the 4 tests grades of the student separated by space :";

   for (int i = 0; i<4; i++)

       cin >> s.grades[i];

}

//definition of the function of average

double inputAvg(Student s){

   double summation;

   int temporary;

   double average;

   for (int i = 0; i<4; i++){  

      for (int j = i; j<4; j++){

         if (s.grades[j] > s.grades[i]){

             temporary = s.grades[i];

             s.grades[i] = s.grades[j];

             s.grades[j] = temporary;

         }

      }

    }

    summation = 0;

    for (int i = 0; i<3; i++){

        summation = summation + s.grades[i];  

    }

    average = summation/3;

    return average;

}

void disp(Student *s){

   cout << s->name << endl;

   cout << s->id << endl;

   for (int i = 0; i<4; i++)

       cout << s->grades[i] << " ";

   cout << endl;

   cout << "Average :" << inputAvg(*s) << endl;

   

}

int main(){

  Student st;

  int ch;

  while(true){

      inputData(st);

      disp(&st);

      cout << " '1' to continue '0' to exit :";

      cin >> ch;

      if (ch == 0)

         break;      

  }

  return 0;

}

6 0
3 years ago
How can I create a pluralsite account for free to sign in​
nevsk [136]

Answer:

I mean I need points but I'm not sure my advice is to look it up or look on y0utube : )

Explanation:

6 0
3 years ago
Other questions:
  • The length of a hailstone sequence is the number of terms it contains. For example, the hailstone sequence in example 1 (5, 16,
    9·1 answer
  • When you make a pointer variable im C++, is star label a must?
    9·1 answer
  • You should use the longest possible shutter speed for all firework photographs.
    8·2 answers
  • A computer can read whatever you type into it.<br> A)True<br> B)False
    7·2 answers
  • What is logical memory?
    15·1 answer
  • Review the two e-mail messages below for their adherence to the guidelines for professional e-mail correspondence you have learn
    6·1 answer
  • Tools enable people to connect and exchange ideas
    7·2 answers
  • You are given an array of integers, each with an unknown number of digits. You are also told the total number of digits of all t
    7·1 answer
  • Which of the items listed is not considered to be personal protective equipment (PPE)?
    14·1 answer
  • Programmers use an Integrated Development Environment (IDE) to write software programs, because:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!