I have an assignment to do and this is the partial code of the program. Like, 20% of the time it runs properly, 50% it runs inproperly and 30% of the time it crashes complet