Questions
Creat a theater booking system in java language using : 1.OOP objects -Classes 2.encapsulation 3.polymorphism 4.inheritance...

Creat a theater booking system in java language using :

1.OOP objects -Classes
2.encapsulation
3.polymorphism
4.inheritance
5.abstract class

In: Computer Science

4.In dancing bears, short fur is dominant to long fur, and curly hair is dominant to...

4.In dancing bears, short fur is dominant to long fur, and curly hair is dominant to straight. The genes for these traits are located on separate autosomes.

You have a large population of dancing bears with the following allele frequencies

Short fur (S) p = 0.5, Long fur (s) q = 0.5

Curly hair (C) p = 0.3, Straight hair (c) q = 0.7

You allow the population to randomly breed for several generations. You have a population of 1000 dancing bears and count 510 with curly hair.

Is this population in Hardy-Weinberg equilibrium for this trait based on the starting allele frequencies?

Multiple Choice

a.No, that is not enough with curly hair.

b.No, that is too many with curly hair.

c.Yes.

5.In dancing bears, short fur is dominant to long fur, and curly hair is dominant to straight. The genes for these traits are located on separate autosomes.

You have a large population of dancing bears with the following allele frequencies

Short fur (S) p = 0.5, Long fur (s) q = 0.5

Curly hair (C) p = 0.3, Straight hair (c) q = 0.7

You allow the population to randomly breed for several generations. You have a population of 1000 dancing bears and count 255 with short, curly fur.

Is this population in Hardy-Weinberg equilibrium for these traits based on the starting allele frequencies?

Multiple Choice

a.No, that is not enough with short, curly hair.

b.Yes.

c.No, that is too many with short, curly fur.

6.A species of plant that grows on rock outcrops produces a chemical on its stigmas that prevents pollen germination. After collecting pollen over the course of a day, the chemical wears off and all the pollen grains germinate at once with the fastest growing male fertilizing all or most of the eggs in the ovary.

You conduct an experiment where you mix equal amounts of pollen from three different plants and place it on the stigmas of three separate flowers on six different plants. You count the number of seeds produced by each flower and use genetic tests to determine paternity of the seeds.

You think that the same male plant will fertilize the most seeds on all of the female plants. If so, this is an example of disruptive selection.

Multiple Choice

a.True.

b.False.

In: Biology

A hotel has 210 units. All rooms are occupied when the hotel charges ​$90 per day...

A hotel has 210 units. All rooms are occupied when the hotel charges ​$90 per day for a room. For every increase of x dollars in the daily room​ rate, there are x rooms vacant. Each occupied room costs $ 36 per day to service and maintain. What should the hotel charge per day in order to maximize daily​ profit?

In: Math

