Final answer:
The total cost prior to the addition of cache is 25.6 cents. The total cost after the addition of cache is 28.8 cents. The percentage decrease in time due to the inclusion of cache is 90%.
Step-by-step explanation:
In order to calculate the total cost prior to the addition of cache, we need to multiply the size of memory (S_m) by the cost per byte (C_m). The total cost before cache can be calculated as follows:
Total cost before cache = S_m x C_m
= 256 MB x 0.0001 cents/bytes
= 256 x 10^6 bytes x 0.0001 cents/bytes
= 25.6 cents
After the addition of cache, the total cost can be calculated by adding the cost of memory (S_m x C_m) with the cost of cache (S_c x C_c). The total cost after cache can be calculated as follows:
Total cost after cache = (S_m x C_m) + (S_c x C_c)
= 256 x 10^6 bytes x 0.0001 cents/bytes + 32 x 10^3 bytes x 0.1 cents/bytes
= 25.6 cents + 3.2 cents
= 28.8 cents
To calculate the percentage decrease in time due to the inclusion of cache, we need to calculate the time difference between the memory access time without cache (T_m) and the memory access time with cache (T_c). The percentage decrease in time can be calculated as follows:
Percentage decrease in time = (T_m - T_c) / T_m x 100%
= (100 ns - 10 ns) / 100 ns x 100%
= 90%