There is small modification respect to transaction which had been answered

    Regarding (4) When profit on sale of machine is transferred to P&L a/c the following entry comes

                                                     Profit on sale of machine a/c Dr   6200

                                                                      To P&L a/c                                         6200

                                 (Being Profit on sale of machine is transferred to P&L a/c)