Answer:
Option c is the correct answer for the above question.
Explanation:
- If the array will store in row-major order, then it will be a store like the first row, then second row and then third row.
- If the user wants to conclude the address of the A[3,5], then the address of the A[3,5] will be 184.
- It is because the 3 states the row number and the 5 states the column number.
- The above question states that every value take 8 bit. and there are 4 rows from 0 to 3 and 6 column (0 to 5) for every row (except the fourth rows because it takes 5 columns from 0 to 4) before the A[3,5].
- So there are 23 value before A[3,5] which are as-- [00,01,02,03,04,05][10,11,12,13,14,15][20,21,22,23,24,25][30,31,32,33,34].
- So when every value takes 8 bit then 23 value takes 184 bits(23*8).
- So the address of A[3,4] is 184.
- Hence option c is the correct and the other is not because of 184 stated from the c option only.
Answer:
Firewall is blocking that application.
Explanation:
i got it right on the test and i hope yall have a great day :3
In python:
i = 1
lst1 = ([])
lst2 = ([])
while i <= 5:
person1 = int(input("Enter the salary individual 1 got in year {}".format(i)))
person2 = int(input("Enter the salary individual 1 got in year {}".format(i)))
lst1.append(person1)
lst2.append(person2)
i += 1
if sum(lst1) > sum(lst2):
print("Individual 1 has the highest salary")
else:
print("Individual 2 has the highest salary")
This works correctly if the two individuals do not end up with the same salary overall.