Answer:
a. 7 bits
b. 8 bits
c. 9 bits
d. 24 bits
Explanation:
Required
Number of bits per word
The formula to get the number of bits per word is:
Where
n = bits
N = numbers
Solving (a) 0 to 100
There are 101 digits between 0 and 100 (inclusive)
So:
Substitute 101 for N in
101 can not be expressed as an exponent of 2.
So, we substitute 101 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 128 as an exponent of 2
Apply law of indices
Hence, 7 bits are required
Solving (b): 0 through 255
There are 256 digits between 0 and 255 (inclusive)
So:
Substitute 256 for N in
Express 256 as an exponent of 2
Apply law of indices
Hence, 8 bits are required
Solving (c): 0 through 256
There are 257 digits between 0 and 256 (inclusive)
So:
Substitute 257 for N in
257 can not be expressed as an exponent of 2.
So, we substitute 257 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 512 as an exponent of 2
Apply law of indices
Hence, 9 bits are required
Solving (d): 0 through 10000000
There are 10000001 digits between 0 and 10000000 (inclusive)
So:
Substitute 10000000 for N in
10000000 can not be expressed as an exponent of 2.
So, we substitute 10000000 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 16777216 as an exponent of 2
Apply law of indices
Hence, 24 bits are required
Statement Reason
Whenever there is a puppy in the house, I feel happy
If I am happy, then there is a puppy in the house
If there is not a puppy in the house, then I am not happy.
If I am not happy, then there is no puppy in the house
Question 2
Statement Reason
If I am in school today, then I am in CSC231 class
If I am not in school today, then I am not civics class
If I am not in CSC231 class, then I am not in school today
If I am in CSC231 class, then I am in school today
Answer:
Question (1) the statements (i) and( iv) are logically equivalent and statements (ii) and (iii) are logically equivalent. Question (2) the statements (i) and (iii) are logically equivalent.
Explanation:
Solution
Question (1)
Now,
Lets us p as puppy in the house, and q as i am happy
So,
p : puppy in the house, and q : i am happy
Thus,
The Statements
(i) so if there is a puppy in the house, I feel happy : p -> q
(ii) If I am happy, then there is a puppy in the house : q -> p
(iii) If there is no puppy in the house, then I am not happy. : ~ p -> ~q
(iv) If I am not happy, then there is no puppy in the house : ~q -> ~p
Hence, the statements (i) and( iv) are logically equivalent and statements (ii) and (iii) are logically equivalent.
Question (2)
Let us denote p as i am in school today, and q as i am in CSC231 class, and r as i am in civics class,
So,
p: i am in school today, q: i am in CSC231 class, r: i am in civics class,
Now,
(i) if I am in school today, then I am in CSC231 class :p -> q
(ii) If I am not in school today, then I am not civics class :~p -> ~r
(iii) If I am not in CSC231 class, then I am not in school today :~q -> ~p
(iv) If I am in CSC231 class, then I am in school today : q -> p
Therefore, the statements i) and iii) are logically equivalent.
Answer:
An LCD projector is a type of video projector for displaying video, images, or computer data on a screen or other flat surface. It is a modern equivalent of the slide projector or overhead projector.
It's different because in a computer display, the screen is the physical surface on which visual information is presented. This surface is usually made of glass.
Explanation:
A digital projector is a device that projects video or images onto a large screen, suitable for shared viewing in larger settings. It differs from a computer screen in terms of size, portability, shared viewing capabilities, image quality, source connectivity, and adjustments.
A digital projector is a device that takes a video or image signal from a computer, DVD player, or other multimedia source and projects it onto a large screen or surface.
The key differences between a digital projector and a computer screen:
Size: The most obvious difference is the size of the display.
Portability: Computer screens are generally fixed and not easily portable, whereas digital projectors are often designed for mobility.
Shared Viewing: A computer screen is designed for individual or small group viewing at close distances, while a digital projector is meant for larger audiences.
Image Quality: Digital projectors vary in imagequality, and high-quality projectors can offer impressive resolution and brightness suitable for movie screenings or professional presentations.
Source Connectivity: Both a computer screen and a digital projector can receive input from computers and other multimedia sources.
Placement and Adjustment: Digital projectors often provide manual or automatic keystone correction and focus adjustments to ensure the projected image remains proportional and clear on the screen or surface.
Hence, a digital projector is a device used to project large-scale images or video onto a screen or surface, suitable for shared viewing in larger settings.
To learn more on Digital projector click here:
#SPJ3
Research
Grammar
Language
Spell Check
the answer is Language
Answer:
Essayons
Explanation:
Answer:
x = input("Input a number ")
print(eval("x"))
print ("Type is:",type(x))
#Taking an float input
y = input("Input a number ")
print(eval("y"))
print ("Type is:",type(y))
#Taking an complex input
z = complex(input("Input a number "))
print(eval("z"))
print ("Type is:",type(z))
#Taking an List input
L_num = raw_input().split(",")
print(eval("L_num"))
print ("Type is:",type(L_num))
#Taking an tuple input.
T_num = raw_input().split(",")
print(eval("T_num"))
print ("Type is:",type(T_num))
Explanation:
Answer:
The screen protector may be interfering with the touch response
Explanation:
Screen protectors or commonly called screen guards are used to protect phone screens. In case they fall to the ground, these protectors act as shields to keep the phone screen from getting damaged. However screen protectors if not positioned or fixed properly may also cause hindrance to effective touch response as they become barriers to the touch screen.
Answer:
pkt = int(input("Pocket Number: "))
if pkt == 0:
print("Green")
elif pkt >= 1 and pkt <=10:
if pkt%2 == 0:
print("Black")
else:
print("Red")
elif pkt >= 11 and pkt <=18:
if pkt%2 == 0:
print("Red")
else:
print("Black")
elif pkt >= 19 and pkt <=28:
if pkt%2 == 0:
print("Black")
else:
print("Red")
elif pkt >= 29 and pkt <=36:
if pkt%2 == 0:
print("Red")
else:
print("Black")
else:
print("Error")
Explanation:
The program was written in Python and the line by line explanation is as follows;
This prompts user for pocket number
pkt = int(input("Pocket Number: "))
This prints green if the pocket number is 0
if pkt == 0:
print("Green")
If pocket number is between 1 and 10 (inclusive)
elif pkt >= 1 and pkt <=10:
This prints black if packet number is even
if pkt%2 == 0:
print("Black")
Prints red, if otherwise
else:
print("Red")
If pocket number is between 11 and 18 (inclusive)
elif pkt >= 11 and pkt <=18:
This prints red if packet number is even
if pkt%2 == 0:
print("Red")
Prints black, if otherwise
else:
print("Black")
If pocket number is between 19 and 28 (inclusive)
elif pkt >= 19 and pkt <=28:
This prints black if packet number is even
if pkt%2 == 0:
print("Black")
Prints red, if otherwise
else:
print("Red")
If pocket number is between 29 and 36 (inclusive)
elif pkt >= 29 and pkt <=36:
This prints red if packet number is even
if pkt%2 == 0:
print("Red")
Prints black, if otherwise
else:
print("Black")
Prints error if input is out of range
else:
print("Error")