Answer:
B
. document
Explanation:
Word document contains text, table, picture and more. Word document is a file of .doc, .docx etc format
Table, ribbon or keyboard can't be classed as a file and they are elements of a file, menu or hardware
<u>So correct option is</u> B. Document
Answer:
def func1(x):
return (x-32)*(5/9)
def func2(x):
return (x/2.237)
def main():
x = ""
while x != "x":
choice = input("Enter 1 to convert Fahrenheit temperature to Celsius\n"
"Enter 2 to convert speed from miles per hour to meters per second: ")
if choice == "1":
temp = input("please enter temperature in farenheit: ")
print(func1(float(temp))," degrees celcius.")
elif choice == "2":
speed = input("please enter speed in miles per hour: ")
print(func2(float(speed))," meters per second")
else:
print("error... enter value again...")
x = input("enter x to exit, y to continue")
if __name__ == "__main__":
main()
Explanation:
two function are defines func1 for converting temperature from ferenheit to celcius and func2 to convert speed from miles per hour to meters per second.
Answer:
1 PROCESSOR :
(1 × 2.56 × 10^9) + (12 × 1.28 × 10^9) + (5 × 2.56 × 10^8) / 2 GHz = 9.6 s
2 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×2 + (5 × 2.56 × 10^8) / 2 GHz = 7.04 s
Speed -up is 1.36
4 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×4 + (5 × 2.56 × 10^8) / 2 GHz = 3.84 s
Speed -up is 2.5
5 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×8 + (5 × 2.56 × 10^8) / 2 GHz = 2.24 s
Speed -up is 4.29
Explanation:
The following formula is used in this answer:
EXECUTION TIME = CLOCK CYCLES / CLOCK RATE
Execution Time is equal to the clock cycle per clock rate
Answer:
Explanation:
Present value is the value in the present of a sum of money, in contrast to some future value it will have when it has been invested at compound interest.
It can be calculated using future value formula below
A = P(1+r/100)^n
where
A = Future value
P = Present value
r = Rate of interest
n = time period
Present Value = Value at Year 1 + Value at Year 4
Calculating Value at Year 1
A = $5,500
r = 8%
n = 1
From A = P(1+r/100)^n ; Make P the subject of formula
P = A ÷ (1 + r/100)^n
Substitute in values
P = $5,500 ÷ (1 + 8/100)^1
P = $5,500 ÷ (1 + 0.08)
P = $5,500/1.08
P = $5092.5925926
P = $5092.59 ----
Present Value at Year 1 = $5092.59
Calculating Value at Year 4
A = $5,000
r = 8%
n = 1
From A = P(1+r/100)^n ; Make P the subject of formula
P = A ÷ (1 + r/100)^n
Substitute in values
P = $5,000 ÷ (1 + 8/100)⁴
P = $5,000 ÷ (1 + 0.08)⁴
P = $5,000/1.08⁴
P = $3675.149263982267
P = $3675.15 ----
Present Value at Year 4 = $3675.15
Present Value = Value at Year 1 + Value at Year 4
Substitute each value
Present Value = $5092.59 + $3675.15
Present Value = $8,767.74
Answer:
a) only one digit changes as the number increases.
Explanation:
Let us first understand what does it mean when we say only one digit changes as the number increases using the Reflected Binary code (also called Gray code)
consider the 4 bit representation of Binary coded decimal and RB codes
Decimal | Binary code | Reflected binary (RB) code
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
As you can see in the case of binary codes, there are more than one digit changes between two consecutive numbers.
But notice that in the case of Gray codes, there is always one digit change between two consecutive numbers.
The problem with the binary codes is that the more digits change there states the greater is the chance of ending up with random transitional values rather than real values which can be incorrect. The RB code solves this problem by only changing one digit at a time.
The RB code is widely used in linear and rotary encoders, error correction and digital logic design.