| Twelve batteries were tested to see how many hours they would last. The frequency is | ||||||
| Hours | Frequency (f) | Midpoint (Xm) | f*Xm | C f | (X - X̅ )² | f (X - X̅ )² |
| 1-3 | 1 | 1+3/2 = 4/2 = 2 | 1x2 = 2 | 1 | 27.5625 | 27.5625 |
| 4-6 | 4 | 4+6/2= 10/2= 5 | 4x5 = 20 | 1+4 = 5 | 5.0625 | 20.25 |
| 7-9 | 5 | 7+9/2 = 16/2 = 8 | 5x8 = 40 | 1+4+5 = 10 | 0.5625 | 2.8125 |
| 10-12 | 1 | 10+12 = 22/2 = 11 | 1x11 = 11 | (1+4+5+1) = 11 | 14.0625 | 14.0625 |
| 13-15 | 1 | 13+15 = 28/2 = 14 | 1x14 = 14 | (1+4+5+1+1)= 12 | 45.5625 | 45.5625 |
| Total | 12 | 87 | 92.8125 | 110.25 | ||
Median
Range:
3rd Quartile:
| 45th Percentile: |
In: Statistics and Probability
Electric field mapping Lab Physics 2212k
1) Describe the central electric field (E) shape in the case of two parallel plates.
2) Do the distances between adjacent equipotential lines between the two parallel plates, approximately measure the same? Calculate an average value for the magnitude of the electric field between the plates.
3) Does the electric field extend beyond the edges of the plates in the two parallel plates experiment?
4) Is it possible for two different equipotential lines or two lines of forces to cross each other? Explain.
5) How does the electric field strength vary with the distance from an isolated charged particle?
6) What is the equipotential shape close to "point"
electrode?
7) Where is the electric field most nearly uniform in the two
opposite point charges experiment?
8) What is the central equipotential shape in the two opposite
point charges experiment?
In: Physics
PYTHON: This is the posted problem:
General Instructions
Create a function called DeterminePrice that will determine the cost of purchased software. The price is of the software is $350 per license. However, when purchased in larger quantities a discount is given. For quantites less than 10 copies, there is no discount. For quantities greater than 10 and less than and including 20, a 10% discount is given. For quantities greater than 20 and less than and including 30, a discount of 20% is given. For quantities greater than 30 and less than and including 40, a discount of 30% is given. Finally if someone needs to purchase more than 40 copies, a discount of 40% is given.
Your function needs to take in to it the number of quantities the user wishes to purchase. It needs to return back to main() the discount given and the total cost of the software purchase.
Output and Testing
MyProgramming Lab will call your function. Therefore, you MUST make sure you name your function DeterminePrice(). Otherwise MyProgramming lab will not be able to locate your function. Additionally when you write function make sure it first returns discount and then total. Otherwise your discount and total will not print out correctly.
When your function is run, the output from the first test will look like the following:
Enter the number of copies: 35
Discount: $ 105.00
Total: $ 8,575.00
This is my code, which runs in Python, but not MPL, which uses a Linux server to process problems:
n=int()
d=float()
total=float()
def main():
def get_num_of_copies():
n = int(input("Enter the number of copies: "))
return n
n = get_num_of_copies()
def discount():
if n <= 9:
d = 0
elif n >=10 and n <= 20:
d = .1
elif n >=21 and n <=30:
d = .2
elif n >=31 and n <=40:
d = .3
elif n >40:
d = .4
return d
d = discount()
def DeterminePrice():
total = ( (n*350) - ((n*350) * d) )
return total
total = DeterminePrice()
print ("Discount:\t$",format((350 * d),',.2f'))
print ("Total:\t\t$",format((total),',.2f'))
main()
So I asked the teacher for help. She said that I need to move I need to move my functions out of main (def discount, for example). I can't do that without getting "indentation" errors from Python.
These are the error messages I am getting from MPL:
⇒ Traceback
(most recent call last):
⇒ File
"main.py", line 90, in
⇒ main()
⇒ File
"main.py", line 51, in main
⇒ user_quantity
= int(input("Enter the number of copies: "))
⇒ EOFError:
EOF when reading a line
In: Computer Science
A cognitive retraining clinic assists outpatient victims of head
injury, anoxia, or other conditions that result in cognitive
impairment. Each incoming patient is evaluated to establish an
appropriate treatment program and estimated length of stay. To see
if the evaluation teams are consistent, 12 randomly chosen patients
are separately evaluated by two expert teams (A and B) as
shown.
| Estimated Length of Stay in Weeks | ||||||||||||
| Patient | ||||||||||||
| Team | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| A | 37 | 18 | 52 | 19 | 45 | 40 | 51 | 31 | 41 | 39 | 32 | 23 |
| B | 28 | 22 | 44 | 48 | 48 | 23 | 48 | 43 | 23 | 33 | 18 | 16 |
Click here for the Excel Data File
(a) Choose the appropriate hypotheses to test for
a difference between the teams. Assume μd is
the difference in mean lengths of team A and team B.
H0: μd = 0 vs. H1: μd ≠ 0
H0: μd ≥ 0 vs. H1: μd < 0
H0: μd ≤ 0 vs. H1: μd > 0
(b) Specify the decision rule at the .10 level of
significance.
Reject the null hypothesis if the p-value
is (Click to select) less
than greater than .10 .
You will need to copy and paste the data from Excel into Minitab.
(c) Find the test statistic
tcalc. (Use Minitab. Round your answer
to 4 decimal places. A negative
value should be indicated by a minus sign.)
tcalc
(d) Find the p-value. (Use
Minitab. Round your answer to 3 decimal
places.)
p-value
(e) Make a decision.
We (Click to select) Do not
reject Reject the null hypothesis.
(f) State your conclusion.
We (Click to
select) can cannot conclude that
the evaluator teams are consistent in their estimates.
In: Statistics and Probability
XYZ stock price and dividend history are as follows:
| year |
beginning of year price |
dividend paid at year end |
| 2015 | 130 | 2 |
| 2016 | 153 | 2 |
| 2017 | 128 | 2 |
| 2018 | 133 | 2 |
An investor buys five shares of XYZ at the beginning of 2015, buys another two shares at the beginning of 2016, sells one share at the beginning of 2017, and sells all six remaining shares at the beginning of 2018. What is the dollar-weighted rate of return? (Hint: If your calculator cannot calculate internal rate of return, you will have to use a spreadsheet or trial and error.) (Negative value should be indicated by a minus sign. Round your answer to 4 decimal places.)
In: Finance
A simple random sample of 60 items resulted in a sample mean of 70. The population standard deviation is = 15.
a. Compute the 95% confidence interval for the
population mean. Round your answers to one decimal place.
Enter your answer using parentheses and a comma, in the form
(n1,n2). Do not use commas in your numerical answer (i.e. use 1200
instead of 1,200, etc.)
b. Assume that the same sample mean was obtained from a sample of 130 items. Provide a 95% confidence interval for the population mean. Round your answers to two decimal places.
c. What is the effect of a larger sample size on the interval estimate?
Larger sample provides a - Larger or smaller - margin of error?
In: Math
A financial institution has the following balance sheet structure:
|
Assets |
USD million |
Liabilities |
USD million |
|
Cash |
10 |
Equity |
30 |
|
Bond |
100 |
Certificate of Deposit |
100 |
|
Real Estate |
20 |
||
|
Total |
130 |
Total |
130 |
The USD 100 million bond has a three year maturity paying 10 percent interest per year. The USD 100 million certificate of deposit has a two-year maturity and paying 8 percent interest per year. The bond and certificate of deposit will be rolled over after their maturities at the respective prevailing market rates. The financial institution expects no additional asset growth.
a) What will be the financial institution’s net interest income (NII) over the five-year investment horizon if the interest rate decreases by 1 percent per annum after the first year and decreases by 1 percent per annum after the third year?
b) What will be the financial institution’s net interest income (NII) over five-year investment horizon if the interest rate increases by 1 percent per annum after the second year and increases by 1 percent per annum after the fourth year?
c) Assuming that market interest rates increase by 1 per cent, the bond will have a value of USD99.9 million at the end of year one. What will be the market value of the equity for the financial institution? Assume that all of the NII in part a) is used to cover operating expenses or is distributed as dividends.
(2.5 Marks)
d) If market interest rates had decreased 100 basis points by the end of year 1, would the market value of equity be higher or lower than USD30 million? Why?
In: Finance
|
The table to the right shows the number of people, in thousands, in a country without health insurance in a certain year. Complete parts a) through d) below. |
Insured |
Uninsured |
|||
|---|---|---|---|---|---|
|
Under 18 years |
67 comma 22767,227 |
7 comma 0537,053 |
|||
|
18 to 24 years |
21 comma 37221,372 |
8 comma 8308,830 |
|||
|
25 to 34 years |
29 comma 10929,109 |
11 comma 58211,582 |
|||
|
35 to 44 years |
31 comma 62231,622 |
8 comma 0258,025 |
|||
|
45 to 64 years |
67 comma 16167,161 |
13 comma 03113,031 |
|||
|
65 years and older |
38 comma 88438,884 |
713713 |
|||
a) What percentage of the countries' population in the year did not have health insurance and was between the ages of 18 to 24 years?
(Round to two decimal places as needed.)
b) What percentage of the countries' population in the year did not have health insurance or was between the ages of 25 to 34 years?
(Round to two decimal places as needed.)
c) What percentage of the countries' population in the year did have health insurance, given they were 65 years or older?
(Round to two decimal places as needed.)
d) Do age group and health insurance appear to be independent or dependent events? Define Event A was a person 45 to 64 years old and Event B as the person is insured. What conclusions can be drawn with this information?
A.They are dependent events since
Upper P left parenthesis A|B right parenthesis almost equals Upper P left parenthesis Upper A right parenthesisP(A|B)≈P(A).
B.They are independent events since
Upper P left parenthesis A|B right parenthesis not equals Upper P left parenthesis Upper A right parenthesisP(A|B)≠P(A).
C.They are dependent events since
Upper P left parenthesis A|B right parenthesis not equals Upper P left parenthesis Upper A right parenthesisP(A|B)≠P(A).
D.They are independent events since
Upper P left parenthesis A|B right parenthesis almost equals Upper P left parenthesis Upper A right parenthesisP(A|B)≈P(A).
In: Statistics and Probability
Do blondes have more fun? Walking around downtown saturday night, you ask people whether they had a boring time, a good time, or a great time that night, and note their hair color. Out of 80 blondes: 20 had a boring night, 20 had a good night, and 40 had a great night. out of 120 non-blondes: 30 had a boring night, 40 had a good night, and 50 had a great night. What is the chi-square value for this data (type in box 1 to two decimal places) and is there statistically significant relationship between hair color and fun at the .05 level (type yes or no in box 2)?
In: Statistics and Probability
Maturity Dates of Notes Receivable Determine the maturity date and compute the interest for each of the following notes: (Use 360 days for interest calculation. Round to the nearest dollar.)
| Date of Note |
Principal |
Interest Rate |
Term |
|
|---|---|---|---|---|
| a. | July 10 | $7,200 | 9% | 100 days |
| b. | April 14 | 12,000 | 8% | 130 days |
| c. | May 19 | 11,200 | 7.5% | 130 days |
| d. | June 10 | 5,400 | 8% | 55 days |
| e. | October 29 | 30,000 | 8% | 85 days |
| Maturity Date | |||
|---|---|---|---|
| Month | Day | Interest | |
| a. | AnswerDecemberNovemberOctoberSeptemberAugustJulyJuneMayAprilMarchFebruaryJanuary | Answer | Answer |
| b. | AnswerDecemberNovemberOctoberSeptemberAugustJulyJuneMayAprilMarchFebruaryJanuary | Answer | Answer |
| c. | AnswerDecemberNovemberOctoberSeptemberAugustJulyJuneMayAprilMarchFebruaryJanuary | Answer | Answer |
| d. | AnswerDecemberNovemberOctoberSeptemberAugustJulyJuneMayAprilMarchFebruaryJanuary | Answer | Answer |
| e. | AnswerDecemberNovemberOctoberSeptemberAugustJulyJuneMayAprilMarchFebruaryJanuary | Answer | Answer |
In: Accounting