| Person | Gender | Married | Age | Children | Salary | Spent |
| 1 | Male | Yes | 35 | 1 | 78900 | 1610 |
| 2 | Male | Yes | 53 | 1 | 114100 | 1960 |
| 3 | Male | Yes | 36 | 2 | 84800 | 1470 |
| 4 | Female | Yes | 51 | 2 | 87500 | 1210 |
| 5 | Male | Yes | 39 | 2 | 85600 | 1320 |
| 6 | Male | Yes | 66 | 3 | 112800 | 310 |
| 7 | Male | Yes | 48 | 1 | 87300 | 1070 |
| 8 | Male | Yes | 36 | 1 | 73800 | 2080 |
| 9 | Female | Yes | 47 | 3 | 68500 | 900 |
| 10 | Male | Yes | 50 | 1 | 110200 | 1950 |
| 11 | Male | No | 59 | 0 | 103700 | 480 |
| 12 | Male | Yes | 64 | 1 | 136100 | 1210 |
| 13 | Male | Yes | 39 | 0 | 82600 | 2590 |
| 14 | Male | Yes | 56 | 3 | 131700 | 1240 |
| 15 | Female | No | 32 | 1 | 83000 | 4070 |
| 16 | Male | Yes | 49 | 1 | 123100 | 1590 |
| 17 | Male | Yes | 59 | 3 | 120900 | 1440 |
| 18 | Male | Yes | 50 | 2 | 88500 | 330 |
| 19 | Female | Yes | 35 | 2 | 50300 | 960 |
| 20 | Male | Yes | 44 | 3 | 90800 | 1380 |
| 21 | Male | Yes | 54 | 0 | 83100 | 590 |
| 22 | Female | No | 34 | 1 | 50600 | 940 |
| 23 | Male | Yes | 53 | 0 | 125600 | 1570 |
| 24 | Male | Yes | 45 | 1 | 104500 | 1440 |
| 25 | Male | No | 47 | 1 | 86900 | 1040 |
| 26 | Male | Yes | 52 | 3 | 105900 | 470 |
| 27 | Male | Yes | 40 | 0 | 103600 | 1660 |
| 28 | Female | Yes | 55 | 3 | 98300 | 920 |
| 29 | Male | Yes | 54 | 2 | 109700 | 1740 |
| 30 | Male | No | 46 | 0 | 88800 | 1130 |
| 31 | Male | Yes | 67 | 0 | 141700 | 1560 |
| 32 | Female | No | 43 | 1 | 69200 | 590 |
| 33 | Male | Yes | 52 | 2 | 132700 | 2800 |
| 34 | Female | No | 41 | 0 | 56600 | 1730 |
| 35 | Male | Yes | 60 | 3 | 81000 | 180 |
| 36 | Male | Yes | 52 | 1 | 122700 | 3120 |
| 37 | Male | Yes | 34 | 2 | 82100 | 990 |
| 38 | Male | Yes | 47 | 1 | 95200 | 930 |
| 39 | Male | No | 47 | 1 | 118100 | 2460 |
| 40 | Female | No | 47 | 0 | 84600 | 1680 |
| 41 | Male | No | 41 | 0 | 79700 | 1110 |
| 42 | Male | Yes | 58 | 3 | 114600 | 1070 |
| 43 | Female | Yes | 46 | 2 | 68300 | 490 |
| 44 | Female | No | 51 | 0 | 89500 | 1730 |
| 45 | Female | Yes | 52 | 2 | 73400 | 440 |
| 46 | Male | Yes | 59 | 2 | 87400 | 420 |
| 47 | Male | No | 41 | 0 | 90700 | 1820 |
| 48 | Female | No | 43 | 1 | 89000 | 2170 |
| 49 | Female | Yes | 63 | 3 | 79900 | 550 |
| 50 | Male | No | 43 | 0 | 111200 | 3000 |
| 51 | Female | Yes | 57 | 1 | 97600 | 870 |
| 52 | Female | No | 42 | 2 | 67200 | 1050 |
| 53 | Female | No | 52 | 2 | 103300 | 1400 |
| 54 | Male | Yes | 36 | 2 | 75200 | 1080 |
| 55 | Male | Yes | 46 | 3 | 102200 | 1950 |
| 56 | Male | No | 33 | 1 | 100400 | 3300 |
| 57 | Male | Yes | 64 | 0 | 147000 | 2350 |
| 58 | Female | No | 30 | 0 | 51600 | 780 |
| 59 | Male | Yes | 39 | 2 | 99900 | 1920 |
| 60 | Male | No | 31 | 0 | 77700 | 1620 |
| 61 | Male | Yes | 40 | 1 | 116300 | 1370 |
| 62 | Male | No | 29 | 1 | 90100 | 3430 |
| 63 | Female | No | 59 | 1 | 93000 | 710 |
| 64 | Male | Yes | 52 | 0 | 83600 | 480 |
| 65 | Male | Yes | 47 | 3 | 111500 | 1060 |
| 66 | Female | Yes | 45 | 1 | 96600 | 2750 |
| 67 | Male | Yes | 46 | 4 | 67900 | 200 |
| 68 | Male | No | 56 | 0 | 114500 | 1630 |
| 69 | Male | Yes | 57 | 4 | 130800 | 1770 |
| 70 | Male | Yes | 52 | 4 | 104800 | 1220 |
| 71 | Female | No | 39 | 1 | 60600 | 1150 |
| 72 | Male | Yes | 58 | 3 | 127000 | 2020 |
| 73 | Male | Yes | 38 | 1 | 87000 | 2540 |
| 74 | Male | Yes | 55 | 2 | 124700 | 1940 |
| 75 | Female | No | 38 | 3 | 51600 | 640 |
| 76 | Male | Yes | 57 | 2 | 129400 | 2120 |
| 77 | Male | No | 29 | 0 | 76700 | 2620 |
| 78 | Male | Yes | 52 | 2 | 126500 | 3080 |
| 79 | Female | Yes | 58 | 3 | 85200 | 470 |
| 80 | Male | Yes | 61 | 2 | 93800 | 180 |
| 81 | Female | No | 57 | 2 | 81900 | 550 |
| 82 | Female | No | 33 | 0 | 52100 | 950 |
| 83 | Female | Yes | 32 | 4 | 50900 | 810 |
| 84 | Male | Yes | 62 | 2 | 113700 | 320 |
| 85 | Female | Yes | 63 | 3 | 87400 | 680 |
| 86 | Male | Yes | 44 | 3 | 96800 | 2160 |
| 87 | Male | Yes | 55 | 1 | 146100 | 2740 |
| 88 | Female | Yes | 41 | 1 | 61900 | 880 |
| 89 | Male | Yes | 44 | 1 | 101000 | 2290 |
| 90 | Female | Yes | 53 | 1 | 92900 | 1320 |
| 91 | Female | No | 38 | 0 | 64800 | 1480 |
| 92 | Male | Yes | 60 | 0 | 149100 | 1780 |
| 93 | Male | Yes | 49 | 4 | 78600 | 680 |
| 94 | Female | Yes | 45 | 2 | 80700 | 2030 |
| 95 | Male | Yes | 49 | 2 | 111400 | 1960 |
| 96 | Female | No | 52 | 2 | 95300 | 1420 |
| 97 | Male | Yes | 53 | 1 | 144500 | 3270 |
| 98 | Male | Yes | 51 | 0 | 115500 | 2100 |
| 99 | Male | Yes | 42 | 2 | 89900 | 1970 |
| 100 | Male | Yes | 44 | 3 | 98400 | 650 |
The length of a 95% confidence interval for mean Age is which of the following? (Because of potential roundoff, choose the closest.)
a. 3.37
b. 4.27
c. 3.11
d. 3.72
In: Statistics and Probability
The length of a 95% confidence interval for mean Children is which of the following? (Because of potential roundoff, choose the closest.)
| Person | Gender | Married | Age | Children | Salary | Spent |
| 1 | Male | Yes | 35 | 1 | 78900 | 1610 |
| 2 | Male | Yes | 53 | 1 | 114100 | 1960 |
| 3 | Male | Yes | 36 | 2 | 84800 | 1470 |
| 4 | Female | Yes | 51 | 2 | 87500 | 1210 |
| 5 | Male | Yes | 39 | 2 | 85600 | 1320 |
| 6 | Male | Yes | 66 | 3 | 112800 | 310 |
| 7 | Male | Yes | 48 | 1 | 87300 | 1070 |
| 8 | Male | Yes | 36 | 1 | 73800 | 2080 |
| 9 | Female | Yes | 47 | 3 | 68500 | 900 |
| 10 | Male | Yes | 50 | 1 | 110200 | 1950 |
| 11 | Male | No | 59 | 0 | 103700 | 480 |
| 12 | Male | Yes | 64 | 1 | 136100 | 1210 |
| 13 | Male | Yes | 39 | 0 | 82600 | 2590 |
| 14 | Male | Yes | 56 | 3 | 131700 | 1240 |
| 15 | Female | No | 32 | 1 | 83000 | 4070 |
| 16 | Male | Yes | 49 | 1 | 123100 | 1590 |
| 17 | Male | Yes | 59 | 3 | 120900 | 1440 |
| 18 | Male | Yes | 50 | 2 | 88500 | 330 |
| 19 | Female | Yes | 35 | 2 | 50300 | 960 |
| 20 | Male | Yes | 44 | 3 | 90800 | 1380 |
| 21 | Male | Yes | 54 | 0 | 83100 | 590 |
| 22 | Female | No | 34 | 1 | 50600 | 940 |
| 23 | Male | Yes | 53 | 0 | 125600 | 1570 |
| 24 | Male | Yes | 45 | 1 | 104500 | 1440 |
| 25 | Male | No | 47 | 1 | 86900 | 1040 |
| 26 | Male | Yes | 52 | 3 | 105900 | 470 |
| 27 | Male | Yes | 40 | 0 | 103600 | 1660 |
| 28 | Female | Yes | 55 | 3 | 98300 | 920 |
| 29 | Male | Yes | 54 | 2 | 109700 | 1740 |
| 30 | Male | No | 46 | 0 | 88800 | 1130 |
| 31 | Male | Yes | 67 | 0 | 141700 | 1560 |
| 32 | Female | No | 43 | 1 | 69200 | 590 |
| 33 | Male | Yes | 52 | 2 | 132700 | 2800 |
| 34 | Female | No | 41 | 0 | 56600 | 1730 |
| 35 | Male | Yes | 60 | 3 | 81000 | 180 |
| 36 | Male | Yes | 52 | 1 | 122700 | 3120 |
| 37 | Male | Yes | 34 | 2 | 82100 | 990 |
| 38 | Male | Yes | 47 | 1 | 95200 | 930 |
| 39 | Male | No | 47 | 1 | 118100 | 2460 |
| 40 | Female | No | 47 | 0 | 84600 | 1680 |
| 41 | Male | No | 41 | 0 | 79700 | 1110 |
| 42 | Male | Yes | 58 | 3 | 114600 | 1070 |
| 43 | Female | Yes | 46 | 2 | 68300 | 490 |
| 44 | Female | No | 51 | 0 | 89500 | 1730 |
| 45 | Female | Yes | 52 | 2 | 73400 | 440 |
| 46 | Male | Yes | 59 | 2 | 87400 | 420 |
| 47 | Male | No | 41 | 0 | 90700 | 1820 |
| 48 | Female | No | 43 | 1 | 89000 | 2170 |
| 49 | Female | Yes | 63 | 3 | 79900 | 550 |
| 50 | Male | No | 43 | 0 | 111200 | 3000 |
| 51 | Female | Yes | 57 | 1 | 97600 | 870 |
| 52 | Female | No | 42 | 2 | 67200 | 1050 |
| 53 | Female | No | 52 | 2 | 103300 | 1400 |
| 54 | Male | Yes | 36 | 2 | 75200 | 1080 |
| 55 | Male | Yes | 46 | 3 | 102200 | 1950 |
| 56 | Male | No | 33 | 1 | 100400 | 3300 |
| 57 | Male | Yes | 64 | 0 | 147000 | 2350 |
| 58 | Female | No | 30 | 0 | 51600 | 780 |
| 59 | Male | Yes | 39 | 2 | 99900 | 1920 |
| 60 | Male | No | 31 | 0 | 77700 | 1620 |
| 61 | Male | Yes | 40 | 1 | 116300 | 1370 |
| 62 | Male | No | 29 | 1 | 90100 | 3430 |
| 63 | Female | No | 59 | 1 | 93000 | 710 |
| 64 | Male | Yes | 52 | 0 | 83600 | 480 |
| 65 | Male | Yes | 47 | 3 | 111500 | 1060 |
| 66 | Female | Yes | 45 | 1 | 96600 | 2750 |
| 67 | Male | Yes | 46 | 4 | 67900 | 200 |
| 68 | Male | No | 56 | 0 | 114500 | 1630 |
| 69 | Male | Yes | 57 | 4 | 130800 | 1770 |
| 70 | Male | Yes | 52 | 4 | 104800 | 1220 |
| 71 | Female | No | 39 | 1 | 60600 | 1150 |
| 72 | Male | Yes | 58 | 3 | 127000 | 2020 |
| 73 | Male | Yes | 38 | 1 | 87000 | 2540 |
| 74 | Male | Yes | 55 | 2 | 124700 | 1940 |
| 75 | Female | No | 38 | 3 | 51600 | 640 |
| 76 | Male | Yes | 57 | 2 | 129400 | 2120 |
| 77 | Male | No | 29 | 0 | 76700 | 2620 |
| 78 | Male | Yes | 52 | 2 | 126500 | 3080 |
| 79 | Female | Yes | 58 | 3 | 85200 | 470 |
| 80 | Male | Yes | 61 | 2 | 93800 | 180 |
| 81 | Female | No | 57 | 2 | 81900 | 550 |
| 82 | Female | No | 33 | 0 | 52100 | 950 |
| 83 | Female | Yes | 32 | 4 | 50900 | 810 |
| 84 | Male | Yes | 62 | 2 | 113700 | 320 |
| 85 | Female | Yes | 63 | 3 | 87400 | 680 |
| 86 | Male | Yes | 44 | 3 | 96800 | 2160 |
| 87 | Male | Yes | 55 | 1 | 146100 | 2740 |
| 88 | Female | Yes | 41 | 1 | 61900 | 880 |
| 89 | Male | Yes | 44 | 1 | 101000 | 2290 |
| 90 | Female | Yes | 53 | 1 | 92900 | 1320 |
| 91 | Female | No | 38 | 0 | 64800 | 1480 |
| 92 | Male | Yes | 60 | 0 | 149100 | 1780 |
| 93 | Male | Yes | 49 | 4 | 78600 | 680 |
| 94 | Female | Yes | 45 | 2 | 80700 | 2030 |
| 95 | Male | Yes | 49 | 2 | 111400 | 1960 |
| 96 | Female | No | 52 | 2 | 95300 | 1420 |
| 97 | Male | Yes | 53 | 1 | 144500 | 3270 |
| 98 | Male | Yes | 51 | 0 | 115500 | 2100 |
| 99 | Male | Yes | 42 | 2 | 89900 | 1970 |
| 100 | Male | Yes | 44 | 3 | 98400 | 650 |
In: Statistics and Probability
Will improving customer service result in higher stock prices for the companies providing the better service? "When a company's satisfaction score has improved over the prior year's results and is above the national average (currently 75.7), studies show its shares have a good chance of outperforming the broad stock market in the long run." The following satisfaction scores of three companies for the 4th quarters of two previous years were obtained from the American Customer Satisfaction Index. Assume that the scores are based on a poll of 68 customers from each company. Because the polling has been done for several years, the standard deviation can be assumed to equal 8 points in each case.
Company Year 1 Score Year 2 Score
Rite Aid 74 78
Expedia 78 81
J.C. Penney 72 80
a. For Rite Aid, is the increase in the satisfaction score from year 1 to year 2 statistically significant? Use x= 0.05 and null hypothesis is h0: u1-u2 <=0 . What can you conclude?
z value (to 2 decimals)
p-value (to 4 decimals)
b. Can you conclude that the year 2 score for Rite Aid is above the national average of 75.7? Use x=0.05 and null hypothesis is . Enter negative value as negative number.
z value (to 2 decimals)
p-value (to 4 decimals)
c. For Expedia, is the increase from year 1 to year 2 statistically significant? Use and null hypothesis is .
z value (to 2 decimals)
p-value (to 4 decimals)
d. When conducting a hypothesis test with the values given for the standard deviation, sample size, and , how large must the increase from Year 1 to Year 2 be for it to be statistically significant? (to 2 decimals)
e. Use the result of part (d) to state whether the increase for J.C. Penney from year 1 to year 2 is statistically significant.
The increase () statistically significant.
In: Statistics and Probability
A positive evaluation of a manager would include Residual Income of zero and an ROI greater than the minimum requirement
|
|||
|
Question 4
Residual income of $10,000 indicates the manager is earning above the minimum requirement but residual income of zero ($0) indicates the manager is earning below the minimum requirement.
|
|||
|
Residual income should not be used to evaluate a profit center.
|
|||
|
The World Peace Co. has three divisions: the Fox Division, the Tiger Division and the Panther Division. The following was reported at year end for each division. The company’s minimum requirement is 10%:
| Fox Division | Tiger Division | Panther Division | |
| Income from Operations (Net Income from Operations) | $300,000 | $100,000 | $200,000 |
| Average Operating Assets (Invested Assets) | $5,000,000 | $1,000,000 | $1,500,000 |
The Return on Investment (ROI) for the Fox Division is closest to
options:
|
|||
|
|||
|
|||
|
The World Peace Co. has three divisions: the Fox Division, the Tiger Division and the Panther Division. The following was reported at year end for each division. The company’s minimum requirement is 10%:
| Fox Division | Tiger Division | Panther Division | |
| Income from Operations (Net Income from Operations) | $300,000 | $100,000 | $200,000 |
| Average Operating Assets (Invested Assets) | $5,000,000 | $1,000,000 | $1,500,000 |
Residual Income for the Tiger Division is closest to options:
|
|||
|
|||
|
|||
|
The World Peace Co. has three divisions: the Fox Division, the Tiger Division and the Panther Division. The following was reported at year end for each division. The company’s minimum requirement is 10%:
| Fox Division | Tiger Division | Panther Division | |
| Income from Operations (Net Income from Operations) | $300,000 | $100,000 | $200,000 |
| Average Operating Assets (Invested Assets) | $5,000,000 | $1,000,000 | $1,500,000 |
Which manager is performing the best based on ROI?
|
|||
|
|||
|
|||
|
In: Accounting
Vollmer Manufacturing makes three components for sale to refrigeration companies. The components are processed on two machines: a shaper and a grinder. The times (in minutes) required on each machine are as follows:
| Machine | ||
| Component | Shaper | Grinder |
| 1 | 6 | 5 |
| 2 | 5 | 4 |
| 3 | 5 | 2 |
The shaper is available for 110 hours, and the grinder is available for 100 hours. No more than 190 units of component 3 can be sold, but up to 1075 units of each of the other components can be sold. In fact, the company already has orders for 600 units of component 1 that must be satisfied. The profit contributions for components 1, 2, and 3 are $7, $6, and $9, respectively.
| Let | C1 | = | units of component 1 manufactured | |
| C2 | = | units of component 2 manufactured | ||
| C3 | = | units of component 3 manufactured |
| Max | __C1 | + | ___C2 | + | ___C3 | |||
| s.t | 6C1 | + | ___C2 | + | ___C3 | ≤ | ____ | Constraint 1 |
| ___C1 | + | ___C2 | + | 2C3 | ≤ | ____ | Constraint 2 | |
| C3 | ≤ | ____ | Constraint 3 | |||||
| ___C1 | ≤ | ____ | Constraint 4 | |||||
| ___C2 | ≤ | ____ | Constraint 5 | |||||
| ___C1 | ≥ | ____ | Constraint 6 | |||||
| C1,C2,C3 ≥ 0 | ||||||||
| C1 | = | |
| C2 | = | |
| C3 | = |
| Objective Coefficient Range | |||
|---|---|---|---|
| Variable | lower limit | upper limit | |
| C1 | |||
| C2 | |||
| C3 | |||
| Right-Hand-Side-Range | |||
|---|---|---|---|
| Constraints | lower limit | upper limit | |
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | |||
In: Advanced Math
HOW CAN I USE a string instead of array tries and res on this assignment, with out impacting the program or modifying too much on conditions check code bellow
import java.util.Scanner;
import java.util.Random;//starter code provided
public class inputLap
{
public static char roller;
public static String playerName;
public static int printed=0;
public static int rounds=8,lives=0,randy;
public static int tries[]=new int[4];//use arrays to store number
of tries in each life
public static int res[]=new int[4];
public static String getName(String aString){
Scanner sc= new Scanner(System.in);
System.out.println("enter player's Name:");aString=sc.next();
playerName=aString;
return playerName;
}
public static void menu()
{
Scanner sc= new Scanner(System.in);
if(lives<=4){
System.out.println("Do you want to continue?(y/Y):\n (x/X) to exit.
");roller=sc.next().charAt(0);
}
}
public static int getGame() {
Scanner sc = new Scanner(System.in);
System.out.println("make a guess from 1-20");
int Guessed = sc.nextInt();
return Guessed;
}
public static void main(String[] args) {
String name=getName(playerName);
Random r = new Random();
int answer=0;
int f=0;
while(true) {
randy=r.nextInt(20);
for (int i=0;i<=7;i++)
{
answer=getGame();
rounds--;
if(answer==randy)
{
lives++;
System.out.println("congratulation you are right");
tries[lives-1]=8-rounds;
res[lives-1]=1;
rounds=8;
break;
}
else
{
System.out.println("you have "+(rounds)+" remaining");
}
if(rounds==0){
if(lives!=4){
tries[lives]=8;
lives++;
System.out.println("hard luck\nyou have "+(4-lives)+" lives
left");
f=1;
}
}
if(f==1){
f=0;
break;
}
}
menu();
switch( roller)
{
case 'y':
case 'Y':rounds=8;break;
case'x':
case 'X':
lives=5;
System.out.println("Game No Game 1 Game 2 Game 3 Game 4");
System.out.print("Number of tries ");
printed=1;
for(int i=0;i<4;i++)
System.out.print(tries[i]+" ");
System.out.println();
System.out.print("Result \t");
for(int i=0;i<4;i++){
if(res[i]==1)
System.out.print("Success ");
else
System.out.print("Fail");
}
System.out.println("\nbye bye "+playerName+" !!");
break;
}
if(lives>4)
break;
}
if(printed!=1){
System.out.println("Game No Game 1 Game 2 Game 3 Game 4");
System.out.print("Number of tries ");
for(int i=0;i<4;i++)
System.out.print(tries[i]+" ");
System.out.println();
System.out.print("Result\t");
for(int i=0;i<4;i++){
if(res[i]==1)
System.out.print("Success ");
else
System.out.print("Fail");
}
System.out.println("\nbye bye "+playerName+" !!");
}
}
}
In: Computer Science
in this code I have used array two times .
I need a way to make the program functional using a string to store the results and print it again later .
this game should be array free.
import java.util.Scanner;
import java.util.Random;//starter code provided
public class inputLap
{
public static char roller;
public static String playerName;
public static int printed=0;
public static int rounds=8,lives=0,randy;
public static int tries[]=new int[4];//use arrays to store number
of tries in each life
public static int res[]=new int[4];
public static String getName(String aString){
Scanner sc= new Scanner(System.in);
System.out.println("enter player's Name:");aString=sc.next();
playerName=aString;
return playerName;
}
public static void menu()
{
Scanner sc= new Scanner(System.in);
if(lives<=4){
System.out.println("Do you want to continue?(y/Y):\n (x/X) to exit.
");roller=sc.next().charAt(0);
}
}
public static int getGame() {
Scanner sc = new Scanner(System.in);
System.out.println("make a guess from 1-20");
int Guessed = sc.nextInt();
return Guessed;
}
public static void main(String[] args) {
String name=getName(playerName);
Random r = new Random();
int answer=0;
int f=0;
while(true) {
randy=r.nextInt(20);
for (int i=0;i<=7;i++)
{
answer=getGame();
rounds--;
if(answer==randy)
{
lives++;
System.out.println("congratulation you are right");
tries[lives-1]=8-rounds;
res[lives-1]=1;
rounds=8;
break;
}
else
{
System.out.println("you have "+(rounds)+" remaining");
}
if(rounds==0){
if(lives!=4){
tries[lives]=8;
lives++;
System.out.println("hard luck\nyou have "+(4-lives)+" lives
left");
f=1;
}
}
if(f==1){
f=0;
break;
}
}
menu();
switch( roller)
{
case 'y':
case 'Y':rounds=8;break;
case'x':
case 'X':
lives=5;
System.out.println("Game No Game 1 Game 2 Game 3 Game 4");
System.out.print("Number of tries ");
printed=1;
for(int i=0;i<4;i++)
System.out.print(tries[i]+" ");
System.out.println();
System.out.print("Result \t");
for(int i=0;i<4;i++){
if(res[i]==1)
System.out.print("Success ");
else
System.out.print("Fail");
}
System.out.println("\nbye bye "+playerName+" !!");
break;
}
if(lives>4)
break;
}
if(printed!=1){
System.out.println("Game No Game 1 Game 2 Game 3 Game 4");
System.out.print("Number of tries ");
for(int i=0;i<4;i++)
System.out.print(tries[i]+" ");
System.out.println();
System.out.print("Result\t");
for(int i=0;i<4;i++){
if(res[i]==1)
System.out.print("Success ");
else
System.out.print("Fail");
}
System.out.println("\nbye bye "+playerName+" !!");
}
}
}
implementing it
In: Computer Science
An investigator analyzed the leading digits from 787 checks issued by seven suspect companies. The frequencies were found to be 4, 11, 2, 72, 371, 281, 7, 16, and 23, and those digits correspond to the leading digits of 1, 2, 3, 4, 5, 6, 7, 8, and 9, respectively. If the observed frequencies are substantially different from the frequencies expected with Benford's law shown below, the check amounts appear to result from fraud. Use a 0.025 significance level to test for goodness-of-fit with Benford's law. Does it appear that the checks are the result of fraud?
Leading Digit: 1 2
3 4 5 6 7 8 9
Actual Frequency: 4 11 2
72 371 281 7 16
23
Benford's Law: 30.1% 17.6% 12.5% 9.7% 7.9% 6.7% 5.8% 5.1% 4.6%
Determine the null and alternative hypotheses.
Ho: (1)_________________ H1: (2)_________________
Calculate the test statistic, χ2.
χ2 = _______________
(Round to three decimal places as needed.)
Calculate the P-value.
P-value = _______________
(Round to four decimal places as needed.)
State the conclusion.
(3)_________________Ho. There (4)______________sufficient evidence to warrant rejection of the claim that the leading digits are from a population with a distribution that conforms to Benford's law. It (5)________________that the checks are the result of fraud.
Choose from the following options:
(1) a. At least two leading digits have frequencies that do not
conform to Benford's law.
b. The leading digits are from a population that conforms to
Benford's law.
c. At most three leading digits have frequencies that do not
conform to Benford's law.
d. At least one leading digit has a frequency that does not conform
to Benford's law.
(2) a. The leading digits are from a population that conforms to
Benford's law.
b. At most three leading digits have frequencies that do not
conform to Benford's law.
c. At least one leading digit has a frequency that does not conform
to Benford's law.
d. At least two leading digits have frequencies that
do not conform to Benford's law.
(3) Do not reject
Reject
(4) is
is not
(5) does appear
does not appear
In: Statistics and Probability
An investigator analyzed the leading digits from 787 checks issued by seven suspect companies. The frequencies were found to be 4, 11, 2, 72, 371, 281, 7, 16, and 23, and those digits correspond to the leading digits of 1, 2, 3, 4, 5, 6, 7, 8, and 9, respectively. If the observed frequencies are substantially different from the frequencies expected with Benford's law shown below, the check amounts appear to result from fraud. Use a 0.025 significance level to test for goodness-of-fit with Benford's law. Does it appear that the checks are the result of fraud?
Leading Digit: 1 2
3 4 5 6 7 8 9
Actual Frequency: 4 11 2
72 371 281 7 16
23
Benford's Law: 30.1% 17.6% 12.5% 9.7% 7.9% 6.7% 5.8% 5.1% 4.6%
Determine the null and alternative hypotheses.
Ho: (1)_________________ H1: (2)_________________
Calculate the test statistic, χ2.
χ2 = _______________
(Round to three decimal places as needed.)
Calculate the P-value.
P-value = _______________
(Round to four decimal places as needed.)
State the conclusion.
(3)_________________Ho. There (4)______________sufficient evidence to warrant rejection of the claim that the leading digits are from a population with a distribution that conforms to Benford's law. It (5)________________that the checks are the result of fraud.
Choose from the following options:
(1) a. At least two leading digits have frequencies that do not
conform to Benford's law.
b. The leading digits are from a population that conforms to
Benford's law.
c. At most three leading digits have frequencies that do not
conform to Benford's law.
d. At least one leading digit has a frequency that does not conform
to Benford's law.
(2) a. The leading digits are from a population that conforms to
Benford's law.
b. At most three leading digits have frequencies that do not
conform to Benford's law.
c. At least one leading digit has a frequency that does not conform
to Benford's law.
d. At least two leading digits have frequencies that
do not conform to Benford's law.
(3) Do not reject
Reject
(4) is
is not
(5) does appear
does not appear
In: Statistics and Probability
An investigator analyzed the leading digits from 787 checks issued by seven suspect companies. The frequencies were found to be 4, 11, 2, 72, 371, 281, 7, 16, and 23, and those digits correspond to the leading digits of 1, 2, 3, 4, 5, 6, 7, 8, and 9, respectively. If the observed frequencies are substantially different from the frequencies expected with Benford's law shown below, the check amounts appear to result from fraud. Use a 0.025 significance level to test for goodness-of-fit with Benford's law. Does it appear that the checks are the result of fraud?
Leading Digit: 1 2
3 4 5 6 7 8 9
Actual Frequency: 4 11 2
72 371 281 7 16
23
Benford's Law: 30.1% 17.6% 12.5% 9.7% 7.9% 6.7% 5.8% 5.1% 4.6%
Determine the null and alternative hypotheses.
Ho: (1)_________________ H1: (2)_________________
Calculate the test statistic, χ2.
χ2 = _______________
(Round to three decimal places as needed.)
Calculate the P-value.
P-value = _______________
(Round to four decimal places as needed.)
State the conclusion.
(3)_________________Ho. There (4)______________sufficient evidence to warrant rejection of the claim that the leading digits are from a population with a distribution that conforms to Benford's law. It (5)________________that the checks are the result of fraud.
Choose from the following options:
(1) a. At least two leading digits have frequencies that do not
conform to Benford's law.
b. The leading digits are from a population that conforms to
Benford's law.
c. At most three leading digits have frequencies that do not
conform to Benford's law.
d. At least one leading digit has a frequency that does not conform
to Benford's law.
(2) a. The leading digits are from a population that conforms to
Benford's law.
b. At most three leading digits have frequencies that do not
conform to Benford's law.
c. At least one leading digit has a frequency that does not conform
to Benford's law.
d. At least two leading digits have frequencies that
do not conform to Benford's law.
(3) Do not reject
Reject
(4) is
is not
(5) does appear
does not appear
In: Statistics and Probability