Is "hello" followed by an ! or a . ?

I normally type "Hello!" However, I got corrected to be "Hello."
Which punctuation mark should I use?

Also, with "Have a nice day", should I use an exclamation mark or a full-stop?

Thank you very much.