This preview shows page 1. Sign up to view the full content.
Unformatted text preview: cout << Enter the price per share: ; cin>>price; shares= n*price commission= .02*shares total = shares + commission cout<<The amount for the stock alone without the commission is $ << shares << .<< endl; cout<<The amount of the commission is $ << commission << . << endl; cout<< The total amount is $ << total << . << endl; } return 0;...
View Full Document
This document was uploaded on 05/01/2011.
- Fall '09