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 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
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 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
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
Questions on the website: 13722360