QuestionWrite a program that:Inputs a 1x8 vector of single-digit integersStores them into an 8-entry 32-bit Integer array, "V".It is not completely trivial to do this given the Syscalls available and the desired input format.Hint: Use Read String and not Read Integer, then convert from ASCII to integer before storing into the integer array, "V". Use the ASCII table in the book to determine how t
...[Show More]

Question

Write a program that:

- Inputs a 1x8 vector of single-digit integers
- Stores them into an 8-entry 32-bit Integer array, "V".

It is not completely trivial to do this given the Syscalls available and the desired input format.

*Hint**: Use Read String and not Read Integer, then convert from ASCII to integer before storing into the integer array, "V". Use the ASCII table in the book to determine how to convert from ASCII to integer (there are two ways, both very easy, select the met*

*hod as per the introduction).*

After storing the integers in the array:

- Read the same values using Read Integer and store them in a 32-bit integer array, "VPrime".
- Subtract the two arrays integer by integer and put the results into a third 32-bit integer array, "VCheck".
- Sum all the values in VCheck and using Write Integer, display the result.

When you run the program, the input should look something like this with a space between numbers:

Input V: 1 4 0 2 7 3 8 4

(this is just an example vector; it can be any string of single digit integers)

Input VPrime:

1 4 0 2 7 3 8 4

(Where the integers: 0 1 2 3 4 ... 8 9 or whatever vector values the user wants to input are input by the user on the "console.")

And the output will look like:

Check Result: 0

[Show Less]