5 and 6 share a grammatical error unrelated to your question. You must say either "the machine has" or "the machines have." "The machine have" is grammatically incorrect. Apart from that, your pairs of statements are correct and equivalent in meaning. I can find nothing to choose between the noun and the gerund construction.
Student or Learner