Question: please code using python. 1. Let's define a python class Rocket() using the following code In [1]: class Rocket(): # Rocket simulates a rocket ship

please code using python.
1. Let's define a python class Rocket() using the following code In [1]: class Rocket(): # Rocket simulates a rocket ship for a game, # or a physics simulation. def __init__(self): # Each rocket has an (x,y) position. self.x - self.y. def move_up(self): # Increment the y-position of the rocket. self.y + 1 Now, create a Rocket object, and have it start to move up. Print the atitude of the rocket In [ ]: YOUR CODE HERE 2. There are two ways to import numpy. Either import the numpy package under the name np or import all the functions from numpy. Please write both ways in the following and use one of these two ways for your codes in this homework In [ ]: YOUR CODE HERE 3. Create a null vector (one-dimensional array) of size (length) 10 but the fifth value which is 1. In [ 1: YOUR CODE HERE 4. Create a two-dimensional array with 1 on the border and inside. In [ ]: YOUR CODE HERE 5. Create a 3x3 matrix (two-dimensional array) with values ranging from 0 to 8. Hint use arange and reshape). In [ ]: YOUR CODE HERE 6. Create a 10x10 two-dimensional array with random values and find the minimum and maximum values. In [ ]: YOUR CODE HERE 7. Read the file "temperature.dat" (attached in the same directory as this homework). The data format for each column is year, month, day, daily average temperature, low, high, location. Find the maximum and minimum daily average temperature. In (): YOUR CODE HERE +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
