I'm pretty sure everyone will tell you to toss it in the dumpster as it's not worth fixing, BUT...
If you want to learn guitar repair, I'm sure this would help you if you're motivated. If your friend thinks he'll just toss it out and you have the time to putter around with it, no guarantees of course, maybe he would give it to you and you could try your hand at fixing it. If it gets to difficult than you can decide to toss it and he will still be in the same place he was. If you fix it and he's already replaced the guitar with another $200+/- guitar than he'll have two, one to leave in the car out of case and one at home.
I'm sure you know this but most people who own even a $1500 guitar don't leave them in a car out of a case. Now many may leave it in a car in a case and that can be bad too, especially on hot days.
Repair of inexpensive guitar can be a tough one to determine. Usually they are not worth any effort as the labour alone will usually out weight the value of the guitar in good condition. Sometimes though even an inexpensive guitar has value (not necessarily $$ value) and it's worth fixing. My father in law and I fixed a friends Seagull 12 string which was stuck in a basement flood for 3 days before it (and the basement) was discovered. The guitar was his dead grandfather's who was a stellar musician and a great mentor to the man. Of course the instrument had no monetary value but the sentimental value to the owner was nearly priceless. We fixed it because it was worth the effort to save (even a cheap) family heirloom and we did it because we love the family. Of course no other guitar repairman would have touched it, well they would have but the price would have been way to much and a couple of them just said it wasn't worth the effort.
So, you have to decide if it's worth the effort or if it's just a $200 guitar ready for the fire pit singalong on a new guitar for your friend.
_________________
My Facebook Guitar Page"There's really no wrong way, as long as the results are what's desired." Charles Fox
"We have to constantly remind ourselves what we're doing....No Luthier is putting a man on the moon!" Harry Fleishman
"Generosity is always different in the eye of the person who didn't receive anything, but who wanted some." Waddy Thomson