Question: Complete the 'getMaximumAmount' function below. # # The function is expected to return a LONG _ INTEGER. # The function accepts following parameters: # 1

Complete the 'getMaximumAmount' function below.
#
# The function is expected to return a LONG_INTEGER.
# The function accepts following parameters:
# 1. INTEGER_ARRAY quantity
# 2. INTEGER m
#
def getMaximumAmount(quantity, m):
//code all write here
if __name__=='__main__':
fptr = open(os.environ['OUTPUT_PATH'],'w')
quantity_count = int(input().strip())
quantity =[]
for _ in range(quantity_count):
quantity_item = int(input().strip())
quantity.append(quantity_item)
m = int(input().strip())
result = getMaximumAmount(quantity, m)
fptr.write(str(result)+'
')
fptr.close()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!