Answer to Question #153210 in C++ for yousaf

Question #153210

Write a C++ program called “Eliminate evens”. First, create an array named “values” having 10

elements of integer type. Then, the program should ask the user to enter values (which may be negative as well as positive) in this array. After that, the program replaces each array element which is odd with an even value. Positive odds should be replaced by even values by adding 1 to them while the negative odd values must be replaced by adding -1 to them. In the end, the program shows the updated array.Use pointer notation


1
Expert's answer
2020-12-30T16:36:27-0500
Dear yousaf, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog