Question 12 PYTHON:
Write a function named first_last that takes a single parameter,
string_list (a list of strings). The
function first_last should return a list of the strings in
string_list that are not empty and that begin
and end with the same letter.
For example, the following would be correct input and output for the function first_last.
response = ['to', 'that', 'I', 'say', '', 'hurrah']
print(first_last(response))
['that', 'I', 'hurrah']
Question 13 (20 points)
Write a function named number_luck. The function number_luck takes two parameters:
1. lucky, a list of lucky numbers between 2 and 12,
inclusive
2. unlucky, a list of unlucky numbers between 2 and 12,
inclusive
Every number is either lucky, unlucky or boring (neither lucky nor unlucky).
The function number_luck should
1. ask the user for a number in the range 2 to 12 (you may
assume that the user provides valid
input)
2. print a message echoing the user’s number and stating whether it
is lucky, unlucky or boring
3. return an integer that is the user’s number
For example, the following would be correct input and output.
>>> a_num = number_luck([7, 11], [2, 3, 12])
Give me a number from 2 to 12: 7
7 is lucky. You win!
>>> print(a_num)
7
In: Computer Science
Which areas of the network would a college IT staff most likely NOT have to redesign as a direct result of many students bringing their own tablets to school to access school resources? And explain the function of each design (choose 4) (1pt each correct ans. + 3 pts. for each explanation)?
Extranet:
Intranet:
Wired LAN:
Wireless LAN:
Wireless WAN:
In: Computer Science
South Africa is a unique country with differing cultures: following on this;
1. critically analyze the four-level levels of conceptualization of Leadership; and then
2. Decide which level of conceptualization of Leadership suits this community best and prepare a systematic exposition that supports your decision.
In: Operations Management
In: Economics
Find a value of the standard normal random variable z , call it
z 0z0,
such that the following probabilities are satisfied.
| a.
P(zless than or equals≤z 0z0)equals=0.09730.0973 |
e.
P(minus−z 0z0less than or equals≤zless than or equals≤0)equals=0.25792579 |
| b.
P(minus−z 0z0less than or equals≤zless than or equals≤z 0z0)equals=0.9595 |
f.
P(minus−33less than<zless than<z 0z0)equals=0.95759575 |
| c.
P(minus−z 0z0less than or equals≤zless than or equals≤z 0z0)equals=0.9090 |
g.
P(zgreater than>z 0z0)equals=0.5 |
| d.
P(minus−z 0z0less than or equals≤zless than or equals≤z 0z0)equals=0.82148214 |
h.
P(zless than or equals≤z 0z0)equals=0.00310.0031 |
a.
z 0z0equals=nothing
(Round to two decimal places as needed.)b.
z 0z0equals=nothing
(Round to two decimal places as needed.)c.
z 0z0equals=nothing
(Round to two decimal places as needed.)d.
z 0z0equals=nothing
(Round to two decimal places as needed.)e.
z 0z0equals=nothing
(Round to two decimal places as needed.)f.
z 0z0equals=nothing
(Round to two decimal places as needed.)g.
z 0z0equals=nothing
(Round to two decimal places as needed.)h.
z 0z0equals=nothing
(Round to two decimal places as needed.)
In: Math
Operations Management
1- What is the Operations sector and what administrative jobs can
be found there?
2- What are the other sectors of a company and what support do they
give to Operations?
3- What does the modern consumer ask for?
4- What is a company's strategy and why is it important to take it
into consideration in the
Operations management?
5- What is a company's competitiveness and how does it affect the
economy of a nation?
6- What do they mean and what are the core competencies?
7- What does productivity measure and how is it interpreted?
In: Operations Management
Compare and contrast the three types of coronaviruses: "SARS-Cov, MERS-Cov and Covid-2019" in regards to their replication cycle, transmission, R0
In: Biology
The horizontal and vertical components of the initial velocity of a football are 20m/s and 30 m/s respectively. Assume that after rising some height, the football returns back to the ground level.
1) what is the speed of the football at 3s after launch?
2) to what maximum height does the football rise?
3)What horizontal distance does the football travel during its flight?
Please show full explaination and steps for answer.
In: Physics
Unit 003 Review of Material that has been covered
There are two parts to each question . Part 1 just give the null hypothesis, alternative hypothesis and test statistic formula. for part 1 don't work it out just write the formula.
Part 2-This is where you work all five steps. Show all work.
#5
A randomly selected list of holiday food items was generated. Thirty King Kong stores were surveyed as to what the cost of the list of items would cost. The mean and standard deviation is recorded in the table below. Fifty Saves Alot stores were surveyed in a similar manner and the mean and the standard deviation was recorded below. Test whether the King Kong mean amount spent is less than the Saves Alot amount spent. a = 0.01.
| store name | Sample size | Mean amount spent | s |
| King Kong | 30 | $75 | 10 |
| Saves Alot | 50 | $89 | 20 |
In: Math
use the thin lens equation to explain why for a given screen-object distance there are two positions where the image is in focus
In: Physics
In: Biology
Iodine clock reaction lab
2I-(aq) + S2O82-(aq)à I2(aq) + 2SO42- (aq)
Rate=k[I-]x[S2O82-]y
I need to calculate the initcial concentrations of I- and S2O8^2- then use that to calculate the reaction rate M/sec and the k value.
|
Run Number |
3% Starch |
0.012 Na2S2O3 mL |
0.20 M KI mL |
0.20 M KNO3 mL |
0.20 M (NH4)2SO4 mL |
0.20 M (NH4)2S2O8 mL |
Total= 2 mL |
Time sec |
|
1 |
2 drops |
0.200 |
0.800 |
0.200 |
0.400 |
0.400 |
2.00 |
35.75 |
|
2 |
2 drops |
0.200 |
0.400 |
0.600 |
0.400 |
0.400 |
2.00 |
109.72 |
|
3 |
2 drops |
0.200 |
0.200 |
0.800 |
0.400 |
0.400 |
2.00 |
218.65 |
|
4 |
2 drops |
0.200 |
0.400 |
0.600 |
0.00 |
0.800 |
2.00 |
33.31 |
|
5 |
2 drops |
0.200 |
0.400 |
0.600 |
0.600 |
0.200 |
2.00 |
219.18 |
In: Chemistry
A vertical summit parabolic curve has vertical offset of 0.375 m. from the curve to the grade tangent at Station 10 + 050. The curve has a slope of +4% and -2% grades intersecting at the P.I. The offset distance of the curve at P.I. is equal to 1.5m. If the stationing of the P.C. is at 10 + 000.
Compute the (a) required length of curve (b) horizontal distance of the vertical curve turning point from the point of intersection of the grades. (c) elevation of the vertical curve turning point if the elevation of P.T. is 86.42 m
In: Civil Engineering
(C++)Problem #1: Coin Tossing Simulation: Write a program that simulates coin tossing. Let the program prompt the user to enter the number of tosses N and count the number of times each side of the coin appears. Print the results. The program should call a separate function flip() that takes no arguments and returns 0 for tails and 1 for heads. The program should produce different results for each run.
Sample Input / Output
Enter the number of tosses N: 1000
The total number of Heads is: 495
The total number of Tails is: 505
In: Computer Science
Determine the pH of a solution that is 1.85% NaOH by mass. Assume that the solution has density of 1.01 g/mL.
In: Chemistry