Problem 2:
(20 points)
A program consists of 2,000 instructions executed on a 20 MHz processor with the following
instruction count and clock cycles per instruction.
Instruction Type Instruction Count Cycles per Instruction
Integer arithmetic 900 1
Data transfer 640 2
Floating point 300 2
Control transfer 160 2
Calculate the weighted average CPI, MIPS rate, and CPU time for this program.