Question
Help In Python Please:.. Qty = 2000 PurchasePrice = 40 CommissionPct = 3 / 100 QtySold = 2000 SellPrice = 42.75 SellRate = 3 /
Help In Python Please:..
Qty = 2000
PurchasePrice = 40
CommissionPct = 3 / 100
QtySold = 2000
SellPrice = 42.75
SellRate = 3 / 100
PurchaseTotal = Qty * PurchasePrice
CommissionTotal = PurchaseTotal * CommissionPct
SalesTotal = QtySold * SellPrice
SaleCommissionTotal = SalesTotal * SellRate
print('The total Joe paid for the stock is', PurchaseTotal)
print('The purchase commission Joe paid is', CommissionTotal)
print('Joe sold the stock for ', SalesTotal)
print('The sales commission Joe paid is', SaleCommissionTotal)
print('Joes profit or loss is', (SalesTotal-SaleCommissionTotal) - (PurchaseTotal+CommissionTotal))
Write the same stock transaction program in an interactive mode. The program should ask the user to input the values and your program should calculate the same information
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started