Write a program in Python to accept the Quantity and Rate of 3 different items bought from a store. Then show the following:
1. Total Amount of Purchase
2. Discount (calculated @ 22% of Total Amount)
3. Net Amount to be paid after discount
Answers
Answered by
4
Answer:
# Python3 program to find the
# Discount Percentage
# Function to find the
# Discount Percentage
def discountPercentage(S, M):
# Calculating discount
discount = M - S
# Calculating discount percentage
disPercent = (discount /M) * 100
return disPercent
# Driver code
if __name__=='__main__':
M = 120
S = 100
print(discountPercentage(S, M), "%")
M = 1000
S = 500
print(discountPercentage(S, M), "%")
# This code is contribute
# by Guna S
Explanation:
Hope it helps You...
Mark me as the brainliest!!!!!!
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Hindi,
4 months ago
Math,
8 months ago
Science,
8 months ago
Computer Science,
11 months ago
English,
11 months ago