A computer is a general-purpose device that can be programmed to carry out a set of arithmetic or logical operations automatically. A tablet is a type of portable computer, typically with a touchscreen interface, that falls between a smartphone and a laptop in terms of size and functionality.