Which part of the computer is used for calculating and comparing?
ALU is a part of the computer is used for calculating and comparing.
An arithmetic logic unit (ALU) is a digital circuit used to perform arithmetic and logic operations. It represents the fundamental building block of the central processing unit (CPU) of a computer. Modern CPUs contain very powerful and complex ALUs. In addition to ALUs, modern CPUs contain a control unit (CU).
A computer is an electronic device which is capable of receiving information and performing a sequence of operations by the instructions given to produce a result in the form of output. A calculator is a device used for mathematical calculations and has a small keyboard and display screen that shows the results.