This is the updated wiring for this arrangement, with a 2-wire cable added between the fan/light and switches. The white wire is no longer used for hot and the source neutral is run through to the switch box to satisfy the 2011 NEC requirement of a neutral wire in all switch boxes. All other wiring is the same as above.
To wire an exhaust fan to a wall switch, use this diagram. These fans usually come with a small electrical connection box welded to the side of the housing. There will be a cover on the connection box that fastens with a small screw. Open it, pop the plug out of one of the wire holes and thread a wire clamp into it.
Here one ground fault circuit interrupter protects multiple duplex receptacles coming after it, known as multiple-location protection. Two-wire cable runs from the gfci to all the following receptacles. The line terminals on the gfci are connected to the circuit source and the load terminals are connected with a pigtail splice to each of the following receptacles. This keeps each duplex connected directly to the gfci.
This ground fault circuit interrupter wiring diagram of the same device leaves the switch out of the protected circuit. With this arrangement the receptacle is protected but the switch remains outside the circuit. This arrangement can be used to control a light or other device where the extra protection of a gfci is not necessary.