The following table summarizes the responses of a sample of 25 workers who were asked how many miles they had to travel to go to work.
|
Miles |
Frequency |
|
0<10 |
3 |
|
10<20 |
10 |
|
20<30 |
2 |
|
30<40 |
5 |
|
40<50 |
4 |
|
50<60 |
1 |
Suppose you build a histogram with this information. Describe it
A. "A single peak, skewed to the left (left-skewed)."
B. "A single peak, skewed to the right (right-skewed)."
C. "Bimodal, skewed to the right (right-skewed)."
D. "Bimodal, skewed to the left (left-skewed)."
"The survival time of patients after a certain type of surgery has a skewed distribution to the right due to the presence of outliers. Consequently, which statement is more likely to be correct?"
A. Median (median)> range
B. Average (mean) <median (median)
C. Average (mean)> median (median)
D. None of the above.
A distribution will be skewed to the left (left-skewed) if
A. Median <mid axis (midhinge)
B. Medium> mid axis (midhinge)
C. Median = mid axis (midhinge)
D. None of the above.
"Since P (A) = 0.4, P (B) = 0.5 and P (A ∩B) = 0.05. Then:"
A. P (A∪B) = 0.80; P (A / B) = 0.1
B. P (A∪B) = 0.85; P (A / B) = 0.15
C. P (A∪B) = 0.85; P (A / B) = 0.10
D. None of the above.
The average of the exam of a class of 30 students was 75. The average of the exam for the 20 male students of that class was 70. Then the average of the exam for the 10 female students was:
A. 85
B. 80
C. 75
D. None of the above.
"Two events are complementary (that is, they are complements), yes"
A. The sum of your odds is equal to one.
B. The probability of your interception is equal to one.
C. They are two independent events with equal probabilities.
D. None of the above.
What probability function can be used to describe the number of damaged printers in a random sample of 12 printers taken from a shipment of 70 printers consisting of 6 damaged printers?
A. Poisson
B. Hypergeometric
C. Binomial
D. None of the above.
You have the following probability distribution of the random variable X:
|
X |
P(X) |
|
100 |
0.1 |
|
150 |
0.2 |
|
200 |
0.3 |
|
250 |
0.3 |
|
300 |
0.1 |
The expected value of X is:
A. 175
B. 150
C. 205
D. None of the above.
The variable Z has a standard normal distribution. The probability P (0.71 <Z <1.43) is:
A. 0.1625
B. 0.92
C. 0.5
D. 0.485
"Suppose that X has a normal distribution with a mean μ = $ 64. Given that P (X> $ 75) = 0.2981, we can calculate that the standard deviation of X is approximately"
A. $ 20.75
B. $ 13.75
C. $ 5.83
D. $ 7.05
"In Quebec, 90% of the population is Catholic. In a random sample of 8 people find the probability that the sample contains at least five Catholics."
A. 0.005
B. 0.0331
C. 0.995
D. 0.9619
In: Statistics and Probability
You received a high-yield savings account that contains $1,000,000. The account has a 7% annual interest rate and you want to take out a constant amount every year for 40 years.
1. How much would you be able to withdraw every year? Hint: the annual interest rate should be used as the discount rate in the finite time annuity formula.
2. Using Microsoft Excel, decompose your annual withdrawals into interest revenue and revenue earned from principal deduction (for example, at t=1, you get 7% x $1,000,000 in interest, and take the remaining amount from the principal – these together should equal the amount you determined in (1)). Graph interest revenue and principal revenue together, with time on the xaxis. Report the graph based on all 40 years, and only report the interest revenue and principal revenue numbers for the first 10 years.
3. Suppose you want to take out $100,000 per year. For how many years would you be able to make this exact withdrawal?
4. After your last exact withdrawal from (3), you decide to withdraw everything in your account one year later. How much money would you get from your final withdrawal?
In: Finance
How many 10 digit decimal numbers contain:
a-) exactly three 7’s ?
b-) at most two 7’s ?
c-) at least two 7’s ?
please explain when solving problems. thanks
In: Statistics and Probability
1.) What does it mean when glassware is labelled “TD”? How is
that different from “TC”?
2.) Pipets with multiple graduation marks are what type of pipet?
Are they always TD or TC?
3.) Pipets with ONE marks are what type of pipet? Are they always
TD or TC?
4.) (T / F) Quantitative analysis may be used to determine how many
different compounds are in a sample. (Explain your answer.)
5.) Is acid/base titration a separation method? Why or why
not?
6.) List and briefly explain three separation methods
7.) List the seven steps of chemical analysis as described in our text and briefly explain each one.
In: Chemistry
Birthday problem. Suppose that people enter a room one at a time. How people must enter until two share a birthday? Counterintuitively, after 23 people enter the room, there is approximately a 50–50 chance that two share a birthday. This phenomenon is known as the birthday problem or birthday paradox.
Write a program Birthday.java that takes two integer command-line arguments n and trials and performs the following experiment, trials times:
In each experiment, count the number of people that enter the room. Print a table that summarizes the results (the count i, the number of times that exactly i people enter the room, and the fraction of times that i or fewer people enter the room) for each possible value of i from 1 until the fraction reaches (or exceeds) 50%.
Submission. Submit a .zip file containing DiscreteDistribution.java, ThueMorse.java, Birthday.java, and Minesweeper.java. You may not call library functions except those in the java.lang (such as Integer.parseInt() and Math.sqrt()). Use only Java features that have already been introduced in the course (e.g., loops and arrays, but not functions).
In: Computer Science
Littlefield Laboratories, LLC (LL) provides an integrated genetic test called MaterniT 21 PLUS for expected parents in Northern California. LL charges its customers a premium price of $1,900 per test and promises to return the result within 24 hours after receiving the order; otherwise a rebate will be provided. LL runs 24x7 and customer orders for the test come in to the lab with blood samples on a continuous basis. Demand for the test is relatively stable at an average of 3,000 tests per month, with an estimated standard deviation of 100 tests for the weekly demand. Each test requires an advanced testing kit that can be purchased from a sole supplier at a wholesale price of $600 each. LL can purchase the testing kits from the supplier in a batch. The supplier charges a fixed setup cost (including shipping) of $6,000 for each batch LL orders, regardless of the size of the batch. It will take exactly 7 days for the supplier to deliver the batch to LL after LL places the order. If LL runs out of inventory for less than a week, the backlog cost is estimated to be $156 per unit. As soon as the batch is delivered, LL pays the supplier out of is operational cash account, which generates interest for LL on a compound annual growth rate (CAGR) of 8%. Test kits are very small parts that do not require any physical resources (e.g., extra space or climate control) to hold.
1. Which of the following are necessary inventory control decisions LL has to make? (Select all that apply.) Group of answer choices
Determining how many testing machines to purchase.
Determining how many units of testing kits to order in a batch.
Determining how many operators to staff in each shift.
Determining the reorder point that triggers the testing kit replenishment order.
Determining how often to order testing kits.
Determining what price promotions can be offered to customers.
2. Which of the following are appropriate strategies for making the inventory decisions. (Select all that apply.) Group of answer choices
Use the EOQ model to determine how many testing kit units to order each time.
Use the EOQ model to determine how often to place testing kit orders.
Use the EOQ model to determine the reorder point to trigger the replenishment order in order to keep a good amount of testing kits on hand during the 7‐day supplier lead time.
Use the EOQ model to determine how many operators to staff in each shift.
Use the order-up-to model to determine the optimal reorder point.
Use the order-up-to model to determine how many testing machines to purchase.
3. LL plans to use the EOQ model to make some of its inventory decisions. Which of the following hypotheses, if true, will make the EOQ method invalid? (Select all that apply.) Group of answer choices
The incoming demand is relatively stable at a constant rate that can be easily estimated.
The supplier can offer discounts on the fixed setup charge based on ordering quantities, e.g., 50% off if the batch size is larger than 10,000 units.
The supplier can offer discounts on the per unit wholesale price based on ordering quantities, e.g., 10% off if the batch size is larger than 5,000 units.
LL’s operational cash is put into an actively managed account with a systematic withdrawal plan that allows LL to withdraw a flexible amount of fund only on the first of each month to pay employees and bills and make necessary procurements.
The supplier’s setup charge and wholesale price are constants.
4. LL plans to set its reorder point at 700 units, which equals the average weekly demand LL faces. Which of the following are true? (Select all that apply.) Group of answer choices
If LL keeps 700 units on hand during the 7‐day supplier lead time, LL has a 50% chance of running out of inventory before the supplier delivers the ordered batch of testing kits.
If LL keeps 700 units on hand during the 7‐day supplier lead time, LL has a 50% chance of having leftover inventory when supplier delivers the ordered batch of testing kits.
700 is the optimal reorder point for LL to set. LL should set a reorder point higher than 700 in order to have a positive safety stock buffer.
LL should set a reorder point lower than 700 in order to have a negative safety stock buffer.
5. LL has made an inventory decision of ordering 3000 units in a batch each time it orders from the supplier. Which of the following are true? (Select all that apply.) Group of answer choices
This is the EOQ solution.
LL is expected to order 12 times a year.
LL is expected to order once per month.
The solution will impose an annual inventory holding cost that is much higher than the annual total setup cost.
The solution will impose an annual total setup cost that is much higher than the annual inventory holding cost
6.LL plans to place an order of 3000 units to its supplier on a monthly basis. LL is also considering to set the reorder point to 900 units to trigger the order. Once the ordered batch is delivered in exactly 7 days, any leftover testing kit inventory LL has will impose a $4 per unit of carrying cost for another month. Which of following are true? (Select all that apply.) Group of answer choices
Setting the reorder point at 900 units, or 2 standard deviations above the mean weekly demand, will give LL approximately a 97.5% probability of not running of inventory during the 7‐day supplier lead time.
Setting the reorder point at 900 units, or 2 standard deviations above the mean weekly demand, will give LL approximately a 2.5% probability of not running of inventory during the 7‐day supplier lead time.
The critical ratio is $156/($156+$4) = 0.975.
Setting the reorder point at 900 units, or 2 standard deviations above the mean weekly demand, can be considered optimal.
With a reorder point of 900 units, LL will not have a sufficient safety stock buffer during the 7‐day supplier lead time to take on incoming customer orders.
In: Accounting
C++
Instructions
A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee’s weekly pay and the average salary of all employees. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate.
Use two parallel arrays:
Your program must contain at least the following functions:
A sample output is:
| Name | Hrs Worked | Pay Rate | Salary |
|---|---|---|---|
| Johnson | 60.00 | 12.50 | 875.00 |
| Aniston | 65.00 | 13.25 | 1026.88 |
| Cooper | 50.00 | 14.50 | 797.50 |
| ... | ... | ... | ... |
| Average Salary: $947.88 |
| Salary Greater than Avg: |
| Aniston Gupta Kennedy ... |
In: Computer Science
|
genotype |
T1T1 |
T1T2 |
T2T2 |
T1T3 |
T2T3 |
T3T3 |
|
pop. 1 individuals |
42 |
5 |
5 |
88 |
10 |
67 |
|
pop. 2. individuals |
150 |
10 |
20 |
450 |
50 |
800 |
|
genotype |
T1T1 |
T1T2 |
T2T2 |
|
frequency |
0.10 |
0.10 |
0.80 |
|
fitness |
1 |
0.90 |
0.90 |
In: Biology
In: Finance
Write a program
that manages a list of patients for a medical office. Patients should be
represented as objects with the following data members:
•
name (string)
•
patient id # (string)
•
address (string)
•
height (integer; measured in inches)
•
weight (double)
•
date of birth (Date)
•
date of initial visit (Date)
•
date of last visit (Date)
The data member “patient id #” is defined to be a
key
. That is, no two patients can have
the same patient id #. In addition to the standard set of accessors for the above data
members, define the fol
lowing methods for class Patient.
•
standard set of accessors
•
get_age
method: to compute and returns a patient’s age in years (integer)
•
get_time_as_patient
method: to compute the number of years (integer) since
the patient’s initial visit. Note that this va
lue can be 0.
•
get_time_since_last_visit
method:
to compute the number of years (integer)
since the patient’s last visit. This value can be 0, too.
Your program will create a list of patient objects and provide the user with a menu of
choices for accessing
and manipulating the
data on that list. The list must be an object of
the class List that you will define.
Internally, the list object must maintain its list as a
singly linked list with two references, one for head and one for tail.
As usual, your Li
st
class will have the methods “
find,” “
size,” “contains
,” “remove,”
“add,”, “get,”
“getNext,”, “reset,” “toString
,”. At the start, your program should read in patient data
from a text file for an initial set of patients for the list. The name of this file
should be
included on the “command line” when the program is run.
(Don’t hard code
the file name)
Each data item for a patient will appear on a separate line in
the file.
Your program
should be menu-
driven, meaning that it will display a menu of options for the user. The
user will choose one of
these options, and your program will carry out the request. The
program will then display the same menu again and get another
choice from the user.
This interaction will go on until the user chooses QUIT, which should be the last of the
menu’s options. The
menu should look something like the following:
1.
Display list
2.
Add a new patient
3.
Show information for a patient
4.
Delete a patient
5.
Show average patient age
6.
Show information for the youngest patient
7.
Show notification l
ist
8.
Quit
Enter your choice:
Details of each option:
•
Option 1: Display (on the screen) the names and patient id #’s of all patients in
order starting from the first one. Display the
information for one patient per line;
something like: Susan
Smith, 017629
•
Option
2: Add a new patient to the
END
of the list.
All
information about the new
patient (including name, patient id #, etc.)
is to be requested (input) from the user
interactively. That is, you will need to ask for 14 pieces of data from the user.
You’ll, of course, need to create a new patient object to hold this data.
NOTE:
As mentioned above, the patient id # field is a
key
. So, if the user types in
a patient id # that happens to be the same as
an already existing patient’s, then
you should display an error message and cancel the operation. Therefore, it is
probably a
good idea to ask for the patient id # first and test it immediately (by
scanning the objects on the list).
•
Option
3: Display (in a neat format) all the information pertaining to the patien
t
whose patient id # is given by the user. Namely, display the following information:
o
name
o
patient id #
o
address
o
height (shown in feet and inches; for example, 5 ft, 10 in)
o
weight
o
age
o
number of years as a patient (display “less than one year” if 0)
o
number of years since last visit (display “less than one year” if 0)
o
Indication that patient is overdue for a visit
NOTE:
The last item is displayed only if it has been 3 or more years since
the patient’s last visit.
If the user inputs a patient id
# that does
not
exist, then the program should
display an error message and the operation should be canceled (with the menu
immediately being displayed again for another request).
•
Option
4: Delete the patient whose id # is given by the user. If the patient is not
on the
list, display an error message.
•
Option 5: Show the average age (to one decimal place) of the patients.
•
Option
6:
Display (in a neat format) all the information (same as operation 3)
about the youngest patient.
•
Option
7: Display the names (and patient id
#’s) of all patients who are overdue
for a visit. As noted above, “overdue” is
defined as 3 or more years since the last
visit.
•
Option 8: Quit the program.
NOTE:
When the user chooses to quit, you should ask if they would like to save
the patient information to a file. If so, then
you should prompt for the name of an
output (text) file, and then write the data pertaining to
all
patients to that file. The
output for each patient should be in the same format as in the input file. In this
way, your output fil
e can be used as input on
another run of your program. Make
certain to maintain the order of the patients in the output file as they appear on the
list. Be
careful not to overwrite your original input file (or any other file, for that
matter).
Note
:
Try to
implement the various menu options as separate methods (aside
from
“main”)
.
However:
DO NOT DEFINE such “option methods
” as part of the class
List.
Of course, the Java code that implements an option (whether it’s in the “main”
method or not) should def
initely use List’s methods
to help do its job.
In: Computer Science