A west Cocoa man has been convicted of first-degree murder and sentenced to life in prison for shooting his friend to death in a home where they both stayed in January 2022.