Idempotent elements in a ring (2)

An element r of a ring R is said to be idempotent if r2=r. Suppose that R is a commutative ring with unity containing an idempotent element e.
(a) Prove that 1−e is also idempotent.
(b) Prove that eR and (1−e)R are both ideals in R and that

R≅eR×(1−e)R.

(c) Prove that if R has a unique maximal ideal, then the only idempotent elements in R are 0 and 1.