Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service charges on the total amount for each transaction -- buy or sell.
When Cindy sells stocks, she would like to know if she gained or lost on a particular investment. Write a program that reads in the number of shares sold, the purchase price of each share, and the selling price of each share. Use a file to get this information. The program outputs to a file the amount invested, the total service charges, amount gained or lost, and the amount received after selling the stock.
The program needs to be written in Python.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here