a capacitor C and a resistance R are connected across a battery of emf E and internal resistance r as shown in figure. switch Sw is closed at t = 0