Test the program and when you are convinced it works correctly, turn in a printed copy of the program. Make sure your program begins with comments that include your name and a description of the program. The user will enter the number of shares of a stock he owns, the purchase price, and the sale price. Stock prices are quoted in fractions, like 56 .
People often have trouble dealing with fractions.
Get the input by asking for three integers, the dollars, the numerator, and the denominator. Prompt for the input of the stock information as described above. Repeat the users input values as part of the result. Output the profit or loss on the sale of the stock. Use if statements to print different messages depending on whether the user made a profit, broke even, or lost money on the transaction.