Question: Exercise 1 : Array Twisters ( lab 1 _ ex 1 . c ) Create a Program that asks for 1 0 integers ( Use
Exercise : Array Twisters labexc
Create a Program that asks for integers Use Arrays Afterward, display a navigation menu and perform the following:
Display the numbers
Display it in reverse order
Display the values of even indices thndthththn
Display the values of odd indices strdthththn
Ask for an index k then rotate array to the right.
Ask for an index k then rotate the array to the left.
Sample Input Expected Output
number:
Menu:
Display the numbers
Display it in reverse order
Display values of even indices
Display values of odd indices
Rotate array by k Forward
Rotate array by k Backward
choice:
number:
Menu:
Display the numbers
Display it in reverse order
Display values of even indices
Display values of odd indices
Rotate array by k Forward
Rotate array by k Backward
choice:
number:
Menu:
Display the numbers
Display it in reverse order
Display values of even indices
Display values of odd indices
Rotate array by k Forward
Rotate array by k Backward
choice:
number:
Menu:
Display the numbers
Display it in reverse order
Display values of even indices
Display values of odd indices
Rotate array by k Forward
Rotate array by k Backward
choice:
number:
Menu:
Display the numbers
Display it in reverse order
Display values of even indices
Display values of odd indices
Rotate array by k Forward
Rotate array by k Backward
offset:
number:
Menu:
Display the numbers
Display it in reverse order
Display values of even indices
Display values of odd indices
Rotate array by k Forward
Rotate array by k Backward
offset:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
