All pastes #383049 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-06 02:16 UTC
rendered paste body
int main()
{
int NumShares = 0;
double SalePrice = 0;
double PurchasePrice = 0;
double SaleCom = 0;
double PurchaseCom = 0;
double TradeProfit = 0;
double OverallProfit = 0;
char Again = 'n';

do {
   NumShares = Get_NumShares();
   SalePrice = Get_SalePrice();
   PurchasePrice = Get_PurchasePrice();
   SaleCom = Get_SaleCom();
   PurchaseCom = Get_PurchaseCom();
   TradeProfit = ((NumShares * SalePrice) - SaleCom) - ((NumShares * PurchasePrice) + PurchaseCom);
   OverallProfit += TradeProfit;

   cout << "Wanna try again? (y/n) NOT (Y/N) -> (y/n) :)";
   cin >> Again;
} while(Again == 'y');
}