Suppose 1% of the population of Toronto has been infected with SARS-CoV-2 at some point (call...

Suppose 1% of the population of Toronto has been infected with SARS-CoV-2 at some point (call the corresponding proportion, 0.01, the prevalence of the virus). There are now antibody tests available for SARS-CoV-2 to detect whether someone has ever been infected. However, like any test, these tests are not perfect and are subject to error at some rate.

Also suppose that, when someone has been infected, the test correctly comes up positive 98% of the time, comes up negative 1.7% of the time, and comes up inconclusive in the remaining 0.3% of cases. Also suppose that when someone has not been infected, the test correctly comes up negative 99% of the time, positive 0.8% of the time, and inconclusive 0.2% of the time.

Let ?D be the event that a randomly selected person in Toronto has truly been infected (?D for disease). Thus, ??Dc is the event that the person has never been infected. Let ++ be the event that a test comes up positive, and – the event it comes up negative. Use ?O for inconclusive.

Draw a probability tree to depict the relationship between these events (see Lecture 7). Use the tree to compute ?(?|+)P(D|+), the probability that someone has been infected conditional on getting a positive test result. What does this result mean in words and why might it be surprising (1-2 sentences)?

Use the same information about testing for SARS-CoV-2 as above. What happens if prevalence changes to 0.10? Redraw the tree, and compute ?(?|+) again using this new prevalence. What do these results suggest about the importance of prevalence in interpreting test results like this (1 sentence)? Suppose a random person in Toronto gets an inconclusive result on an antibody test for SARS-CoV-2. Is the probability that they are infected lower or higher than it was before we knew their test result? Use your tree to explain.

In: Statistics and Probability

TechMedia, Inc. is a U.S. firm that is planning to build a new production facility in...

TechMedia, Inc. is a U.S. firm that is planning to build a new production facility in either the USA or China. The initial cost to build the facility will be $8.2 million if built in the USA or ¥45 million if built in China. In either location, the project will require an initial investment of $225,000 in net working capital. Net working capital at the end of each of years 1 through 4 will be $65,000. Net working capital will be $0 at the end of the fifth (final) year of the project. The current exchange rate between the two currencies is 6.75 ¥/$. The risk-free rate in the U.S. is 0.8% and the risk-free rate in China is 6.1%. TechMedia, Inc. pays a 35% tax rate on its taxable income. The firm’s current and target debt-equity ratio is 0.6. Its cost of debt is 6.5% and its cost of equity is 11.5%. The facility will be fully depreciated over five years (straight line) with no salvage value. The facility is expected to impact the firm’s operating revenues and expenses as shown below. USA Location China Location Year Additional Revenue ($) Additional Expense ($) Additional Revenue (¥) Additional Expense (¥) 1 $4,000,000 $1,500,000 ¥20,000,000 ¥7,000,000 2 $4,000,000 $1,500,000 ¥25,000,000 ¥8,000,000 3 $5,000,000 $1,750,000 ¥30,000,000 ¥9,000,000 4 $6,500,000 $2,000,000 ¥35,000,000 ¥9,000,000 5 $6,500,000 $2,000,000 ¥40,000,000 ¥8,000,000 Which location, if either, should TechMedia, Inc. choose?

In: Finance

Regarding Anne Moody's autobiography answer the following questions: Why didn’t more southern blacks join the movement?...

Regarding Anne Moody's autobiography answer the following questions:

Why didn’t more southern blacks join the movement?

2. Why did Anne Moody become a civil rights activist?  Was it a case of nature or nurture?

3. What were Anne Moody’s frustrations with the civil rights movement?  Why had she become disillusioned by 1963?

4. How has Anne Moody’s autobiography added to your understanding of the history of race relations in the South during the 1940s and 1950s as well as the civil rights movement’s efforts to improved conditions?  Be specific.

In: Psychology

Below are percentages for annual sales growth and net sales attributed to loyalty card usage at...

Below are percentages for annual sales growth and net sales attributed to loyalty card usage at 74 Noodles & Company restaurants.

Annual Sales Growth (%) and Loyalty Card Usage (% of Net Sales)
(n = 74 restaurants)
Store   Growth%   Loyalty% Store   Growth%   Loyalty%
1     -7.3       2.7       38     7.5       1.9      
2 -6.5       2.7       39     7.5       2.4      
3 -6.3       1.8       40     7.5       1.5      
4 -4.9       2.0       41     7.7       2.6      
5 -3.9       2.7       42     7.8       2.1      
6 -2.0       2.4       43     7.8       1.3      
7 -1.7       1.6       44     8.1       1.3      
8 -0.6       1.7       45     8.4       2.5      
9 -0.5       1.7       46     8.6       2.0      
10 -0.5       1.9       47     8.7       0.5      
11 0.4       1.4       48     8.9       2.3      
12 0.6       2.3       49     8.9       2.4      
13 0.6       2.5       50     9.2       2.5      
14 0.7       2.5       51     9.4       1.6      
15 0.8       2.3       52     10.6       2.5      
16 1.5       2.3       53     10.6       1.3      
17 1.7       2.2       54     10.7       2.5      
18 2.0       2.0       55     10.9       1.7      
19 4.1       0.8       56     11.0       2.2      
20 4.5       1.4       57     11.0       1.3      
21 5.0       2.5       58     11.4       0.6      
22 5.0       2.5       59     11.9       1.8      
23 5.5       2.7       60     12.0       2.1      
24 5.6       1.9       61     13.2       2.5      
25 6.0       1.9       62     13.5       2.5      
26 6.0       2.3       63     14.1       1.7      
27 6.1       1.7       64     14.6       2.0      
28 6.3       1.9       65     14.8       1.7      
29 6.4       2.0       66     15.1       1.6      
30 6.4       1.3       67     15.6       0.8      
31 6.8       2.1       68     17.7       2.1      
32 7.1       1.6       69     18.2       2.1      
33 7.1       2.0       70     19.0       1.9      
34 7.1       1.7       71     19.3       1.5      
35 7.1       1.2       72     24.2       1.2      
36 7.2       1.5       73     25.0       0.7      
37 7.2       2.3       74     26.3       1.6      

Click here for the Excel Data File

(b) Find the correlation coefficient. (Round your answer to 3 decimal places. A negative value should be indicated by a minus sign.)

r              

(c-1) To test the correlation coefficient for significance at α = 0.025, fill in the following. (Use the rounded value of the correlation coefficient from part b in all calculations. For final answers, round tcalc to 3 decimal places and the p-value to 4 decimal places. Negative values should be indicated by a minus sign.)

  tcalc   
  p-value   

In: Statistics and Probability

In a company production line, the number of defective parts and their probabilities produced in an hour are shown in TABLE 1.

 

  1. In a company production line, the number of defective parts and their probabilities produced in an hour are shown in TABLE 1. Let x be the number of defective parts in an hour and K is P(X=K):

TABLE 1

X

0

1

2

3

4

P(X = x)

0.2

0.3

K

0.15

0.1

  1. How many defective parts are expected to be produced in an hour in the company’s production line?                                                                        

      

  1. Compute the standard deviation of the defective parts produced in an hour by the company’s production line.                                              

 

  1. Find the value of P(0 < X £ 3).                                                                         

 

 

  1. Penny will play 2 games of badminton against Monica. Penny’s chances of winning each game is around 60 %. Let X denotes the number of Penny winning the game.
    1. Construct a probability distribution and cumulative probability distribution table for X.

                                                                                                                

  1. Graph the probability distribution of X.

In: Statistics and Probability

Companies A and B have been required the following rates per annum on a $10 million...



Companies A and B have been required the following rates per annum on a $10 million notional:
Fixed rate Floating rate
Company A 2.0% p.a. LIBOR + 0.3% p.a.

Company B 3.0% p.a. LIBOR + 1.3% p.a.

a)Under which assumption Company A and B may find it useful to enter a swap?

b)In that case, design a swap that will net a bank, acting as intermediary, 0.2% per annum and that will appear equally attractive to both companies.
How does your answer to question b) modify if A is available to receive 1/3 of the amount that is shared between A and B (i.e., the overall gain minus the intermediary fee is split into three parts, one for A and two for B)?


Plus: when B-A(float) equals to B-A(fixed) how to determine B and A chose floating or fixed markets?

In: Finance

please answer i only have 3-4 minutes !!! On any given day, a bike shop sells...

please answer i only have 3-4 minutes !!!

On any given day, a bike shop sells either 0, 1, 2, or 3, bikes, with probabilities 0.3, 0.4, 0.2, and 0.1 respectively.

Suppose they make a profit of $400 from each bike sold, but they have a fixed cost of $400 per day for rent and salaries at the small dealer.

Let the random variable X = the net profit per day. (i.e., the profit from the sale of bicycles minus the fixed cost).

a) Develop a probability distribution for the net profit per day. What are the X and f(x) values?

b) Show that your probability distribution satisfies the conditions for a discrete probability distribution. In other words, describe in words why the probability distribution that you created is a valid one.

c) Calculate the expected value of the probability distribution. Interpret what this means in words.

In: Statistics and Probability