Пример #1
0
        static void Main(string[] args)
        {
            Student s1 = new Student("ragib", "18-38278-2", "cse", 3.9f);

            s1.ShowInfo();

            Console.WriteLine("");

            Course c1 = new Course("oriented programming 2 ", "CSC2201", 3);

            c1.ShowInfo();

            Console.WriteLine("");

            Account a1 = new Account("Mr. shahriar ", "5506", 50000);

            a1.showInfo();
            Console.WriteLine("");
            a1.Deposit(5000);
            a1.Withdraw(7000);

            Console.WriteLine("");
            Traingle t1 = new Traingle(10, 10, 10);
            Traingle t2 = new Traingle(10, 5, 10);

            t1.ShowInfo();
            t1.TestTraingle();
            t2.ShowInfo();
            t2.TestTraingle();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Student s = new Student();

            s.Name       = "Saafin";
            s.Id         = "19-39304-1";
            s.Department = "CSE";
            s.Cgpa       = 3.65f;
            s.ShowInfo();
            Triangle t = new Triangle();

            t.X = 3;
            t.X = 4;
            t.Z = 7;
            t.ShowInfo();
            t.TestTriangle();
            Account a = new Account();

            a.AccName = "My Account";
            a.AcId    = "1";
            a.Balance = 500;
            a.Deposit(12);
            a.Withdraw(40);
            Course c = new Course();

            c.CourseName   = "OOP2";
            c.CourseId     = "1011";
            c.CourseCredit = 3;
            c.ShowCourseInfo();
        }
Пример #3
0
        static void Main(string[] args)
        {
            Student s = new Student();

            s.Name       = "Dipty";
            s.Id         = "19-35698-1";
            s.Department = "CSE";
            s.Cgpa       = 3.65f;
            s.ShowInfo();
            Triangle t = new Triangle();

            t.X = 8;
            t.X = 10;
            t.Z = 12;
            t.ShowInfo();
            t.TestTriangle();
            Account a = new Account();

            a.AccName = "My Account";
            a.AcId    = "1";
            a.Balance = 3000;
            a.Deposit(2000);
            a.Withdraw(2000);
            Course c = new Course();

            c.CourseName   = "OOP2";
            c.CourseId     = "1011";
            c.CourseCredit = 3;
            c.ShowCourseInfo();
        }
Пример #4
0
        public static void Main(string[] arg)
        {
            Student s1 = new Student();
            Student s2 = new Student();

            s2.name = "Natasha";
            s2.id   = 18 - 39059 - 3;
            s2.ShowInfo();
        }
Пример #5
0
        static void Main(string[] args)
        {
            //  Student Class
            Student s1 = new Student();

            s1.Name       = "Insana Marium Methela";
            s1.Id         = "19-39411-1";
            s1.Department = "CSE";
            s1.Cgpa       = 3.41f;
            s1.ShowInfo();


            Console.WriteLine("-----------------------");

            // Triangle Class
            Triangle t1 = new Triangle();

            t1.X = 15;
            t1.Y = 10;
            t1.Z = 20;
            t1.ShowInfo();
            t1.TestTriangle();



            Console.WriteLine("-----------------------");

            // Account Class

            Account a1 = new Account();

            a1.Name    = "Methela";
            a1.Id      = "XX-XXXX-XX";
            a1.Balance = 30000;
            a1.ShowInfo();
            Console.WriteLine();
            a1.Deposit(500);
            Console.WriteLine();
            a1.Withdraw(-2);


            Console.WriteLine("-----------------------");
            //Course Class
            Course c1 = new Course();

            c1.Name   = "Object oriented programmin 2";
            c1.Code   = "CSE 3110";
            c1.Credit = 3;
            c1.CourseInfo();
        }
Пример #6
0
        static void Main(string[] args)
        {
            Student s = new Student();

            s.ShowInfo();

            Triangle t = new Triangle();

            t.ShowInfo();
            t.TestTriangle();

            Account a = new Account();

            a.ShowInfo();
            a.Amount = 600;
            a.Deposit(600);
            a.Withdraw(600);

            Course c = new Course();

            c.CourseInfo();
        }
Пример #7
0
        static void Main(string[] args)
        {
            Student s = new Student();

            s.Name       = "SSK";
            s.Id         = "37370";
            s.Department = "CSE";
            s.Cgpa       = 3.5f;
            s.ShowInfo();

            Account a = new Account();

            Triangle t = new Triangle();

            t.ShowInfo();

            Course c = new Course();

            c.CourseName   = "C#";
            c.CourseCode   = "CSC2212";
            c.CourseCredit = 3;
            c.ShowCourseInfo();
        }
Пример #8
0
        static void Main(string[] args)
        {
            /**
             * Student
             */
            Console.WriteLine("# Student #");

            Student student1 = new Student();

            student1.Name       = "Mohibor Rahman Rahat";
            student1.Id         = "19-43234-1";
            student1.Department = "CSE";
            student1.CGPA       = 3.56F;

            student1.ShowInfo();


            Student student2 = new Student("Tanvir Alam Niloy", "19-32424-1", "CSE", 3.33F);

            student2.ShowInfo();

            Console.WriteLine("\n");

            /**
             * Triangle
             */


            Console.WriteLine("# Triangle #");

            Triangle triangle1 = new Triangle();

            triangle1.X = 20;
            triangle1.Y = 20;
            triangle1.Z = 20;

            triangle1.ShowInfo();
            triangle1.TestTriangle();


            Triangle triangle2 = new Triangle(20, 30, 20);

            triangle2.ShowInfo();
            triangle2.TestTriangle();

            Triangle triangle3 = new Triangle(20, 30, 40);

            triangle3.ShowInfo();
            triangle3.TestTriangle();

            Console.WriteLine("\n");

            /**
             * Account
             */

            Console.WriteLine("# Account #");

            Account account1 = new Account();

            account1.AccName = "Nahian Sajjad";
            account1.Acid    = "123-123-123-123";
            account1.Balance = 2000;

            account1.Deposit(1000);
            Console.WriteLine("Name: {0}\nAcid: {1}\nBalance: {2}\n", account1.AccName, account1.Acid, account1.Balance);

            account1.Withdraw(300);
            Console.WriteLine("Name: {0}\nAcid: {1}\nBalance: {2}\n", account1.AccName, account1.Acid, account1.Balance);


            Account account2 = new Account("Tanvir Ahmed", "132-132-132-132", 40000);

            account2.Deposit(1000);
            Console.WriteLine("Name: {0}\nAcid: {1}\nBalance: {2}\n", account2.AccName, account2.Acid, account2.Balance);

            account2.Withdraw(300);
            Console.WriteLine("Name: {0}\nAcid: {1}\nBalance: {2}", account2.AccName, account2.Acid, account2.Balance);

            Console.WriteLine("\n");


            /**
             * Course
             */

            Console.WriteLine("# Course #");

            Course course1 = new Course();

            course1.CourseName   = "Algorithm";
            course1.CourseCode   = "CSC2211";
            course1.CourseCredit = 3;

            course1.ShowCourseInfo();


            Course course2 = new Course("Software Engineering", "CSC3112", 3);

            course2.ShowCourseInfo();
        }