Question: Python Language * No arrays or functions Program 2 Using Loops (Do not use For loop for this program) Stock Transaction Program Last month Joe
Python Language
* No arrays or functions

Program 2 Using Loops (Do not use For loop for this program) Stock Transaction Program Last month Joe purchased some stock from Schmoe, Inc. Write a program that allows the user to input the followings as many times as he/she wants until the user is done (example it can be 5): 1. The name of the Stock Number of shares Joe bought 3. 2. Stock purchase price Stock selling price Broker commission 4. 5. displays the following paid for the stock(s) that Joe had transacted (if Joe entered 5 sets of stocks transactions then output 5 sets of stocks). 1. The Name of the Stock 2. The amount of money Joe paid for the stock (number of shares bought purchase price) 3. The amount of commission Joe paid his broker when he boug.: the stock. (Amount he paid for stocks commission in percent) 4. The amount that Jim sold the stock for. (number of shares selling price) 5. The amount of commission Joe paid his broker when he sold the stock. (Amount he sold shares . commission in percent) Display the amount of money 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 Profit/loss =(amount paid to buy stocks + commission)-(amount for sold stocks-commission) 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
