Answer:
def find_max(num_1, num_2):
max_val = 0.0
if (num_1 > num_2): # if num1 is greater than num2,
max_val = num_1 # then num1 is the maxVal.
else: # Otherwise,
max_val = num_2 # num2 is the maxVal
return max_val
max_sum = 0.0
num_a = float(input())
num_b = float(input())
num_y = float(input())
num_z = float(input())
max_sum = find_max(num_a, num_b) + find_max(num_y, num_z)
print('max_sum is:', max_sum)
Explanation:
I added the missing part. Also, you forgot the put parentheses. I highlighted all.
To find the max_sum, you need to call the find_max twice and sum the result of these. In the first call, use the parameters num_a and num_b (This will give you greater among them). In the second call, use the parameters num_y and num_z (This will again give you greater among them)
Answer:
37
Explanation:
Given int[] vals = {7,5,3,9,0,37,93,16,68,6,99};
In programming, the position of each value in the list are known as index. The first value is always assigned index of 0 not 1, the second value is assigned index of 1 and so on. For example;
val[0] = 7 i.e value with index 0
val[1] = 5
val[4] = 0
In order to print out this value
System.out.println(vals[vals[1]+vals[4]]);
Substituting the index value val[1] and val[4] into the argument given
vals[vals[1]+vals[4]]
= vals[5+0]
= vals[5]
= 37 (value at the 5th index)
System.out.println(vals[vals[1]+vals[4]]);
= 37
This means that the system will print out 37 to the console
Multiplexer. A mux converts mutiple inputs into fewer outputs, for example combined with an address bus. Then the address bus decides which part of the input is linked to the output, so the inputs use the outputs each at a different point in time (=time division multiplexing)
Answer:
Are all jobs of a DBMS (Database Management System).
Explanation:
DBMS or Database Management System is a software tool that is used to manage databases. Popular examples include MS SQL Server, Oracle and MySql. DBMSs can range from command line tools to fully featured programs.
DBMS's main job is to provide a interface for managing database, and also provide efficient and quick results of queries.
DBMSs also provide ways to connect your application to the database through APIs, so that a programmer can provide persistence to the application data.