Question: write a c++ code to perform the following task Submission Date: 20 Jan 2023 create an array with size 12. Take input from the user.

write a c++ code to perform the following task
write a c++ code to perform the following task Submission Date: 20

Submission Date: 20 Jan 2023 create an array with size 12. Take input from the user. Take another array of the same size. Apply the following rules on array one and save the result in array two, index by index 1. If index is odd and value is even, no change needed, save the same value 2. If index is odd and value is odd, take cube of the value and save in array two 3. If index is even and value is even, divide the value by two and save it in array two 4. If index is even and value is odd, divide the value by two then add one and save it in array two Please enter 12 numbers for array one Elements in array two are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!