Questions
A sample sequence of 35 products is selected (in order) from an assembly line. Each product...

A sample sequence of 35 products is selected (in order) from an assembly line. Each product is examined and judged to be either acceptable or defective. A total of 26 of these products were found to be acceptable, and the other 9 were found to be defective. The number of runs was 7. The runs test is to be used at the 0.05 significance level to test for randomness. Find the value of the test statistic used in this test, and round it to 3 places after the decimal point (if necessary)

In: Statistics and Probability

Two snooker players, Player A and Player B, play a match of a ‘best-of-seven’ frames of...

Two snooker players, Player A and Player B, play a match of a ‘best-of-seven’ frames of snooker, i.e. the first player to win 4 frames wins the match. The probability Player A wins a frame is 0.55 and the probability Player B wins a frame is therefore 0.45.


(a) What is the probability that Player A wins the match by a score of 4-2?
(b) What is the overall probability Player B wins the match?
(c) What is the expected number of frames played in a match?

In: Statistics and Probability

Use as few 3-input NOR gates as possible to design a bubble detector circuit for 8-bit...

Use as few 3-input NOR gates as possible to design a bubble detector circuit for 8-bit thermometer code. An
n-bit thermometer code represents an integer m, with m 1s followed by (n-m) 0s. 1-bit bubble is an error in
coding when a solitary 0 (or 1) is found in between two 1s (or 0s). What is the size of your circuit in terms of
the number of NOR gates used?
Implement using structural verilog and include a test bench.

In: Electrical Engineering

Java - Create a program that simulates a slot machine. When the program runs, it should...

Java - Create a program that simulates a slot machine. When the program runs, it should do the following: - Ask the user to enter the amount of money he or she wants to enter into the slot machine. - Instead of displaying images, have the program randomly select a word from the following list: Cherries, Oranges, Plums, Bells, Melons, Bars (To select a word, the program can generate a random number in the range of 0 through 5. If the number is 0, the selected word is Cherries, if the number is 1, the selected word is Oranges, and so forth. The program should randomly select a word from the list three times and display all three of the words.) - If none of the randomly selected words match, the program informs the user that he or she has won $0. If two of the words match, the program informs the user that he or she has won two times the amount entered. If three of the words match, the program informs the user that he or she has won three times the amount entered. - The program asks if the user wants to play again. If so, these steps are repeated. If not, the program displays the total amount of money entered into the slot machine and the total amount won.

If you could just take a screen shot of the actual code on java that would be great. A lot of the characters appear differently when answer is copied and pasted on answer forum.

In: Computer Science

Write a method, twoSumSorted2, that solves the following variant of the Two-Sum problem: Given a sorted...

Write a method, twoSumSorted2, that solves the following variant of the Two-Sum problem:

Given a sorted array of integers where each element is unique and a target integer, return in an Array List, the indices of all pairs of elements that sum up to the target. Each pair of indices is also represented as an Array List (of two elements). Therefore, the method returns an Array List of an Array List of size 2. If no pair in the input array sums up to the target, then the method should return an empty list.

public class Hw2_p1 {
  
   // HW2 Problem 1 Graded Method
   public static ArrayList<ArrayList<Integer>> twoSumSorted(int[] A, int target) {
       ArrayList<ArrayList<Integer>> ans = new ArrayList<>();
      
       // Your code starts
      
      
       // Your code ends
      
       return ans;
   }

  
   // Test driver for twoSumSorted2
   public static void main(String[] args) {
      
   }

}

The following are two sample runs:

Input:   ? = [−7, −5, −2, 0, 1, 6, 7, 8, 9],   ?????? = 1

Return value:   [0,7], [1, 5], [3, 4]

Explanation: The pairs in the input array that sum up to 1 are [−7, 8], [−5, 6] and [0, 1]. Their indices are [0, 7], [1, 5] and [3, 4] respectively.

Input:   ? = [−2, 0, 1, 6, 7, 8],   ?????? = 3

Return value:   [ ]

Explanation: No pair of elements in input array sums up to 3. The returned list is thus empty.

Your method must have time complexity ?(?), where ? is the length of the input array.

In: Computer Science

The Gourmand Cooking School runs short cooking courses at its small campus. Management has identified two...

