A box in a supply room contains 19 compact fluorescent lightbulbs, of which 7 are rated 13-watt, 8 are rated 18-watt, and 4 are rated 23-watt. Suppose that three of these bulbs are randomly selected. (Round your answers to three decimal places.)
(a) What is the probability that exactly two of the selected
bulbs are rated 23-watt?
(b) What is the probability that all three of the bulbs have the
same rating?
(c) What is the probability that one bulb of each type is
selected?
(d) If bulbs are selected one by one until a 23-watt bulb is
obtained, what is the probability that it is necessary to examine
at least 6 bulbs?
In: Statistics and Probability
Try the following exercises to better understand how the national debt is related to the government budget deficit.
1. Assume that the gross national debt initially is equal to $3 trillion and the federal government then runs a deficit of $300 billion:
a. What is the new level of gross national debt?
b. If 100 percent of the deficit is financed by the sale of securities to federal agencies, what happens to the amount of debt held by the public? What happens to the level of gross debt?
c. If GDP increased by 5 percent in the same year that the deficit is run, what happens to gross debt as a percentage of GDP? What happens to the level of debt held by the public as a percentage of GDP? (You will need to figure out which is growing faster, GDP or the gross debt, and then GDP and debt held by the public. If gross debt is growing faster than GDP, then gross debt as a percentage of GDP will increase.)
2. Now suppose that the gross national debt initially is equal to $2.5 trillion and the federal government then runs a deficit of $100 billion:
a. What is the new level of gross national debt?
b. If 100 percent of the deficit is financed by the sale of securities to the public, what happens to the level of debt held by the public? What happens to the level of gross debt?
c. If GDP increases by 6 percent in the same year as the deficit is run, what happens to gross debt as a percentage of GDP? (You will need to figure out which is growing faster, GDP or the gross debt. If gross debt is growing faster than GDP, then gross debt as a percentage of GDP will increase.)
In: Economics
Margot is a 25-year-old, recreationally active female who is just beginning to train for a half marathon that is 16 wks away. She weighs 128 lbs and is 5’4” tall. She comes to you for advice regarding her training diet. Estimate her total daily energy expenditure and justify your answer. You feel it is important to determine Margot’s baseline VO2max to better prescribe an exercise program. Briefly describe how you would measure her VO2max (all testing methods and equipment are available to you) to obtain the most valid VO2. During her first few weeks of training, Margot does most of her runs at 65% VO2max. What proportion of carbohydrate and fat will she likely be oxidizing?
Margot is worried about eating a diet that allows for optimal energy repletion for her workouts. What total kilocalories and macronutrient composition would you prescribe for her to eat during the training period and prior to the race.
Margot goes out for a run during week 15 of her training program. She runs for 60 minutes at 65% of her baseline VO2max. Discuss how her substrate oxidation profile is different now that she is more trained. What other training adaptations have occurred in response to 16 weeks of training (Choose 3).
On race morning, Margo is dehydrated and doesn’t hydrate during the half marathon. Describe the hormonal response that will result from this scenario.
In: Anatomy and Physiology
C code only, not C++ or anything else
// This program accepts the chest size from the customer
// and returns the proper shirt size as well as the price.
// function prototype
void check_size_price(int size_val, char *size_char, int *price);
#include <stdio.h>
int main()
{
int chest_size; //input - entered chest size
char size_str; //output - size (S/M/L)
int p; //output - price
// validation loop for the input – the chest size must be a positive integer
// Call function "check_size_price"
// print results
printf("The size of the shirt is %c\n", size_str); fflush(stdout);
printf("and the price is $ %d \n", p); fflush(stdout);
return (0);
}
// ################################## Function
// Start your function code here
Problem Description
1. Read through the given code ( Lab06.c ).
2. The main program uses a ”helper” function check_size_price () to determine and report the proper shirt size as well as the price based on the chest size entered by the user.
3. Your task is to write the function definition for the check_size_price () function (notice that the prototype is given) as well as completing the main function in the sections related to the validation loop and calling the helper function. 4. Once you have completed your function definition and the missing parts of the code: (a) Make sure that your program compiles and runs without errors or warnings. (b) Run your program enough times to check all the cases for correctness. (c) If it runs correctly, then submit your code on Canvas for a check-off.
In: Computer Science
Based on historical data, your manager believes that 44% of the company's orders come from first-time customers. A random sample of 141 orders will be used to estimate the proportion of first-time-customers. What is the probability that the sample proportion is between 0.26 and 0.48?
Note: You should carefully round any z-values you calculate to 4 decimal places to match wamap's approach and calculations. Answer = (Enter your answer as a number accurate to 4 decimal places.)
In: Math
Lottery’s Powerball game, each ticket costs $2 and consists of two parts:--> Five distinct integers (i.e., no duplicates) between 1-69, inclusive • One integer (the “Powerball number”) between 1-26, inclusive. The Powerball number may or may not coincide with one of the previously chosen numbers. A ticket wins the jackpot if all five distinct numbers plus the Powerball number match the randomly drawn numbers. The matching of the five distinct numbers is done without regard to order. For example, a ticket with 54, 49, 3, 18, and 20 matches drawn numbers of 3, 54, 18, 20, and 49. In math, the set of five distinct numbers chosen by the player is known as a combination. The number of possible combinations of k items chosen from a set of n items is usually written as (pronounced “n choose k”) and is computable using this formula: This concept should be familiar; it was discussed in an earlier lab. As mentioned then, calculating the factorials directly is not an efficient way to find n choose k. This is because the terms in (n−k)! cancel some of the terms in n!, so there’s no need to compute those cancelled terms at all. A more efficient way to compute n choose k is this:
The number of possible Powerball tickets can be computed by letting n = 69, k = 5, and multiplying the result of n choose k by 26 (the quantity of possible Powerball numbers):Number of possible tickets = 26
plus one of m bonus numbers, we can compute the number of possible tickets like this. Number of possible tickets =
The game settings (i.e., the values of k, n, and m above) can be chosen by the play.All of your code should be within a single class named Lottery.java.numPossibleTickets(int k, int n, int m-->This method should return the number of possible tickets in a lottery game that involves choosing k distinct integers from 1 to n (inclusive), plus one bonus integer from 1 to m (inclusive). Use equation (3) to compute this, and use the efficient technique of equation (2) when computing the value of n choose k. Because the number of tickets can be quite large, return it as a long value.getPlayerNumbers(int k, int n-->This method should get user input for k distinct integers between 1 and n (inclusive). The results should be returned in a 1D array of length k. Include input validation with loops to ensure that each input cannot be outside the range 1 to n, and also does not duplicate any previously entered value.getDrawnNumbers(int k, int n-->This method should simulate randomly drawing k distinct integers between 1 and n (inclusive). The results should be returned in a 1D array of length k. countMatches(int[] a, int[] b-->This method should return the number of elements in array a that also appear in array b. You may assume that both parameter arrays contain distinct elements. Here are some example arguments for this method and their expected return values:
|
a |
b |
Return Value |
|
{1, 2, 3} |
{3, 1} |
2 |
|
{1, 2, 3} |
{5, 7, -1} |
0 |
1 2 3 4 || Bonus: 2
The moment of truth has arrived! Here are the drawn numbers:
4 2 1 3 || Bonus: 2
Your best ticket(s):
1 2 3 4 || Bonus: 2
You matched 4/4 drawn numbers.You did match the bonus number.WOOHOO, JACKPOT!!
Example program run (underlined parts indicate what the user enters)First, let’s set up the game!How many distinct numbers should the player pick? 5OK. Each of those 5 numbers should range from 1 to what? 69OK. And finally, the bonus number should range from 1 to what? -1Error - range must be at least 1 to 1 to have a valid game. Please try again: 26There are 292201338 possible tickets in this game. Each ticket has a3.4222978130237034E-7% chance of winning the jackpot. Let’s play, good luck!How many tickets would you like to buy? -22Error - must buy at least 1 ticket! Please try again: 3* Ticket #1 of 3 *Pick your 5 distinct numbers!Enter number 1 (must be 1-69, cannot repeat): 77Error - number must be between 1 and 69. Please try again.Enter number 1 (must be 1-69, cannot repeat): 1Enter number 2 (must be 1-69, cannot repeat): 2Enter number 3 (must be 1-69, cannot repeat): 3Enter number 4 (must be 1-69, cannot repeat): 4Enter number 5 (must be 1-69, cannot repeat): 5Now pick your bonus number (must be 1-26): 22Your tickets so far: --------------------
1 2 3 4 5 || Bonus: 22
* Ticket #2 of 3 *Pick your 5 distinct numbers!Enter number 1 (must be 1-69, cannot repeat): 55Enter number 2 (must be 1-69, cannot repeat): 22Enter number 3 (must be 1-69, cannot repeat): 33Enter number 4 (must be 1-69, cannot repeat): 44Enter number 5 (must be 1-69, cannot repeat): 22Error - you’ve already entered 22. Please try again.Enter number 5 (must be 1-69, cannot repeat): 11Now pick your bonus number (must be 1-26): 19
Your tickets so far: --------------------
1 2 3 4 5 || Bonus: 22
55 22 33 44 11 || Bonus: 19
* Ticket #3 of 3 *Pick your 5 distinct numbers!Enter number 1 (must be 1-69, cannot repeat): 8Enter number 2 (must be 1-69, cannot repeat): 13 Enter number 3 (must be 1-69, cannot repeat): 2Enter number 4 (must be 1-69, cannot repeat): 17Enter number 5 (must be 1-69, cannot repeat): 29Now pick your bonus number (must be 1-26): 4
Your tickets so far: --------------------
1 2 3 4 5 || Bonus: 22
55 22 33 44 11 || Bonus: 19 8 13 2 17 29 || Bonus: 4
*****
The moment of truth has arrived! Here are the drawn numbers:
43 3 22 36 51 || Bonus: 4
Your best ticket(s):
1 2 3 4 5 || Bonus: 22
55 22 33 44 11 || Bonus: 19
You matched 1/5 drawn numbers. You did not match the bonus number.
Sorry, no jackpot this time. Really, did you expect anything else?
Try may be next time!!!!
In: Computer Science
Given the following:
| Number purchased |
Cost per unit |
Total | ||||
| January 1 inventory | 40 | $ | 4 | $ | 160 | |
| April 1 | 60 | 7 | 420 | |||
| June 1 | 50 | 8 | 400 | |||
| November 1 | 55 | 9 | 495 | |||
| 205 | $ | 1,475 | ||||
a. Calculate the cost of ending inventory using
the weighted-average method (ending inventory shows 61 units).
(Round the "average unit cost" and final answer to the
nearest cent.)
b. Calculate the cost of goods sold using the
weighted-average method. (Round your intermediate
calculations and final answer to the nearest
cent.)
In: Accounting
|
Person number |
X Value |
Y Value |
Person number |
X Value |
Y Value |
Person number |
X Value |
Y Value |
|
1 |
24 |
30 |
11 |
39 |
42 |
21 |
21 |
27 |
|
2 |
42 |
53 |
12 |
60 |
65 |
22 |
33 |
29 |
|
3 |
20 |
27 |
13 |
34 |
40 |
23 |
25 |
27 |
|
4 |
31 |
30 |
14 |
24 |
26 |
24 |
22 |
25 |
|
5 |
22 |
24 |
15 |
51 |
57 |
25 |
28 |
33 |
|
6 |
46 |
47 |
16 |
80 |
83 |
26 |
34 |
40 |
|
7 |
52 |
60 |
17 |
28 |
27 |
27 |
53 |
55 |
|
8 |
25 |
28 |
18 |
25 |
29 |
28 |
26 |
28 |
|
9 |
30 |
30 |
19 |
30 |
31 |
29 |
29 |
33 |
|
10 |
23 |
27 |
20 |
43 |
44 |
30 |
26 |
29 |
Work for the first variable, X:
**Data goes up to 83**
|
Class |
Frequency |
|
20-29 |
|
|
30-39 |
|
In: Statistics and Probability
| Week | Sales | Cart? | 2 cents off? | 1 cent off? | Coupon |
| 1 | 36 | 1 | 0 | 0 | 1 |
| 2 | 38 | 1 | 0 | 1 | 1 |
| 3 | 40 | 1 | 1 | 0 | 1 |
| 4 | 40 | 1 | 0 | 0 | 0 |
| 5 | 42 | 1 | 0 | 1 | 0 |
| 6 | 44 | 1 | 1 | 0 | 0 |
| 7 | 12 | 0 | 0 | 0 | 1 |
| 8 | 20 | 0 | 0 | 1 | 1 |
| 9 | 30 | 0 | 1 | 0 | 1 |
| 10 | 8 | 0 | 0 | 0 | 0 |
| 11 | 16 | 0 | 0 | 1 | 0 |
| 12 | 33 | 0 | 1 | 0 | 0 |
In: Statistics and Probability
Edward Foster is a building contractor. He and his customer have agreed that he will submit a bill to them when he is 25 percent complete, 50 percent complete, 75 percent complete, and 100 percent complete. For example, he has a $200,000 room addition. When he has completed 25 percent, he will bill his customer $50,000. The problem occurs when he is 40 percent complete, has incurred expenses but cannot yet bill his customer. How can his revenue and expenses match? Discuss several ways that Edward's accountant could solve this problem. What accounts would be used?
In: Accounting