#Week 2 Assignment 1 - Mandy Brown #Compute weekly pay of a salesman hoursWorked = int(input(" Enter the hours you worked this week: "))#prompt user to enter total hours worked totalSales = float(input(" Total sales this week: ")) #prompt user to enter his/her total sales hourlyRate = 18 #The salesman earns a hourly wage of $18 commissionPercentage = 25 #The salesman earns a commission of 25% pay = hoursWorked * hourlyRate #This will compute the salesmans weeks pay commission = totalSales * (commissionPercentage/100) #This will compute the commission earned weeklyPay = pay + commission # This will compute the total weekly pay print("\nPay: %.2f" % pay)# This shows the user the weekly pay print("Commission: %.2f" % commission)#This will show the user the commission earned from sales print("Weekly Pay: %.2f" % weeklyPay)#this will show the user the total weekly pay including commission