How to configure hostname and banner

How to change the Host Name 

Switch>
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.
Switch(config)#hostname SW001
SW001(config)#exit
SW001#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

How to create a banner

SW001#
SW001#enable
SW001#configure terminal
SW001(config)#banner motd #Welcome to SW001 this switch is configured by Cisco Associate Robert Welsh. Contact Number 0191.75.75.18#
SW001(config)#exit
SW001#exit
SW001#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]