Question texttriple_jump_records.txt contains triple jump data (rank #, distance (m), and windspeed (m/s), arranged in a structure.Note: if you are having trouble downloading the data file, open the link in a new tab, right-click, and select "Save as...".Fill in the template below to complete the following tasks:1. Import the datafile.2. Create three variables for each of rank, distance, and windspeed.3. Determine the rank and distance corresponding to the highest wind speed. Template:Answer 1 Question 1[select: , data = np.genfromtxt(triple_jump_records2.txt, delimiter='\t', skip_header=1, encoding="utf-8", dtype=float), data = np.genfromtxt(triple_jump_records2.txt, delimiter=',', skip_header=1, encoding="utf-8", dtype=float), data = np.genfromtxt('triple_jump_records2.txt', delimiter='\t', skip_header=True, encoding="utf-8", dtype=float), data = np.genfromtxt('triple_jump_records2.txt', delimiter=',', skip_header=True, encoding="utf-8", dtype=float), data = np.genfromtxt('triple_jump_records2.txt', delimiter='\t', skip_header=1, encoding="utf-8", dtype=float), data = np.genfromtxt('triple_jump_records2.txt', delimiter=',', skip_header=1, encoding="utf-8", dtype=float), data = np.genfromtxt('triple_jump_records2', delimiter='\t', skip_header=1, encoding="utf-8", dtype=float), data = np.genfromtxt('triple_jump_records2', delimiter=',', skip_header=1, encoding="utf-8", dtype=float)] rank = Answer 2 Question 1[select: , data[:, 0], data[0, :], data[:, 1], data[1, :], data[:, 2], data[2, :]] distance = Answer 3 Question 1[select: , data[:, 0], data[0, :], data[:, 1], data[1, :], data[:, 2], data[2, :]] wind_speed = Answer 4 Question 1[select: , data[:, 0], data[0, :], data[:, 1], data[1, :], data[:, 2], data[2, :]]max_wind_index = np.argmax(wind_speed)max_wind_rank = rank[max_wind_index]max_wind_distance = distance[max_wind_index]print(f"Rank with highest wind speed: {max_wind_rank:.0f}")print(f"Distance with highest wind speed: {max_wind_distance:.2f} m")Then, fill in the outputs that would be printed by the script above: Outputs:Rank with highest wind speed: Answer 5 Question 1[input] Distance with highest wind speed: Answer 6 Question 1[input] m多项填空题
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
What is the value of count after the following commands? c = np.array([[6, 1, 4], [2, 1, 5], [3, 7, 1]]) n = len(c) count = 0 for i in range(n): for j in range(n): if i==j and c[i,j]==1: count += 1
What is the value of j after three iterations of the following loop? j = np.linspace(0,20,5); for m in range(len(j)): j[m] = j[m]*2;
What is the value of z after the following commands? import numpy as np x = 1 y = 1 z = np.zeros(1) while y < 4: z = np.append(z, 0) z[x] = 2 * y x = x + 1 y = y + 2
A file which contains only one row of data is imported using np.genfromtxt() and is assigned to X. Which of the following is true?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!