Ejemplo n.º 1
0
        public string BPswInfo()
        {
            int i = 0;
            Sales sales = new Sales();
            Passengers p = new Passengers("", 0);
            Write write = new Write();
            Read read = new Read();
            int amount;
            int amountFirst;
            int amountCoach;
            string sold = " Tickets Sold";
            string msg = "-------Flight-11--------------------------------------" + Environment.NewLine+ "Total Revenue : $";
            string generate = p.genPerson().ToString();
            string a;
            string b;
            string c;
            amountFirst = sales.LargeRev1st(sales.LargeSales1st());
            amountCoach = sales.LargeRevCoach(sales.LargeSalesCoach());
            amount = sales.LargeSalesCoach() + sales.LargeSales1st();
            a = amount.ToString();
            b = msg + sales.TotalLargeRevenue(amountFirst, amountCoach);
            c = b + Environment.NewLine + a + sold;

            write.clearManifest11();
            write.manifestHeader11();
            while (i < Int32.Parse(a))
            {
                write.writeInfoToManifest11(p.genPerson().ToString());
                read.readInfoFromManifest11();
                i++;
            }
            return c;
        }
Ejemplo n.º 2
0
        public string SPswInfo()
        {
            int i = 0;
            Sales sales = new Sales();
            Passengers p = new Passengers("", 0);
            Write write = new Write();
            Read read = new Read();
            string sold = " Tickets Sold";
            string msg = "-------Flight-1001------------------------------------" + Environment.NewLine+ "Total Revenue : $";
            string generate = p.genPerson().ToString();
            string a;
            string b;
            string c;
            a = sales.SmallSales().ToString();
            b = msg + sales.SmallRevenue(Int32.Parse(a));
            c = b + Environment.NewLine + a + sold;

            write.clearManifest1001();
            write.manifestHeader1001();
            while (i < Int32.Parse(a))
            {
                write.writeInfoToManifest1001(p.genPerson().ToString());
                read.readInfoFromManifest1001();
                i++;
            }
            return c;
        }