Well, both adjectives can apply to a person but they're not really connected. If we knew why he was hopeless and what he was ashamed about, it might help. Note that there should be only one full stop at the end of the sentence unless there's more to come. If there's more to come, there should be a space after "ashamed", followed by three dots (an ellipsis).
Student or Learner