When I use crashed for computers, that means my computer stops working suddenly. To imply similar meaning for cars, should I choose broken or crashed? What I understand from crashed is having an accident instead of spontaneous problem.
When a computer crashes, it's the same as when the computer breaks down.
A car, on the other hand, can only break down in the same sense. If a car crashes, that means you get into a car accident and actually crash your car into another car or other object.
Crashed has a specific meaning in computing that refers to a runtime anomaly. That is, we can say that our program crashed, which means that it entered an invalid state or attempted something that was forbidden or invalid and (usually) was stopped by the operating system or itself.
If a computer is broken, that means it's not functional, and often implies that it's a physical problem. Or, it could mean that the software logic is incorrect (or incorrectly written). Broken programs might give incorrect results but never crash.
If you have software that just sits there, it might be broken but it will never crash unless you attempt to use it. Broken software may or may not crash, and software that crashes may or may not be broken (for certain values of "broken").