Mzsmunna
10/16/2019 - 1:47 PM

MainClass


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            Student s1 = new Student();
            s1.Name = "Munna";
            Console.WriteLine(s1.Name);
            s1.ID = "15-29817-2(H2)";
            Console.WriteLine(s1.ID);
            s1.Department = "CSSE";
            Console.WriteLine(s1.Department);
            s1.CGPA = 3.37f;
            Console.WriteLine(s1.CGPA);

            Account a1 = new Account();
            a1.AccountName = "Mzs";
            a1.AccountID = "29817";
            a1.Balance = 5000.0;

            Account a2 = new Account();
            a2.AccountName = "Xyz";
            a2.AccountID = "29818";
            a2.Balance = 4000.0;

            a1.Deposit(500);
            a2.Deposit(400);
            a1.Withdraw(1000);
            a2.Withdraw(2000);
            a1.Transfer(1000, a2);
            a2.Transfer(500, a1);

            Console.WriteLine(a1.AccountName);
            Console.WriteLine(a1.AccountID);
            Console.WriteLine(a1.Balance);

            Triangle t1 = new Triangle();
            t1.TestTriangle();
            Triangle t2 = new Triangle();
            t2.TestTriangle();

        }
    }
}