Let the instructions of a processor with clock rate of 4GHz…

Let the instructions of a processor with clock rate of 4GHz be divided into four classes A, B, C, and D with CPIs 1, 1.5, 2, and 2.5 respectively. In a given program the dynamic instruction count is 1.0E9 and instructions are divided into classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D.  a. (5 points) How long does it take for the processor to execute the given program? b. (5 points) Find the global CPI of the processor.