Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The picture above is my program after I run it. For some reason it is putting al

ID: 3542392 • Letter: T

Question


The picture above is my program after I run it. For some reason it is putting all these random values all over the screen. The only values I have enterted are for the first 3 in the buy at column first 3 in sell at and only the first in the on hand and value columns. Why are all these random numbers appearing all over my program?

The picture above is my program after I run it. For some reason it is putting all these random values all over the screen. The only values I have enterted are for the first 3 in the buy at column first 3 in sell at and only the first in the on hand and value columns. Why are all these random numbers appearing all over my program?

Explanation / Answer

if your array size is more than you used then the remaining may display this type of unwanted values

so plz check that array size you used

and more over if try to print array of values more than you entered then also there is chance to print to garbage values


so check the array size,

check the upto which limit you are printing array


and also check the array has correctly assigned to the given values .................

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote