Question: Time Declare an array of floats that has the capacity to hold 4 values. Use a loop to assign the value 3.1 to the
Time Declare an array of floats that has the capacity to hold 4 values. Use a loop to assign the value 3.1 to the first spot in the array. For each subsequent spot, add 2.1 So for the second spot, the value will be 5.2 The third spot will be 7.3, and so on. Once complete, print out the contents of the array. The printed out array should look similar to this: 3.1, 5.2, 7.3, 9.4
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Heres a Python code snippet that accomplishes the task you described Declare an array of f... View full answer
Get step-by-step solutions from verified subject matter experts
