c8h18 reaction with cr203
2. If 12% of a population of parts is defective, what is the probability of randomly selecting 60 parts and finding that 8 or more are defective?
Prove that √(1+√3) is irrational, assuming that √3 is irrational
6. Create an array with whole numbers values from 0 to 10 and find what is the command to extract the elements in the following sequence -
array ([7,4,1])
7. Create a NumPy array having user input values and convert the integer type to the float type of the elements of the array. For instance:
Original array [1, 2, 3, 4]
Array converted to a float type: [ 1. 2. 3. 4.]
8. Write a NumPy program to append values to the end of an array. For instance:
Original array: [10, 20, 30]
After append values to the end of the array:
[10 20 30 40 50 60 70 80 90]
9. Create a 2 dimensional array with 3 rows and 3 columns containing random numbers from 1 to 9. Find the difference between the maximum element across the columns and the minimum element across the rows.
10. Create a 3*3 array having values from 10-90(interval of 10) and store that in array1. Perform the following tasks:
a. Extract the 1st row from the array.
b. Extract the last element from the array.
1. Create a list named ‘myList’ that has the following elements: 10,20,30,’apple’, True, 8.10.
a. Now in the ‘myList’, append these values: 30,40
b. After that reverse the elements of the ‘myList’ and store that in ‘reversedList’
2. Create a dictionary ‘Country’ that maps the following countries to their capitals respectively:
Country
India
China
Japan
Qatar
France
State
Delhi
Beijing
Tokyo
Doha
Marseilles
Find 2 commands to replace “Marseilles” with “Paris”.
3. Create the tuples given below
tuple_1 = (1,5,6,7,8)
tuple_2 = (8,9,4)
Identify which of the following code does not work on a tuple.
a) sum(tuple_1)
b) len(tuple_2)
c) tuple_2 + tuple_1
d) tuple_1[3] = 45
Electrophoresis is a medical therapy technique used to deliver medicaments into the patients body with help of an electric current. During the procedure, two oppositely charged plates are applied to the body providing flow of the current through the tissue. Suppose that current used in first five procedures was 7 mA (duration of the procedure 6 min) and during the last fifteen procedures 14 mA (duration 15 min). Find charge that passes through the body during 20 electrophoresis procedures.
Electrophoresis is a medical therapy technique used to deliver medicaments into the patients body with help of an electric current. During the procedure, two oppositely charged plates are applied to the body providing flow of the current through the tissue. Suppose that current used in first five procedures was 7 mA (duration of the procedure 6 min) and during the last fifteen procedures 14 mA (duration 15 min). Find charge that passes through the body during 20 electrophoresis procedures.
Using the current income tax ordinance calculate the amount tax paid by an individual who is earning 50000 per month.
Write a program that uses the srand() and time() function to print on the screen a truly random number from 1 trough 20 generated by the rand() function.
Create a program that will call rand() function plus 5 and prints its return value 13 times on the screen using a for loop.