Question: in python please Q#4: Last month, Joe purchased some stock in ABC Software, Inc. Here are the details of the purchase: The number of shares
Q#4: Last month, Joe purchased some stock in ABC Software, Inc. Here are the details of the purchase: The number of shares that Joe purchased was 5,000 When Joe purchased the stock, he paid $43.00 per share Joe paid his stockbroker a commission that amounted to 2 percent of the amount he paid for the stock Two weeks later, Joe sold the stock. Here are the details of the sale The number of shares that Joe sold was 5,000. . He sold the stock for $45.75 per share . He paid his stockbroker another commission that amounted to 2 percent of the amount he received for the stock Write a program that displays the following information 1. The amount of money Joe paid for the stock 2. The amount of commission Joe paid his broker when he bought the stock 3. The amount for which Joe sold the stock 4. The amount of commission Joe paid his broker when he sold the stock 5. The amount of money that Joe had left when he sold the stock and paid his broker (both times) 6. If this amount is positive, then display "Joe made a profir else if the amount is negative, then display "Joe lost money." (Note: Use Il-else structure) Important Notes: 1. There is no input in this question 2. All the computations should be performed in your program 3. Use meaningful names for your variables 4. Make sure to display the requested values in a well structured format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
