n this assignment we will get some experience working with an integer array. Please carry out the following steps:
Declare a 32-bit integer array A[10] in memory repeat Prompt for and input user's array length L until 0 for i := 0 to (L XXXXXXXXXXPrompt for and input A[i] end for while (First character of prompted input string for searching = 'Y' or 'y') Prompt for and input value V to be searched found := FALSE for i := 0 to (L-1) if V = A[i] then XXXXXXXXXXfound := TRUE XXXXXXXXXXbreak end if end for if (found) then XXXXXXXXXXDisplay message that value was found at position i else XXXXXXXXXXDisplay message that value was not found end if end while
(Note: To read a Y or N character from the keyboard, use the same input macro to read a string of one character (followed by the null byte), and look at the first byte of the string read.)
please watch the lucter to follow his steps:
https://www.youtube.com/watch?v=uvUmmdaLCS4&feature=youtu.be
https://www.youtube.com/watch?v=YQTssmB8hWc&feature=youtu.be
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here