@bonnieluThat would depend on what whoever did the work was going to charge you. If the computer is old, more than 5 years, then you are probably better off with a new computer. The cost of computers has gone down so much that repairing then just isn't cost effective.
Now, here's the other part. The programs you use on your computer. Do you have the disks, or were they downloaded? If you have the disks, provided they are compatible with the new operating system, you can just load them into the new computer. If you have Windows XP now, and replace the computer, you will get Windows 10. Windows XP programs do not transfer over.
Also, if you go from XP to 10 your printer may not work with the new computer.
If they were dowloads, you may be able to get them from whoever you bought them from, or maybe not. That gets touchy.
Whatever you do, back-up any data you have on that computer BEFORE you take it in for repair. Photos, letter, etc. if the hard drive is replaced, you will lose them. Get a flash drive and move all of your photos to it. It's not hard to do, but it takes time.
When you bring in your computer, you don't need to bring in the cords, the keyboard, the mouse, or the monitor. Just the tower goes in to the shop unless there is a problem with any of the other parts.
A lot of things to think about, I know, but you need to know these things before you decide which way to go.
I doubt you are working with XP, but it's an example of the problems you can find.