Consider an electric circuit with an inductance of 0.05 henry, a resistance of 20 ohms, a condenser of capacitance of 100 micro farads and an E = 100 volts. Find I and Q given the initial conditions Q = 0, I = 0 at t = 0
Explore transport as service and industry within the South African economy.
list contains numbers. Write a program for containing only prime numbers.
Why study ancient philosophy?
Write a python function Read_Prime(fname, list) which takes a list of numbers as an input, use this number to write them in a file "primes.txt" . The function then read the file and return a list containing only prime numbers as shown in the example. Also, write the exception handling code to show the proper message.
Example-1
Example-2
Example-2
Input:
primes.txt
[1,2,3,4,5,6,7]
Output:
[1,2,3,5,7]
Input:
primes.txt
[3,6,5,13,18,21]
Output:
[3,5,13]
Input:
primes.txt
[2,4,6,8,10]
Output:
[2]
Derive the relationship between marginal cost, wage and marginal product of labour
mean,median and mode
given a list of integers,write a program to print the mean,median and mode
mean - the average value of all the numbers.
median - the mid point value in the sorted list.
mode - the most common value in the list. if multiple elements with same frequency are present, print all values with same frequency in increasing order.
input
the input will be a single line of containing space-separated integers.
output
the first line of output should contain the mean, round off the value to 2 decimal places.
the second line of output should contain the median, round off the value to 2 decimal places
the third line of output should contain the mode
mean should always be a float value
mean should be a float value when there are even number of elements, otherwise should be an integer value
see sample input/output for the output format
explanation
for example, if the given list of integers are
2 4 5 6 7 8 2 4 5 2 3 8
the average of all the numbers is 4.67.
after sorting the array,
2 2 2 3 4 4 5 6 7 8 8
Suppose a firm employs labor as its only variable input. All workers are paid $200 per day. Output per day and variable cost are shown below.
q 1 2 3 4 5 6 7 8
VC 200 400 600 800 1200 1600 2400 3200
L 1 2 3 4 6 8 12 16
Required:
a)Find each unit of output (Q) calculate the units of labour (L) needed to produce the corresponding output level.
b)If the inverse demand for highlighter is p = 60 - Q. At a price of $20, what is the consumer surplus?
Problem 1:
Soft drinks are put into bottles that hold a nominal 200 ml, but the filling machine introduces a standard deviation of 10 ml. These bottles are packed into cartons of 25 and exported to a market which insists that the mean weight of a carton is at least the quantity specified by the manufacturer. To make sure this happens, the bottler sets the machine to fill bottles to 205 ml. What is the probability that a carton chosen at random fails the quantity test?
Problem 2:
A machine produces parts that have a standard deviation in length of 1.4 cm. A random sample of 100 parts has a mean length of 80 cm. What is the 95% confidence interval for the mean length of all parts?
Problem 3:
MLP Mail-order collects a random sample of 40 customer orders, as shown in the table. What is the 95% confidence interval for the population mean?
Problem 1:
Figures kept by McClure and Hanover Auctioneers for the past 5 years show that the weight of cattle brought to market has a mean of 950 kg and a standard deviation of 150 kg. What proportion of the cattle have weights of:
Problem 2:
A set of observations follow a Normal distribution with a mean of 40 and a standard deviation of 4. What proportions of observations have values of: