I don't see the internal combustion engine being anywhere close to any scrap heap of history any time soon. Even if a certain subset of consumer cars are moving over to electric motors at an accelerating pace, there are still plenty of major hurdles against these engines for a while yet, and many, many practical applications in which these hurdles just don't let electric cut the ice in place of combustion and power. There are over 31 million joules, or just under 9 kWhr in a single liter of gasoline. I know of no consumer market electric motor or battery that comes even close to this density.