Cooking a ham is not that much difficult, but it needs a bit of time and attention to make sure it turns out well.
Uncooked and partially cooked hams must be cooked prior to eating. Check the labels to make sure which type you have. Use correct cooking times and temperatures to achieve proper doneness.
The following graphic helps to cook ham in a proper way.
(Click on the Image for Full Version)