Пример #1
0
        public override double[] ShowTtlChange(double baseStk)
        {
            google  = new Google();
            baseStk = google.stkVal();
            double[] dayChange = google.ShowDayChange(google.stkVal());
            double   currVal   = dayChange[0];

            ttlChange = currVal + ttlChange;
            ttlStk    = baseStk + ttlChange;
            double[] values = new double[2] {
                ttlChange, ttlStk
            };
            return(values);
        }
Пример #2
0
        public override double[] ShowDayChange(double baseStk)
        {
            google = new Google();
            double amntChange;
            double dayChange;

            baseStk = google.stkVal();
            double percChange = google.RandStkVal(.01, .05);
            double sign       = google.RandVal();

            amntChange = baseStk * percChange * sign;
            dayChange  = amntChange + baseStk;
            double[] values = new double[2] {
                amntChange, dayChange
            };
            return(values);
        }
Пример #3
0
 public Invest_Form()
 {
     InitializeComponent();
     clientAcct   = new ClientAcct();
     stkPortfolio = new Google();
 }