Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design an algorithm and write the Python program to calculate the stock purchasing and selling transactions. 1. ask the user to enter the name of

Design an algorithm and write the Python program to calculate the stock purchasing and selling transactions.
1. ask the user to enter the name of the stock purchased, the number of share purchased, and the price per share purchased
2. assume the buyer pays 2% of the amount he paid for the stock purchase as broker commission
3. assume that the buyer sold all stocks. Ask the user to enter the price per share sold.
4. assume the buyer will pay another 2% of the amount he received for selling the stock as broker commission
the program will calculate and display:
1. the amount of money he paid for the stock purchase
2. the amount of commission he paid to the broker for purchase transaction
3. the amount he sold the stock for
4. the amount of commission he paid to the broker for purchase selling
5. the possible profit he made after selling his stock and paying the two commissions to the broker
image text in transcribed
Design an algorithm and write the Python program to calculate the stock purchasing and selling transactions. 1. ask the user to enter the name of the stock purchased, the number of share purchased, and the price per share purchased 2. assume the buyer pays 2% of the amount he paid for the stock purchase as broker commission 3. assume that the buyer sold all stocks. Ask the user to enter the price per share sold. 4. assume the buyer will pay another 2% of the amount he received for selling the stock as broker commission the program will calculate and display: 1. the amount of money he paid for the stock purchase 2. the amount of commission he paid to the broker for purchase transaction 3. the amount he sold the stock for 4. the amount of commission he paid to the broker for purchase selling 5. the possible profit he made after selling his stock and paying the two commissions to the broker

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Examine whether psychology is free of value judgments.

Answered: 1 week ago

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago