Apple Inc., formerly Apple Computer, Inc., is an American multinational corporation headquartered in Cupertino , California that designs, develops, and sells consumer electronics , computer software and personal computers.