Answer:
Dr Machinery $4500
Cr Cash            $4500
Explanation:
The reason is that the Internation Accounting Standard IAS 16 Property, Plant & Equipment says that the company must capitalized all those costs that are necessary to make the asset ready to use which means that the cost of training which is $500 and purchasing cost which is $4000 must be capitalized as part of the asset.
So the entry would be:
Dr Machinery $4500
Cr Cash            $4500