Question: C++ please This problem tests your ability to perform basic operations on a 1 dimensional array. Create a program that reads 10 integers from the

This problem tests your ability to perform basic operations on a 1 dimensional array. Create a program that reads 10 integers from the keyboard C++ please

This problem tests your ability to perform basic operations on a 1 dimensional array. Create a program that reads 10 integers from the keyboard (you do not need to prompt for them). Store these integers in a one dimensional array of ints. Next check each integer to see if it is divisible by 2; if it is then change the value to 1, if it isn't change it to 0. Finally print out the array in reverse order. As an example, if the input values were: 1, 3, 4, 6, 7, 8, 9, 10, 12, 14 your program should convert the values in the array to 0, 0, 1, 1, 0, 1, 0, 1, 1, 1 and then print the sequence in reverse: 1, 1, 1, 0, 1, 0, 1, 1, 0, 0. Here is some example input and output that shows formatting... Sample Input 1 2 3 4 5 6 7 8 9 10 Sample Output 1 0 1 0 1 0 1 0 1 0 Additional Assumptions You may assume the user enters valid integers.

Step by Step Solution

3.42 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Question CODE 1 include 2 using namespace std 3 4 main function 5 int main 6 7 8 9 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Marketing Questions!