Computer Science, asked by jsivateja143, 6 months ago

Write a program to calculate the total bill tax amount for a list of billing amounts
passed as an array of long integers.
Up to the amount 1000, there is no tax applicable, subsequently, a flat tax of
10% is applicable for the remaining amount as per the tax rate. in python language​

Answers

Answered by syedsadiq288
1

Explanation:

array of positive integers. note : you are expected to write code in the findtotaldistance function only which receive the first parameter as the numbers of items in the array and second paramter as the array itself. you are not required to take the input

Answered by mrudulakaipu20
0

Answer:

n=int(input())

l = list(map(int,input().strip().split()))[:n]

s=0

for i in range(0,n):

   if(l[i]!=1000):

       s=s+(l[i]-1000)*0.1

print("{:.0f}".format(s))

   

Explanation: I hope this will help you out. I wrote that in a general way you can use it in any function

Similar questions