I don't know why you needed to ask this but the answer is True
Answer:
In Python:
def convert_str_to_numeric_list(teststr):
nums = []
res = teststr.split()
for x in res:
if x.isdecimal():
nums.append(int(x))
else:
nums = []
break;
return nums
def get_avg(mylist):
if not len(mylist) == 0:
total = 0
for i in mylist:
total+=i
ave = total/len(mylist)
else:
ave = "None"
return ave
def get_min(mylist):
if not len(mylist) == 0:
minm = min(mylist)
else:
minm = "None"
return minm
def get_max(mylist):
if not len(mylist) == 0:
maxm = max(mylist)
else:
maxm = "None"
return maxm
mystr = input("Enter a string: ")
mylist = convert_str_to_numeric_list(mystr)
print("List: "+str(mylist))
print("Average: "+str(get_avg(mylist)))
print("Minimum: "+str(get_min(mylist)))
print("Maximum: "+str(get_max(mylist)))
Explanation:
<em>See attachment for complete program where I use comment for line by line explanation</em>
Answer:
tldr; treat this like a brief essay. some reasons would be "having a smartphone makes your job easier", "smartphones can make the job easier to do on the go".
Explanation:
hi there!
ok, so this should be pretty simple. first, we should take a look at the issue in the scenario; you're an employee for a company that relies heavily on technology to get your job done and send other employees to their customer's locations. because of this, getting poor quality mobile phones would make your job a little bit harder to do.
to put this in a little bit of a better perspective, imagine that you're an employee in a store, and your job is to sweep the floor. however, your boss only gives you a dust pan and bad quality broom. that'd make you wish that you had some better equipment to get your job done faster, right?
a memo is basically a written message in a business place; in modern days, they're usually emails, but back in the day they were letters and such. for this assignment, treat this like an essay! however, be sure to be to-the-point.
now to answer the question; we've already covered one reason that you could use in the memo: "having a smartphone would make your job easier". now think about what else having a smartphone would do compared to a mobile company phone.
here's an example of a memo!
good luck! hope this helped.
In a polling-based network receives, the operating system keeps checking the status register after a fixed time interval to see whether a device needs hardware attention or not. CPU gradually checks the status of receive bit after a defined time interval of a clock and if the value of receive bit is true then data is moved from the RX register to the memory. In interrupt-based networks, whenever a device needs hardware processing then an interrupt is raised to inform the CPU for device attention. The data of the device is transferred to memory from the network card.
Polling is a protocol, not a hardware mechanism where the device gets attention by CPU. An interrupt is a hardware mechanism, not a protocol where the device gets attention by the interrupt handler. In polling, during receiving, parts of received data need to transfer to memory but in case of interrupts, whole data is transferred at once after receiving is done. An interrupt is a heavy operation as compared to pooling because hardware involves in it. For large amounts of data, Polling becomes an inefficient method. In polling, CPU gradually checks devices at regular intervals whereas the Interrupt handler can send interrupt at any time. Each device has its own Command ready bit which indicates whether the device requires servicing or not. In polling, CPU wastes numerous clock cycles by repetitively checking the command-ready little bit of each device. In Interrupt based network, the interrupt request line indicates whether the device requires servicing or not. In interrupt-based network, CPU cycles not wasted but CPU is disturbed only when device send interrupt signals.
Relative performance between programmed I/O and DMA:
For determining the relative performance between programmed I/O and DMA, important factors are:
1. Size of data
2. Frequency of operations
“Hexadecimal uses digits that more closely resemble our usual base-10 counting system and it's therefore easier to decide at a glance how big a number like e7 is as opposed to 11100111. Higher information density. With 2 hexadecimal digits, we can express any number from 0 to 255.”