(a) To run a software => RAM
(b) To store a software => ROM
Answer:
The operation that will occur first is D5*C6 (multiplication).
Explanation:
Excel’s default order of operator precedence mandates that Excel perform multiplication before addition and substraction. If you want the addition or substraction to be performed before multiplication or division, they must be in parentheses.
The order of operations in exel is:
1. Evaluate items in parentheses.
2. Evaluate ranges (:).
3. Evaluate intersections (spaces).
4. Evaluate unions (,).
5. Perform negation (-).
6. Convert percentages (%).
7. Perform exponentiation (^).
8. Perform multiplication (*) and division (/), which are of equal precedence.
9. Perform addition (+) and subtraction (-), which are of equal precedence.
10. Evaluate text operators (&).
11. Perform comparisons (=, <>, <=, >=).
Answer:
def barGraph(w, h, data):
# creating Canvas
paper = Canvas(w, h)
# defining variables
largest = max(data) # largest element in data
length = len(data) # length of data list
barWidth = 0.8 * w / length # length of each bar of the histogram
maxBarHeight = 0.8 * h # maximum height of each bar of the histogram
minBarHeight = maxBarHeight / largest # minimum height of each bar
# Starting points
x = 0.1 * w
y = 0.9 * h
# looping through the list
for i in data:
currBarHeight = minBarHeight * i # current bar height
x1 = x + barWidth
y1 = y - currBarHeight
# creating the rectangle, and adding it to the bar graph
bar = Polygon( Point(x,y), Point(x,y1), Point(x1,y1), Point(x1,y) )
bar.setFillColor('grey')
paper.add(bar)
x = x1
# returning the canvas
return paper
Answer:
Probability Distribution={(A, 4/7), (B, 2/7), (C, 1/7)}
H(X)=5.4224 bits per symb
H(X|Y="not C")=0.54902 bits per symb
Explanation:
P(B)=2P(C)
P(A)=2P(B)
But
P(A)+P(B)+P(C)=1
4P(C)+2P(C)+P(C)=1
P(C)=1/7
Then
P(A)=4/7
P(B)=2/7
Probability Distribution={(A, 4/7), (B, 2/7), (C, 1/7)}
iii
If X={A,B,C}
and P(Xi)={4/7,2/7,1/7}
where Id =logarithm to base 2
Entropy, H(X)=-{P(A) Id P(A) +P(B) Id P(B) + P(C) Id P(C)}
=-{(1/7)Id1/7 +(2/7)Id(2/7) +(4/7)Id(4/7)}
=5.4224 bits per symb
if P(C) =0
P(A)=2P(B)
P(B)=1/3
P(A)=2/3
H(X|Y="not C")= -(1/3)Id(I/3) -(2/3)Id(2/3)
=0.54902 bits per symb
The answer is B. Your will have gone mostly towards paying interest and you will still owe the majority of the balance that you had from ago