Question: NOTE: Is learning Python programming (currently on chapter 3) with the following textbook: Book Starting Out With Python 3rd Edition by Gaddis 3.

NOTE: Is learning "Python programming" (currently on chapter 3) with the following textbook:

Book "Starting Out With Python" 3rd Edition by Gaddis

NOTE: Is learning "Python programming" (currently on chapter 3) with the following

3. Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase The number of shares that Joe purchased was 2,000 . When Joe purchased the stock, he paid S40.00 per share. Joe paid his stockbroker a commission that amounted to 3 percent of the amount he paid for the stock Two weeks later Joe is considering the stock. He must pay his stockbroker another commission that amounts to 3 percent of the amount he receives for the sale of the stock Write a program that asks Joe to enter the number of shares he wants to sell and the selling price of the shares. Each share will be worth the same amount of money. The program should display the following information (formatted as shown in the sample output) The amount of money Joe paid for the stock. o The amount of commission Joe paid his broker when he bought the stock The amount that Joe sold the stock for The amount of commission Joe paid his broker when he sold the stock A131 Programming Assignment Display the amount of money that Joe had left when he sold the stock and paid his broker (both times). If this amount is positive, then Joe made a profit. If the amount is negative, then Joe lost money. How many shares to sell? 1500 How much is each share worth? 78.5 Original cost of stock: $80,000.00 Commission on purchase: $2,400.00 Amount sold for: $117,750.00 Commission on sale: $3,532.50 Amount of money you have left: $31,817.50

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!