Original: In contrast, a general-purpose computer, such as a personal computer, can do many different tasks depending on programming.
Simplified: In contrast, a general-purpose computer  can do many different tasks depending on programming.