Answer:
Escribe una función species_count que devuelva el número de especies de Pokémon únicas (determinadas por el atributo de nombre) que se encuentran en el conjunto de datos. Puede suponer que los datos están bien formateados en el sentido de que no tiene que transformar ningún valor en la columna de nombre. Por ejemplo, suponiendo que analizamos pokemon_test.csv y lo almacenamos en una variable llamada datos:
Explanation:
Answer:
Following are the program in the Python Programming Language.
#get input from the user
x = float(input())
#get input from the user
y = float(input())
#get input from the user
z = float(input())
#find the average
average =(x+y+z)/3
#find the product
product = x*y*z
#print the result in given format
print('\n%d %d'%(average,product))
#print the result in given format
print('%0.2f %0.2f'%(average,product))
Explanation:
<u>Following are the description of the program</u>:
- We set three variables 'x', 'y', and 'z' that accept float type values from the user.
- Then, set variable 'average' that store the average of the following values that is given by the user.
- Set variable 'product' that store the multiplication of the following values that is given by the user.
- Finally, we print the average and the product in the following format that is given in the statement.
Answer:
(b) int **arr = new int*[10];
Explanation:
An <em>array of pointers</em> is simply an array containing pointer variables. These pointer variables may be Strings, integers, doubles e.t.c
To declare such arrays of pointers, for example, of integers, in C++, we write;
int **arr = new int*[10];
The left hand side of the above code snippet i.e int ** arr, suggests that arr is a pointer that points to a pointer to integer variables.
The right hand side i.e new int* [10], creates a new array of 10 integer pointer variables.
Now, put together, int **arr = new int*[10] will create/declare an array of pointers of integers having a size of 10.
I believe you are talking about spell check.
The answer is a) <span>so you can provide enough time studying. </span>