Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Output Investigate value of elements from three arrays, with given subscript by user. Change value of elements with certain assignment statements: A[4]=A[0]B[3]=B[1]+B[2]C[2][3]=A[3] Input Initialize two
Output
Investigate value of elements from three arrays, with given subscript by user. Change value of elements with certain assignment statements: A[4]=A[0]B[3]=B[1]+B[2]C[2][3]=A[3] Input Initialize two 1D array: Array A with size 10, double type, choose your own numbers as its values. Array B with size 10, integer type, choose your own numbers as its values. Initialize one 2D array : Array C with row size 4 , column size 5 , double type, choose your own numbers as its values. From the keyboard, user will enter which subscript(s) of the array to find its value. Investigate value of arrays 1. Which subscript of array A (0-9): 6 A[6]=0.10. 2. Which subscript of array B (0-9): 8 B[8]=1 3. Which subscript of array C : 1st subscript (03):3 2nd subscript (04):2 C[3][2]=2.10 Change value of an element in arrays 1. A[4]=A[0] New A[4] is 3.40 2. B[3]=B[1]+B[2] New B[3] is 2 3. C[2][3]=A[3] New C [2][3] is 3.30Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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