Answer:
Explanation:
The following code is written in Pyton and keeps prompting the user for new decimal values, once the user is done it loops through the array getting the highest three values and outputting them to the user.
def atleast_three():
numbers = []
smallest = 0
medium = 0
largest = 0
while True:
numbers.append(float(input("Please enter a decimal value: ")))
answer = input("Add another value? Y/N").lower()
if answer != 'y':
break
else:
continue
for x in numbers:
if x > largest:
largest = x
elif (x > medium) & (x < largest):
medium = x
elif (x > smallest) & (x < medium):
smallest = x
print(str(smallest) + ", " + str(medium) + ", " + str(largest))
Answer:
The answer is "Option C".
Explanation:
This IP address is used as a local network or gateway by devices like d-link as well as other system products. In this address companies operating router access permission to enable the system administrator to set up one's systems and adapters, that's why in this question, the "option c" that is "192.168.1.1" is correct.
Answer:
look that up on gogle
filler filler filler filler filler
Answer:
Returned value: 2
Explanation:
Public int f(int k, int n) {
if (n == k)
return k;
else if (n > k)
return f(k, n - k);
else return f(k - n, n);
}
/////////////////////////////////////////////////////////////////////////////////////////
Trace of function calls,
f(6, 8)
f(k, n - k) -> (6, 2)
f(k - n, n) -> (4, 2)
f(k - n, n) -> (2, 2)
return k
The maximum number of tape drivers that are required by each job in the multiprocessor is 6.
<h3>How to illustrate the information?</h3>
It is given that a job will be performed in parallel with 4 tape drivers and laterin series with remaining 2 tape drivers. The maximum number of jobs that cab be progress simultaneously will be:
= total number of tape drivers / number of tape drivers assigned for each job.
Maximum number of jobs that cab be progress simultaneously = 36 / 6 = 6
Each process run with 4 tape drivers parallel and remaining 2 tape drivers is used at the last. Therefore, most of the time the 4 tape drivers are used and the remaining 2 tape drivers is left idle.
The maximum number of tape drivers kept idle = last tape drive in each of the processes running.
There are 6 processes running so, the maximum number of processes left idle is 6.
When each process makes use of all the tape drivers, and then there will not be any idle state for the tape drivers. Therefore, the minimum number of tape drivers kept idle is 0.
Learn more about multiprocessor on:
brainly.com/question/20316947
#SPJ1