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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!