Why does a computer use the binary system?

Diodes in a computer allow current to flow in only one direction.
Switches in a computer can only be in one of two positions: on or off.
Computer memory works best with as few digits as possible.
Integrated circuits in computer chips use positive and negative charges.

All of the statements you listed are correct and they all contribute to why computers use the binary system, which consists of only two digits (0 and 1). The binary system is a natural fit for computers because it aligns with the workings of electronic devices, which can represent two states or levels of voltage - on or off, high or low, positive charge or negative charge. This makes it easier for computers to process and store information using electronic circuits, and also reduces the likelihood of errors in electronic transmissions. Additionally, the binary system offers simpler and more efficient arithmetic operations, as opposed to the cumbersome calculations required by other number systems.