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 memoryrepeatPrompt for and input user's array length Luntil0fori := 0to(L-1) Prompt for and input A[i]end forwhile(First character of prompted input string for searching = 'Y' or 'y') Prompt for and input value V to be searched found := FALSEfori := 0to(L-1)ifV = A[i]thenfound := TRUE breakend ifend forif(found)thenDisplay message that value was found at position ielseDisplay message that value was not foundend ifend 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