Here are some of the computers used in the first generation of computers:
ENIAC
EDVAC
UNIVAC
IBM-701
IBM-650
These are some of the first computers ever that led to today's computers.
Answer:
import numpy as np
def sample_median(n, P):
return np.median( np.random.choice ( np.arange (1, len(P) + 1 ), n, p = P ) )
print(sample_median(10,[0.1 0.2 0.1 0.3 0.1 0.2]))
print(sample_median(10,[0.1 0.2 0.1 0.3 0.1 0.2]))
print(sample_median(5, [0.3,0.7])
print(sample_median(5, [0.3,0.7])
Explanation:
- Bring in the numpy library to use the median function provided by the numpy library.
- Define the sample_median function that takes in 2 parameters and returns the median with the help of built-in random, choice and arrange functions.
- Call the sample_median function by providing some values to test and then display the results.
Output:
4.5
4.0
2.0
1.0
Answer: a practice similar to piracy but in other contexts, especially hijacking.
"air piracy"
the unauthorized use or reproduction of another's work.
Explanation:
Answer:
// program in Python.
#library
import math
#read the radius of sphere
rad=float(input("Enter the radius of sphere:"))
# find the Surface area
A=4*math.pi*rad**2
V=(4/3)*math.pi*rad**3
#print the Surface area
print("The surface area of the sphere is:",A)
#print the Volume of sphere
print("The volume of the sphere is:",V)
Explanation:
Import math library to use the value of "pi".Read the radius of sphere from user and assign it to variable "rad".Then calculate the surface area A = 4*3.14r**2 and volume of sphere V=V = 4/3 x 3.14r**3.Print the surface area and volume of the sphere.
Output:
Enter the radius of sphere:2.5
Surface area is: 78.539812
Volume of sphere is: 65.44985