Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

3. Is it a topic that your audience will find worthwhile?

Answered: 1 week ago

Question

2. Does the topic meet the criteria specified in the assignment?

Answered: 1 week ago