public void AddTwoNumberPart2(Amountofmoney Money1) //MAdd2- Add the two money amounts and passing an object as parameter
        {
            ulong  NewIntegerPart    = this.IntegerPart + Money1.getIntegerPart();
            ushort NewFractionalPart = (ushort)(this.FractionalPart + Money1.getFractionalPart());

            string Frac = FractionalPart.ToString();

            if (Frac.Length > 2)
            {
                Console.WriteLine("Wrong input");
            }
            else
            {
                if (NewFractionalPart > 100)
                {
                    NewFractionalPart = (ushort)(NewFractionalPart - 100);
                    NewIntegerPart    = NewIntegerPart + 1;
                }
                string frac2 = NewFractionalPart.ToString();

                if (frac2.Length > 2)
                {
                    Console.WriteLine("Wrong input");
                }
                else
                {
                    this.SetNewValueforIntegerPart(NewIntegerPart);
                    this.SetNewValueforFractionalPart(NewFractionalPart);
                }
            }
        }
        //public ulong getint()///// getting the values from above constructor
        //{
        //    return this.IntegerPart;
        //}
        //public ushort getfrac()///// getting the values from above constructor
        //{
        //    return this.FractionalPart;
        //}
        public Amountofmoney(Amountofmoney tech) //C4-Constructor4 is copy of constructor3
        {
            //this.IntegerPart = tech.IntegerPart;

            //this.FractionalPart = tech.FractionalPart;
            this.SetNewValueforIntegerPart(tech.getIntegerPart());
            this.SetNewValueforFractionalPart(tech.getFractionalPart());
        }
        public void SubtractTwoNumberPart2(Amountofmoney Money1) //MSub2---Substract the two money amounts and passing an object as parameter
        {
            ulong  NewIntegerPart    = this.IntegerPart - (Money1.getIntegerPart());
            ushort NewFractionalPart = (ushort)(this.FractionalPart - (Money1.getFractionalPart()));

            string Frac = FractionalPart.ToString();

            if (Frac.Length > 2)
            {
                Console.WriteLine("Wrong input1");
            }
            else
            {
                if (this.FractionalPart < Money1.getFractionalPart())
                {
                    NewFractionalPart = (ushort)((this.FractionalPart + 10) - (Money1.getFractionalPart()));
                    NewIntegerPart    = ((this.IntegerPart - 1) - (Money1.getIntegerPart()));
                }
                this.SetNewValueforIntegerPart(NewIntegerPart);
                this.SetNewValueforFractionalPart(NewFractionalPart);
            }
        }