Answer:
a) 3.3
b) 3
Explanation:
1)
As we know ,
CPI = sum of ( instructions× clock cycle)
= 50%(1) + 30%(4) + 20%(8)
= 50% + 120% + 160%
= 330%
=
= 3.3
⇒CPI = 3.3
2)
Let a = number of cycles on average
As given,
a 10% improvement in performance of P1,
⇒New CPI = 3
⇒3 = 50% + 30% (x) + 20%(8)
⇒3 = 50% + 30% (x) + 160%
⇒3 = 210% + 30%(x)
⇒3 = 2.1 + 0.3x
⇒3 - 2.1 = 0.3x
⇒0.9 = 0.3x
⇒x =
= 3
⇒x = 3
∴ we get
Number of cycles on average = 3
Answer:
INPUT n
sum = 1
FOR mult = 1 TO n
sum = sum*mult
NEXT
result = n/sum
PRINT result
Explanation:
sum should not be defined inside the for loop because it will reset to the initial number after every loop iteration which is not what is desired. Sum should not be 0 if it is being multiplied then divided. This will cause an error. Result should be calculated after sum has settled on a final number, after the loop has finished.
Answer:
This is a characteristic of a reputable author
Answer:
Text and numbers can be aligned to the left, right or center of a cell, as well as to the top, middle and bottom.
Answer:
Explanation name has given below
Explanation:
In sub query we have to take Film Language .From Film Where code is equal to language code and language is English.
FROM Film F,FilmLanguage L1,
WHERE C.Code = L1LanguageCode
AND L1.Language = 'English';
Join table:
code | film_name | Language * where E = English & N = no
--------+----------------------+------------
01 | Forrest Gump | E
02 | Good fellas | E
03 | Peter | N
04 | Hotel Rwanda | E
05 | F. Murray | N
06 | The Green Mile | E
07 | Nicole | N
08 | The Godfather | E
09 | Jack | N