Example #1
0
        public string SPneInfo()
        {
            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-1002-----------------------------------" + 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.clearManifest1002();
            write.manifestHeader1002();
            while (i < Int32.Parse(a))
            {
                write.writeInfoToManifest1002(p.genPerson().ToString());
                read.readInfoFromManifest1002();
                i++;
            }
            return(c);
        }
Example #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;
        }