Question: In this assignment, you will write a program that computes the net profit / loss from a sale of stock. The program will ask the

In this assignment, you will write a program that computes the net profit/loss from a sale of stock. The program will ask the user for information related to the transaction, including the value of the stock when purchased and when sold, the commission cost for buying/selling of stock, and how much stock was bought. The program should then output a transaction log which displays the information related to the buying/selling of the stock. The program should use string formatting (as discussed in Slide Set 03) to output the transaction log.

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 Programming Questions!