Question: kindly use python Read numerical data and store it in an array. The program should ask for the number of values with which you want
kindly use python
Read numerical data and store it in an array. The program should ask for the number of values with which you want to work and then perform the reading from the keyboard. Numeric values must be stored in an array (DO NOT USE LISTS OR ANY OTHER STRUCTURE THAT IS NOT AN ARRAY). After performing the reading, you must multiply the values that are in even positions by 2 and display the resulting array:
For example, if you read from the array: 1 4 7 9 11 5 The result will be: 2 4 14 9 22 5 QUALIFICATION CRITERIA Perform data reading in an array: 3 points Multiply the values of even array positions by 2: 1 point Show the results stored in the array: 1 point
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
