47-year-old man to be sentenced for attempted murder