Answer:
The following are the program in the Python Programming Language.
#get input from the user
val = input("Enter the value: ")
#split the input values
x=val.split()
#declare and initialize two variables to 0
total, l = 0,0
#set for loop
for n in x:
#coverting into string
n = int(n)
#perform addition
total= total + n
#check that is l is none or n is greater than l
if(l is None or n > l):
#initialize the value of n in l
l = n
#print the following output
print("Average and maximum value are:", total // len(x), l)
<u>Output</u>:
Enter the value: 10 20 0 5
Average and maximum value are: 8 20
Explanation:
<u>Following are the description of the program</u>.
- Firstly, declare a variable 'val' in which we get string type input from the user.
- Again declare two variables and assigned them to 0.
- Then set the for loop statement, in which we convert the string variable into the integer and perform addition with those converted values. Set the if conditional statement to check that if the variable 'l' is none or 'n' is greater than 'l
' then, assigned the value of the variable 'n' in the variable 'l'.
- Finally, print the following result with message.
Answer:
No
Explanation:
We know that Priority inversion can be seen as a scheduling situation in which higher priority task gets preempted by lower priority task. And that this is one of the main problem in priority scheduling.
If we overlook Priority scheduling and instead we decided to use Round Robin scheduling we will never encounter the priority inversion problem. As ,in Round Robin scheduling the process generally use a certain amount of time or time slices for each processes before it is force to wait for the next process.
Answer:
Explanation:
Well if you don't have a will to your estate then noone will have access to your assets. It ultimately leads to political and problamatic government issues, with your family having nothing of what you left behind.