Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started