subject

You decide to buy some stocks for a certain price and then sell them at another price. write a program that determines whether or not the transaction was profitable. here are the details: • take three separate inputs: the number of shares, the purchase price of the stocks, and the sale price, in that order. • you purchase the number of stocks determined by the input. • when you purchase the stocks, you pay the price determined by the input. • you pay your stockbroker a commission of 3 percent on the amount paid for the stocks. • later, you sell the all of the stocks for the price determined by the input. • you pay your stockbroker another commission of 3 percent on the amount you received for the stock. your program should calculate your net gain or loss during this transaction and print it in the following format: if your transaction was profitable (or if there was a net gain/loss of 0) print: "after the transaction, you made 300 dollars." (if, for example, you gained 300 dollars during the transaction.) if your transaction was not profitable, print: "after the transaction, you lost 300 dollars." (if, for example, you lost 300 dollars during the transaction.) use string formatting.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
You know the right answer?
You decide to buy some stocks for a certain price and then sell them at another price. write a progr...
Questions
question
Mathematics, 28.01.2020 04:31