Foxconn, the Chinese manufacturing behemoth whose massive scale and cheap costs have helped make the iPhone affordable for hundreds of millions of consumers worldwide, announced Wednesday that it would acquire Japanese consumer electronics company Sharp for $3.5 billion.