Part C (25 pts) Coding question Create a Java class name Store_XXXXX with last 5 digits of your student ID and write your code in there. A PC store sells many types of computers. The PC can have either 16 or 8 gigabytes of memory. The quality of the PCs can be either New, Refurbished, or Dented. The price list is given as follows: Memory size/Status New Refurbished Dented 16 gigabytes 849.99 729.99 609.99 8 gigabytes 699.99 579.99 439.99 Determine the price of a given PC dependent on the user inputs. The sale tax is 9.25% for each PC. User input can only be 8 or 16 for memory size and 'N', 'R', or 'D' for quality (upper-case). The input quantity should be 0 or positive. If any user input is not correct, display an error message and skip all calculation. All currency amounts should be displayed with 2 digits in decimal fraction. Here are several separate program sample runs. Enter the memory size of the PC (8 or 16 gigabytes): 16 Enter the quality of the PC (N for New, R for Refurbished, or D for Dented): N Enter PC quantity to buy: 2
The item price is $XXXX.XX The sale tax is $XXXX.XX The total bill is $XXXX.XX ---------------------- Enter the memory size of the PC (8 or 16 gigabytes): 8 Enter the quality of the
PC (N for New, R for Refurbished, or D for Dented): R Enter PC quantity to buy: 3 The item price is $XXXX.XX The sale tax is $XXXX.XX The total bill is $XXXX.XX ---------------------- Enter the memory size of the PC (8 or 16 gigabytes): 15 Invalid memory size! ---------------------- Enter the memory size of the PC (8 or 16 gigabytes): 8 Enter the quality of the PC (N for New, R for Refurbished, or D for Dented): A Invalid PC quality! ---------------------- Enter the memory size of the PC (8 or 16 gigabytes): 8 Enter the quality of the PC (N for New, R for Refurbished, or D for Dented): (user hit Tab key) Invalid PC quality! ---------------------- Enter the memory size of the PC (8 or 16 gigabytes): 16 Enter the quality of the PC (N for New, R for Refurbished, or D for Dented): R Enter PC quantity to buy: -2 Invalid PC quantity!
programme should be in java student id - 203866
In: Computer Science
The following table gives the robbery rate per 100,000 people
for 26 states east of the Mississippi River, as compiled by the FBI
in 2005:
|
117.3 |
20.9 |
111.5 |
32.4 |
85.6 |
12.5 |
161.9 |
191.3 |
139.1 |
|
200.6 |
107.4 |
117.9 |
156.5 |
86.6 |
142.9 |
194.9 |
156.9 |
245.8 |
|
146.7 |
140.6 |
95.4 |
36.5 |
132.9 |
74.8 |
116.9 |
162.4 |
a. Construct a frequency distribution table. Take the classes to as 10-50, 50-90, 90-130, 130-170, 170-210, and 210-250 (using the “less than” method”, e.g., 10 to less than 50, etc).
b. Calculate the relative frequencies for all classes.
c. Calculate the cumulative frequencies and relative cumulative
frequencies for each class.
d. What percentage of these states have a robbery rate of at least
130 per 100,000 people?
e. Construct a histogram (bar graph) for the relative frequency
distribution.
f. Draw an ogive (relative cumulative frequency curve) for this
data.
In: Statistics and Probability
There are 4 people in a room. What’s the probability that there are two people born on the same day of the week? (Assume all birthdays are independent and are uniformly distributed over the seven days of the week.)
In: Statistics and Probability
In her book Red Ink Behaviors, Jean Hollands reports on the assessment of leading Silicon Valley companies regarding a manager's lost time due to inappropriate behavior of employees. Consider the following independent random variables. The first variable x1 measures manager's hours per week lost due to hot tempers, flaming e-mails, and general unproductive tensions. x1: 1 3 6 2 2 4 10 The variable x2 measures manager's hours per week lost due to disputes regarding technical workers' superior attitudes that their colleagues are "dumb and dispensable". x2: 8 3 2 7 9 4 10 3 (i) Use a calculator with sample mean and sample standard deviation keys to calculate x1, s1, x2, and s2. (Round your answers to two decimal places.) x1 = s1 = x2 = s2 = (ii) Does the information indicate that the population mean time lost due to hot tempers is different (either way) from population mean time lost due to disputes arising from technical workers' superior attitudes? Use α = 0.05. Assume that the two lost-time population distributions are mound-shaped and symmetric. (a) What is the level of significance? State the null and alternate hypotheses. H0: μ1 = μ2; H1: μ1 ≠ μ2 H0: μ1 = μ2; H1: μ1 < μ2 H0: μ1 = μ2; H1: μ1 > μ2 H0: μ1 ≠ μ2; H1: μ1 = μ2 (b) What sampling distribution will you use? What assumptions are you making? The standard normal. We assume that both population distributions are approximately normal with unknown standard deviations. The standard normal. We assume that both population distributions are approximately normal with known standard deviations. The Student's t. We assume that both population distributions are approximately normal with known standard deviations. The Student's t. We assume that both population distributions are approximately normal with unknown standard deviations. What is the value of the sample test statistic? (Test the difference μ1 − μ2. Do not use rounded values. Round your final answer to three decimal places.) (c) Find (or estimate) the P-value. P-value > 0.500 0.250 < P-value < 0.500 0.100 < P-value < 0.250 0.050 < P-value < 0.100 0.010 < P-value < 0.050 P-value < 0.010 Sketch the sampling distribution and show the area corresponding to the P-value. Maple Generated Plot Maple Generated Plot Maple Generated Plot Maple Generated Plot (d) Based on your answers in parts (a) to (c), will you reject or fail to reject the null hypothesis? Are the data statistically significant at level α? At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are not statistically significant. At the α = 0.05 level, we reject the null hypothesis and conclude the data are statistically significant. At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are statistically significant. At the α = 0.05 level, we reject the null hypothesis and conclude the data are not statistically significant. (e) Interpret your conclusion in the context of the application. Fail to reject the null hypothesis, there is sufficient evidence that there is a difference in mean time lost due to hot tempers and technical workers' attitudes. Fail to reject the null hypothesis, there is insufficient evidence that there is a difference in mean time lost due to hot tempers and technical workers' attitudes. Reject the null hypothesis, there is sufficient evidence that there is a difference in mean time lost due to hot tempers and technical workers' attitudes. Reject the null hypothesis, there is insufficient evidence that there is a difference in mean time lost due to hot tempers and technical workers' attitudes.
In: Math
Question 1: A researcher is testing 4 different blood coagulation drugs. The drugs are labeled A,B,C and D. He is interested in how the drugs affect the blood coagulation rates of mice. The coagulation rate is the time in seconds that it takes for a cut to stop bleeding. He has 16 mice available for the experiment, so he will use 4 on each drug, randomized.
A B C D
62 63 68 56
60 67 66 62
63 71 71 60
59 64 61
64
a. Perform CRD (completely randomized design) manually as we did in the lectures. You need to write the STEPS clearly.
b. Watch the video on, CRD & CRBD on how to perform EXCEL calculation for CRD
c. Use the attached EXCEL sheet to perform the same calculation.
PART 2: Three different washing solutions are being compared to study their effectiveness in retarding bacteria growth in 5-gallon milk containers. The analysis is done in a laboratory, and only three trials can be run on any day. Because days could represent a potential source of variability, the experimenter decides to use a randomized block design. Observations are taken for four days, and the data are shown here.
|
Days |
||||
|
Solution |
1 |
2 |
3 |
4 |
|
1 |
13 |
22 |
18 |
39 |
|
2 |
16 |
24 |
17 |
44 |
|
3 |
5 |
4 |
1 |
22 |
a. Watch the video on, CRD & CRBD on how to perform EXCEL calculation
b. Use the attached EXCEL sheet to perform the calculation for CRBD
PART 3: Explosive manufacturer conducts an experiment to study the explosive force of 4 different mixtures. It is planned to run five replicates (5 runs with each mixture).. The experiment is conducted outdoors which meant only 4 runs cam be made in a given day. Because conditions on each day and can affect the test results, a randomized block design is used, blocking against each day.
Data on next sheet
Mixture Day1 Day2 Day3 Day4 Day5
1 72 68 74 71 67
2 73 67 75 72 70
3 75 68 78 73 68
4 73 71 75 75 69
Determine if mixture affects explosive force.
a. Watch the video on, CRD & CRBD on how to perform EXCEL calculation
b. Use the attached EXCEL sheet to perform the calculation for CRBD
In: Statistics and Probability
Assume that 20 bytes of Packed BCD data is present in a data memory at location 0x300 to 0x313. You have to write an assembly program that will display data on a two seven segment displays one connected to Port A and other connected to Port B using loops. You also have to analyze data if the data is equal to 0x22 then start storing data bytes at corresponding memory address 0x400 to 0x413 in reverse order i.e. if the data at 0x300 is 0x95 then it must be stored at corresponding memory location 0x400 as 0x59. Stop the storing of data when you find data byte equal to 0x55. Draw block diagram that will clearly show the pin connection between seven segment display and Microcontroller port. Also draw flow chart for your software.
In: Computer Science
Question 2: The efficacies of two drugs, X and Y were evaluated in two groups of mice (Group C, Group D). The outcome was the concentration of the drug in the plasma after giving the mice drugs (through drinking water) for 24 hours. The data were summarized below.
|
Group C |
Group D |
|
3 |
10 |
|
4 |
7 |
|
6 |
11 |
|
6 |
10 |
|
7 |
9 |
|
5 |
11 |
|
6 |
12 |
|
5 |
14 |
|
8 |
8 |
|
9 |
13 |
Question 2A. At the significance level of 0.05, are the drug concentrations in Group C and Group D different? Using Mann-Whitney U test here.
In: Math
The current listed price of zinc is $2.58 x 10^3 per ton. Assuming that each "silver" penny (1943-44) was made of pure zinc had a volume of 0.360cm^3 determine the metal value of one roll (50 "silver" pennies.) Given the density of Zn is 7.14g/ml, 1 ton = 2000 lbs and 1 lb = 453.6 g
In: Chemistry
A researcher interviews 50 employees of a large manufacturer and collects data on each worker’s hourly wage (Wage), years of higher education (EDUC), experience (EXPER), and age (AGE). The data is shown below; the data set can also be found on the text website; labeled Hourly Wage.
| Wage | EDUC | EXPER | AGE |
|---|---|---|---|
| 37.85 | 11 | 2 | 40 |
| 21.72 | 4 | 1 | 39 |
| 14.34 | 4 | 2 | 38 |
| 21.26 | 5 | 9 | 53 |
| 24.65 | 6 | 15 | 59 |
| 25.65 | 6 | 12 | 36 |
| 15.45 | 9 | 5 | 45 |
| 20.39 | 4 | 12 | 37 |
| 29.13 | 5 | 14 | 37 |
| 27.33 | 11 | 3 | 43 |
| 18.02 | 8 | 5 | 32 |
| 20.39 | 9 | 18 | 40 |
| 24.18 | 7 | 1 | 49 |
| 17.29 | 4 | 10 | 43 |
| 15.61 | 1 | 9 | 31 |
| 35.07 | 9 | 22 | 45 |
| 40.33 | 11 | 3 | 31 |
| 20.39 | 4 | 14 | 55 |
| 16.61 | 6 | 5 | 30 |
| 16.33 | 9 | 3 | 28 |
| 23.15 | 6 | 15 | 60 |
| 20.39 | 4 | 13 | 32 |
| 14.88 | 4 | 9 | 58 |
| 13.88 | 5 | 4 | 28 |
| 17.65 | 6 | 5 | 40 |
| 15.45 | 6 | 2 | 37 |
| 26.35 | 4 | 18 | 52 |
| 19.15 | 6 | 4 | 44 |
| 16.61 | 6 | 4 | 57 |
| 18.39 | 9 | 3 | 30 |
| 15.45 | 5 | 8 | 43 |
| 18.02 | 7 | 6 | 31 |
| 13.44 | 4 | 3 | 33 |
| 17.66 | 6 | 23 | 51 |
| 16.96 | 4 | 15 | 37 |
| 14.34 | 4 | 9 | 45 |
| 15.45 | 6 | 3 | 55 |
| 17.43 | 5 | 14 | 57 |
| 35.89 | 9 | 16 | 36 |
| 20.39 | 4 | 20 | 60 |
| 11.81 | 4 | 5 | 35 |
| 15.45 | 9 | 10 | 34 |
| 17.66 | 5 | 4 | 28 |
| 13.87 | 6 | 1 | 25 |
| 16.35 | 7 | 10 | 43 |
| 15.45 | 9 | 2 | 42 |
| 23.67 | 4 | 17 | 47 |
| 16.02 | 11 | 2 | 46 |
| 23.15 | 4 | 15 | 52 |
| 24.14 | 8 | 11 | 6 |
Please use either Minitab or Excel to develop both the scatter plots and find the correlation coefficients.
A. Which variable is the response variable? Which variables are the explanatory variables?
B. Develop a scatter plot comparing wage to education. Interpret the plot.
C. Develop a scatter plot comparing wage to experience. Interpret the plot.
D. Compute the correlation coefficients for wage and education and wage and experience. Then perform a hypothesis test for both correlations to determine if the correlations are statistically significant. Be sure to show the null and alternative hypotheses, decision rule, decisions and conclusions. Use alpha = .05. Note: Since the hypotheses and decision rule are the same for both tests, only need to write those steps once.
E. Which of the explanatory variables provides the best predictor of the response variable? Support your response by citing both the scatter plot and correlation test.
In: Statistics and Probability
Draw a diagram of the normal distribution for all questions being asked.
40% of the population has type A blood.
In: Statistics and Probability