Question: PYTHON HELP! Last month Joe purchased stock in Bear Software, Inc. and then he sold it two weeks later. Joe would like you to write
PYTHON HELP!


Last month Joe purchased stock in Bear Software, Inc. and then he sold it two weeks later. Joe would like you to write a short program to determine how much money he would have left after any two transactions like these. You will need to capture the following keyboard input from the user: * The number of shares - whole shares only and we will assume all shares purchased were sold The purchase price * . The sale price Nothing is free-Joe pays a 3% commission on every transaction he completes with his stock broker. That means he pays 3% to buy and 3% to sell. The commission percent should be stored in a named constant within your code. Your program will calculate and display to the screen the following results The amount Joe paid for the stock purchase. . The commission Joe paid for the stock purchase. . The total amount Joe received for the stock sale. . The commission Joe paid for the stock sale. Then, we want to see what amount he has left. Calculate and display the total amount Joe paid for the purchase, * . the net amount Joe received for the sale, and the amount he has left (which could be negative) e Make sure all of your amounts are formatted with two decimal places and use commas appropriately if there are more than three digits to the left of the decimal. Follow the programming guidelines we have discussed when creating your solution. You are free to format your input and output as you like, as long as it meets the requirements. Two examples are provided below. Use that data to test your progranm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