The Gourmand Cooking School runs short cooking courses at its small campus. Management has identified two cost drivers it uses in its budgeting and performance reports—the number of courses and the total number of students. For example, the school might run two courses in a month and have a total of 50 students enrolled in those two courses. Data concerning the company’s cost formulas appear below: Fixed Cost per Month Cost per Course Cost per Student Instructor wages $ 3,080 Classroom supplies $ 260 Utilities $ 870 $ 130 Campus rent $ 4,200 Insurance $ 1,890 Administrative expenses $ 3,270 $ 15 $ 4 For example, administrative expenses should be $3,270 per month plus $15 per course plus $4 per student. The company’s sales should average $800 per student. The company planned to run three courses with a total of 45 students; however, it actually ran three courses with a total of only 42 students. The actual operating results for September appear below: Actual Revenue $ 32,400 Instructor wages $ 9,080 Classroom supplies $ 8,540 Utilities $ 1,530 Campus rent $ 4,200 Insurance $ 1,890 Administrative expenses $ 3,790 Required: 1. Prepare the company’s planning budget for September. 2. Prepare the company’s flexible budget for September. 3. Calculate the revenue and spending variances for September.

In: Accounting

In an effort to characterize the New Guinea crocodile (Crocodylus novaeguineae), measurements were taken of the...

In an effort to characterize the New Guinea crocodile (Crocodylus novaeguineae), measurements were taken of the dorsal cranial length (mm) (the length of the skull from the tip of the nose to the back of the cranial cap, denoted DCL) and the total length (cm) (denoted TL) of 50 harvested adult males.

  1. Assume we are interested in the following events:

  

A: DCL > 260mm,      B: TL > 180cm.

     Use the data and the concept of probability as a relative frequency to estimate the probabilities (relative frequencies) of these two events and of the joint event: A and B. Are A and B independent events?

P(A) =

P(B) =

P(A and B) =

TL           DCL           Observation

130           169           1

102           154           2

126           160           3

230           290           4

115           151           5

150           209           6

259           344           7

130           183           8

110           153           9

130           183           10

185           237           11

215           288           12

129           187           13

149           189           14

156           203           15

100           143           16

224           294           17

234           318           18

162           229           19

217           299           20

206           283           21

144           198           22

146           203           23

166           229           24

203           275           25

205           266           26

252           350           27

238           318           28

250           330           29

255           351           30

120           169           31

250           332           32

238           307           33

157           205           34

159           216           35

202           261           36

177           237           37

221           288           38

224           294           39

167           232           40

240           316           41

207           268           42

192           242           43

180           248           44

165           226           45

197           267           46

113           162           47

131           183           48

162           234           49

246           310           50

In: Statistics and Probability

A protein solution was placed in an analytic centrifuge and spun until equilibrium was reached. The...

A protein solution was placed in an analytic centrifuge and spun until equilibrium was reached. The measurement was then repeated. But it was realized, too late, that prior
to the second run, the protein had been denatured. The average size of a denatured protein is larger than that of a native, compact protein. (a) Do you expect the distribution of molecules to be the same, at equilibrium, for the two different runs? Explain. (b) The time that it takes to reach equilibrium depends on the sedimentation constant of the molecules. Which run will reach equilibrium faster, the one with the native protein, or the one with the denatured protein? Explain how you imagine the sedimentation process of the two molecules.

In: Chemistry

perform a Crossed Gage R&R taking as pieces 12 coins, 4 pennys, 4 nickels, and 4...

perform a Crossed Gage R&R taking as pieces 12 coins,
4 pennys, 4 nickels, and 4 dimes)
• Will do two repetitions for each piece
• You will use three people to make the measurements
• Use two instruments to carry out the measurements

how do i asign runs for this in minitab

In: Statistics and Probability

A school is interested in whether its student's scores on a standardized test exceed the national...

A school is interested in whether its student's scores on a standardized test exceed the
national average. The national average is 40 (μ = 40) and the standard deviation is 8 (cr =
8). To determine this, the school officials administer the test to a sample of 16 (n = 16)
students and obtain a mean score of 44 (M = 44). Perform a z-test to determine whether

the students in the school differ significantly from the national average. Perform a two-
tailed test. Compute the obtained z score.

In: Statistics and Probability