1. Find the equation of the tangent line to the graph of ?(?) = 1 + ? + ???? at ? = 0. 4.
2. Find the equation of the tangent line to the graph of ?(?) = (?+1)/ (?−1)at ? = 0. 5.
In: Math
(JAVA)
Create a program that takes in 15 numbers in sorted order from the console and stores them in a 1D array of size 15.
Next, prompt the user for a number to search for in the array (target).
Then, print the array.
Next, search the array using a linear search – printing out each of the indices (or “indexes”) that are being examined until the algorithm either finds the target or doesn’t.
Then, do the same thing for a binary search.
The program should behave like the samples below:
Sample 1
slot 0: 0
slot 1: 1
slot 2: 2
slot 3: 3
slot 4: 4
slot 5: 5
slot 6: 6
slot 7: 7
slot 8: 8
slot 9: 9
slot 10: 10
slot 11: 11
slot 12: 12
slot 13: 13
slot 14: 14
Enter a target: 15
0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
7 11 13 14
Sample 2
slot 0: 3
slot 1: 11
slot 2: 45
slot 3: 57
slot 4: 81
slot 5: 125
slot 6: 129
slot 7: 311
slot 8: 333
slot 9: 361
slot 10: 402
slot 11: 412
slot 12: 475
slot 13: 499
slot 14: 501
Enter a target: 402
3|11|45|57|81|125|129|311|333|361|402|412|475|499|501|
0 1 2 3 4 5 6 7 8 9 10
7 11 9 10
In: Computer Science
1. Competitors
The results of a running competition are shown in the table below.
| Index | Name | Birthdate | Rank |
|---|---|---|---|
| 0 | Am, Erica | 1984. 05. 06. | 1 |
| 1 | Abnorm, Al | 1982. 09. 30. | 3 |
| 2 | Pri, Mary | 1988. 08. 25. | 2 |
| 3 | Duck, Ling | 1979. 06. 10. | 5 |
| 4 | Mac, Donald | 1992. 04. 05. | 4 |
Find an unfinished program below that contains the appropriate types and the above data in an array. Complete the program, step-by-step, according to the comments.
#include <stdio.h>
typedef struct Date {
int year, month, day;
} Date;
typedef struct Competitor {
char name[31];
Date birth;
int rank;
} Competitor;
void Date_print(Date d);
void Competitor_print(Competitor c);
int main() {
Competitor competitors[5] = {
{ "Am, Erica", {1984, 5, 6}, 1 },
{ "Abnorm, Al", {1982, 9, 30}, 3 },
{ "Pri, Mary", {1988, 8, 25}, 2 },
{ "Duck, Ling", {1979, 6, 10}, 5 },
{ "Mac, Donald", {1992, 4, 5}, 4 },
};
/* name of competitor 0 - printf %s */
/* rank of competitor 2 */
/* birth date of competitor 4, use the given function */
/* the first letter of the name of competitor 1 (a string is an array of characters) */
/* is competitor 1 among the best three? yes/no, may use ?: operator */
/* is competitor 4 faster than competitor 3? */
/* was competitor 1 born in the same year as competitor 2? */
/* complete the Competitor_print() function,
* then print all data of competitor 1 */
/* at last print all data of all competitors. */
return 0;
}
void Date_print(Date d) {
/* print year, month and day */
}
void Competitor_print(Competitor c) {
/* print all data of the competitor */
}
In: Computer Science
Over the summer, you are interning at a medical clinic. The clinic tells you about a study
they recently ran to investigate how effective group therapy is for treating depression. The
clinic is so busy, they haven’t analyzed the results yet. You are feeling extra confident after
passing PHLS 451, so you offer to analyze their data!
The clinic randomly assigned 20 people to two conditions: group therapy or control. The
two groups are independent. After one month in group therapy or in the control
condition, participants rated their depression levels. The clinic asks you to use an alpha
level of 0.01 when analyzing the results.
| Groups Therapy Depression Levels | Control Depression Levels |
| 2 | 5 |
| 4 | 4 |
| 1 | 4 |
| 2 | 3 |
| 1 | 3 |
| 2 | 5 |
| 3 | 3 |
| 3 | 4 |
| 1 | 3 |
| 2 | 4 |
a.
Write your alternative and null hypotheses.
b.
Run your statistical analysis using SPSS. Summarize your results and conclusion
(i.e. include all three parts)
In: Statistics and Probability
Hint 1: For scenario 1, the power is 80.23%. For scenario 2 the power is 99.63. So be sure to show your work for the rest of the marks.
Hint 2: For scenario 4, you’ll need to add power from both ends of the curve (two-tailed).
| Scenario | Population parameters | Predicted mean | Sample size | Significance level | One or two-tailed |
| 1 | μ = 90 σ = 4 | M = 91 | 100 | 0.05 | one-tailed |
| 2 | μ = 90 σ = 4 | M = 92 | 100 | 0.01 | one-tailed |
| 3 | μ = 90 σ = 2 | M = 91 | 100 | 0.05 | one-tailed |
| 4 | μ = 90 σ = 4 | M = 91 | 16 | 0.01 | two-tailed |
In: Statistics and Probability
Ted Olson, director of the company Overnight Delivery, is worried because of the number of letters of first class that his company has lost. These letters are transported in airplanes and trucks, due to that, mister Olson has classified the lost letters during the last two years according to the transport in which the letters were lost. The data is as follows:
|
Number of cards lost in (month) |
J |
F |
M |
A |
M |
J |
J |
A |
S |
O |
N |
D |
|
Truck |
4 |
5 |
2 |
3 |
2 |
1 |
3 |
5 |
4 |
7 |
0 |
1 |
|
Airplane |
5 |
6 |
0 |
2 |
1 |
3 |
4 |
2 |
4 |
7 |
4 |
0 |
Mister Olson will investigate only one department, either aerial o ground department, but not both. He will open the investigation in the department which has the most number of lost letters per month, find:
23.- The expectation value of lost letters per month in truck.
24.- The expectation value of lost letters per month in airplane.
In: Math
Write the numbers in the order they will be in after the first
pass of a:
1) bubble sort
2) selection sort
3) insertion sort
2 4 9 7 5 1 6 3
In: Computer Science
Use the trapezoid rule, midpoint rule, and Simpson’s rule to approximate the given integrals with the given values of n.
?) ∫ ? ? / 1+? 2 ?? (from 0 to 2) ? = 10
?) ∫ √??? ?? (from 1 to 4) ? = 6
In: Math
|
X |
15.8 |
15.9 |
16.0 |
16.1 |
16.2 |
|
P(X=x) |
.1 |
.2 |
.4 |
.2 |
.1 |
In: Statistics and Probability
When do you use each test? 1) 1-Proportion z test 2) T-test 3) 2 sample t test 4) Matched pairs test
In: Statistics and Probability