A computer is an electronic device that can process data, store information, and perform a wide range of tasks. It…