Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 5d035e2

Browse files
Create Commission Calculator.py
1 parent 3703a3f commit 5d035e2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Mr Burns
2+
# Coding for All
3+
# Student: Aoyan Sarkar
4+
5+
6+
### Input ###
7+
8+
SalesPersonName = input("What is your name?: ")
9+
SalesAmount = float(input("How much did you sell?: "))
10+
CommissionRate = float(input("What is your comission rate (in percent)?:"))
11+
12+
### Calculations ###
13+
CommissionEarned=(SalesAmount*CommissionRate)/100
14+
15+
### Output ###
16+
17+
print(SalesPersonName+", your sales are: $"+str(SalesAmount)+" and your commission is: $"+str(CommissionEarned))

0 commit comments

Comments
 (0)