Questions
Here is another infectious disease model. Once a person becomes infected, the time X, in days,...

Here is another infectious disease model. Once a person becomes infected, the time X, in days, until the person becomes infectious (can pass on the disease) can be modeled as a Weibull random variable with density function

  

f(x,α,β) = (α/βα)xα−1e−(x/β)α

for 0 ≤ x ≤ ∞ and 0 otherwise with α = 3.7 and β = 7.1

α is the shape parameter and β is the scale parameter. Hint: Solve this with the built-in R functions for the Weibull distribution (dweibull(),pweibull(), qweibull()) not f as defined above. Otherwise you may get intermediate values too large to use. For a) and b) the text (and notes) give formulas for the answers. You can calculate from these formulas. Note that these formulas use the gamma function. Γ(α) is the gamma function. In R, there is a built-in function gamma() which calculates this.
a) What is the expected value of X?

b) What is the variance of X?

c) What is the standard deviation of X?

d) What is the probability that X is larger than its expected value?

e) What is the probability that X is > 2?

f) What is the probability that X is > 4?

g) What is the probability that X > 4 given that X > 2?

h) Calculate the 70th percentile of X

In: Statistics and Probability

Determine the positive real root of ln(x^2)=0.8 by the following methods. (Note that you need to...

Determine the positive real root of ln(x^2)=0.8 by the following methods. (Note that you need to show the details of your derivations in MATLAB).

a) Graphically ( plot the function and copy your figure to word).

b) Using two iterations of the bisection method with initial guesses of xl=0.4 and xu=2 and populate the following table. What is the root after two iterations? Provide justification for the values you have obtained in your MATLAB code as comments.

i xl xu xr

1 0.4 2

2

c) Using two iterations of the false position method, with the same initial guesses as in b) and populate the table below. What is the root after two iterations? Provide justification for the values you have obtained in your MATLAB code as comments.

i xl xu xr

1 0.4 2

2   

d) Compute the actual root of the function (use a built in MATLAB function) and identify which method (bisection or false position) achieves a better estimate of the root after two iterations. Prove your answer by calculating the True Percentage Error ( Assume that your answer in part d, obtained using the MATLAB Built in Function is the true value ). ALL Calculations must be performed in MATLAB.

In: Advanced Math

This question demonstrates the use of inheritance and polymorphism. Design a Ship class that has the...

This question demonstrates the use of inheritance and polymorphism.
Design a Ship class that has the following members:
• A field for the name of the ship (a string).
• A field for the year that the ship was built (a string).
• A constructor and appropriate accessors and mutators.
• A toString method that overrides the toString method in the Object class. The Ship class
toString method should display the ship’s name and the year it was built.
Design a CruiseShip class that extends the Ship class. The CruiseShip class should have the following members:
• A field for the maximum number of passengers (an int).
• A constructor and appropriate accessors and mutators.
• A toString method that overrides the toString method in the base class. The CruiseShip class’s
toString method should display only the ship’s name and the maximum number of passengers.
Design a CargoShip class that extends the Ship class. The CargoShip class should have the following members:
• A field for the cargo capacity in tonnage (an int).
• A constructor and appropriate accessors and mutators.
• A toString method that overrides the toString method in the base class. The CargoShip class’s
toString method should display only the ship’s name and the ship’s cargo capacity.
Demonstrate the classes in a program that has a Ship array. Assign various Ship, CruiseShip, and CargoShip objects to the array elements. The program should then step through the array and print each object.

PLEASE DO THE QUESTION IN A SIMPLER WAY

In: Computer Science

finish the java programming Create a new class named MyCharacterListTools that provides the API shown below....

finish the java programming

Create a new class named MyCharacterListTools that provides the API shown below.

This class does not need a constructor nor will any user-defined constructor be called by the

provided code in MainClassQ1.java.

◦ MyLinkedList createCharacterList(String str) – This method is to

return a MyLinkedList whose data items are the characters of str. All of the

characters must appear in the list and in the same order as they are given in str.

◦ void removeNonLetters(MyLinkedList list) – This method is to remove

from the list any spaces, numbers and punctuation characters (this is to be done inplace).

Letters of the alphabet are to be left in the list in the same order they were given.

For example, if the list contained {H_e_l_l_o_ _W_o_r_l_d_!} then after calling this

function, the list would hold {H_e_l_l_o_W_o_r_l_d}. You may use the built-in Java

static method Character.isLetter(char ch) to test whether the list items are

letters.

◦ boolean testEquality(MyLinkedList l1, MyLinkedList l2) – This

method is to compare two MyLinkedLists for equality. Two lists are considered

equal if their contents are the same and in the same order. Letter case should not be

observed (i.e. 'A' is equal to 'a', 'B' is equal to 'b', etc...). If the two lists are equal then

return true. Return false otherwise. The static built-in Java methods

Character.toLowerCase(char ch) and Character.toUpperCase(char

ch) may be used in this method.

In: Computer Science

Managerial Analysis Elliot & Hesse Inc. manufactures ergonomic devices for computer users. Some of its more...

Managerial Analysis

Elliot & Hesse Inc. manufactures ergonomic devices for computer users. Some of its more popular products include anti-glare filters and privacy filters (for computer monitors) and keyboard stands with wrist rests. Over the past 5 years, it experienced rapid growth, with sales of all products increasing 20% to 50% each year.

Last year, some of the primary manufacturers of computers began introducing new products with some of the ergonomic designs, such as anti-glare filters and wrist rests, already built in. As a result, sales of Elliot & Hesse's accessory devices have declined somewhat. The company believes that the privacy filters will probably continue to show growth, but that the other products will probably continue to decline. When the next year's budget was prepared, increases were built into research and development so that replacement products could be developed or the company could expand into some other product line. Some product lines being considered are general-purpose ergonomic devices including back supports, foot rests, and sloped writing pads.

The most recent results have shown that sales decreased more than was expected for the anti-glare filters. As a result, the company may have a shortage of funds. Top management has therefore asked that all expenses be reduced 10% to compensate for these reduced sales. Summary budget information is as follows.

Direct materials

$240,000

Direct labor

110,000

Insurance

50,000

Depreciation

90,000

Machine repairs

30,000

Sales salaries

50,000

Office salaries

80,000

Factory salaries (indirect labor)

50,000

Total

$700,000

Instructions

Using the information above, answer the following questions.

(a)What are the implications of reducing each of the costs? For example, if the company reduces direct materials costs, it may have to do so by purchasing lower-quality materials. This may affect sales in the long run.

(b)Based on your analysis in (a), what do you think is the best way to obtain the $70,000 in cost savings requested? Be specific. Are there any costs that cannot or should not be reduced? Why?

In: Accounting

Northwood Company manufactures basketballs. The company has a ball that sells for $25. At present, the...

Northwood Company manufactures basketballs. The company has a ball that sells for $25. At present, the ball is manufactured in a small plant that relies heavily on direct labor workers. Thus, variable expenses are high, totaling $15.00 per ball, of which 60% is direct labor cost. Last year, the company sold 30,000 of these balls, with the following results:

Sales (30,000 balls) $ 750,000

Variable expenses 450,000

Contribution margin 300,000

Fixed expenses 210,000

Net operating income $ 90,000

Required: 1. Compute (a) last year's CM ratio and the break-even point in balls, and (b) the degree of operating leverage at last year’s sales level.

2. Due to an increase in labor rates, the company estimates that next year's variable expenses will increase by $3.00 per ball. If this change takes place and the selling price per ball remains constant at $25.00, what will be next year's CM ratio and the break-even point in balls?

3. Refer to the data in (2) above. If the expected change in variable expenses takes place, how many balls will have to be sold next year to earn the same net operating income, $90,000, as last year?

4. Refer again to the data in (2) above. The president feels that the company must raise the selling price of its basketballs. If Northwood Company wants to maintain the same CM ratio as last year (as computed in requirement 1a), what selling price per ball must it charge next year to cover the increased labor costs?

5. Refer to the original data. The company is discussing the construction of a new, automated manufacturing plant. The new plant would slash variable expenses per ball by 40.00%, but it would cause fixed expenses per year to double. If the new plant is built, what would be the company’s new CM ratio and new break-even point in balls?

6. Refer to the data in (5) above. a. If the new plant is built, how many balls will have to be sold next year to earn the same net operating income, $90,000, as last year?

In: Accounting

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems...

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems amazing, but it never did what it should do – make my website look better. Also, my page should have a blue theme that was provided in the CSS folder. This also didn’t work. My website is supposed to look like what is shown in Figure 1 (see below). Someone told me that there are exactly 10 errors on index.html, 10 errors on contact.html, and 10 errors on events.html. Yes, 30 errors total! Can you help me find all of the errors? Hint: You should not add ANY LINES to the code. There will never be more than one error per line number.

contact.html ( HELP FIND the 10 ERRORS IN THIS CODE )

<!doctype html>
<html>
<body>
<title>Try Boro Kids Race Series</title>

<!-- Font Awesome -->
<rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<!-- Bootstrap CSS -->
<href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<!-- JQuery -->
<type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Bootstrap core JavaScript -->
<type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>

</head>
<head>
  
<div class="container-fluid">
  
  
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">
<img src="images/HeaderBoroRunningMan2.gif" width="auto" height="30" alt="Running Man Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="events.html">Events <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="http://www.tryborokidstri.org/" target="_blank">Try Boro</a></li>
<li class="nav-item"><a class="nav-link" href="https://www.facebook. com/TryBoroKids/" target="_blank"><img src="images/IconFacebook.png" class="iconsocial" alt="Facebook" width="auto" height="30"></a></li>
</ul>
</div>
</nav>

  
<div class="row p-5">
  
<div class="row">
  
<h2>Want to register?</h2>

<h3>Try Boro Kids 2.5K/5K Run</h3>
<p>May 13, 2020</p>
<p><a href="http://www.tryborokidstri.org" target="_blank">Click here more information</a></p>
<p> <a href="docs/2016TryBoroRunRegistrationForm.pdf" target="_blank">Download a registration form</a></p>

<h3>Try Boro Kids Trail Run</h3>
<p>October 17, 2020</p>
<p><a href="http://www.tryborokidstri.org" target="_blank">Click here more information</a></p>
<p> <a href="mailto:[email protected]">Interested? Click here to email us</a></p>

<!-- Modal Button -->
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#myModal">Register Today</button>
  
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalLabel">Try Boro Registration</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<img src="images/Modal_TryBoroLogo.gif" class="img-fluid" alt="Placeholder image">
<p>Great job! Through the magic of make-believe, you are now registered.</p>
</div>
</div>
</div>
</div>

</div>
  
  
<div class="row">
<img src="images/Swap1_kidstri_CuteLook.jpg" alt="Kid athlete with a cute look." class="img-fluid" id="cute">
</div>
  
</div> <!--end of row-->

  
<footer class="footer bg-primary text-center text-black">Copyright Try Boro</footer>
  
</div>
  
</body>
</html>

In: Computer Science

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems...

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems amazing, but it never did what it should do – make my website look better. Also, my page should have a blue theme that was provided in the CSS folder. This also didn’t work. My website is supposed to look like what is shown in Figure 1 (see below). Someone told me that there are exactly 10 errors on index.html, 10 errors on contact.html, and 10 errors on events.html. Yes, 30 errors total! Can you help me find all of the errors? Hint: You should not add ANY LINES to the code. There will never be more than one error per line number.

events.html ( HELP FIND the 10 ERRORS IN THIS CODE )

<!doctype html>
<html>
<head>
<title>Try Boro Kids Race Series</title>

<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<!-- Bootstrap CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>

</head>
<body>
  
<div class="container-fluid">
  
  
<nav class="navbar navbar-expand-lg navbar-dark bg-danger">
<a class="navbar-brand" href="#">
<img src="" width="auto" height="30" alt="Running Man Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="events.html">Placeholder Text <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Placeholder Text</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="http://www.tryborokidstri.org/" target="_blank">Try Boro</a></li>
<li class="nav-item"><a class="nav-link" href="https://www.facebook. com/TryBoroKids/" target="_blank"><img src="images/IconFacebook.png" class="iconsocial" alt="Facebook" width="auto" height="30"></a></li>
</ul>
</div>
</nav>
  
  
<div class="row">
<div class="col-1"><h2>Try Boro Events</h2>
</div>
</div>
<div class="rows">
  
<div class="col-md-6">
<img src="images/Tri_Left_KidBikeBlur.jpg" class="img-fluid rounded-circle" alt="Placeholder image">
<h3>Biking is a blur </h3>
<p>Triathlete rushing to get started in the transition. Kids get the whole experience of swimming, biking, and running.</p>
</div>
<div class="col-md-6">
<img src="images/Tri_Mid_TransDrink.jpg" class="img-fluid rounded-circle" alt="Placeholder image">
<h3>A triathlon can be exhausting</h3>
<p>When returning to transition, this participant gets some much deserved water before hitting the run.</p>
</div>
<div class="col-md-6">
<img src="images/Tri_Right_trans.jpg" class="img-fluid rounded-circle" alt="Placeholder image">
<h3>Time to get changed </h3>
<p>It not easy to get out of the pool, run down to transition, and get ready for the bike - all while soaking wet!</p>
</div>
</div>
<!-- #BeginLibraryItem "/Library/footer.lbi" -->

  
  
<footer class="footer bg-primary text-center text-white"></footer>
  
</div>
  
</body>
</html>

In: Computer Science

Fruit flies, like almost all other living organisms, have built-in circadian rhythms that keep time even...

Fruit flies, like almost all other living organisms, have built-in circadian rhythms that keep time even in the absence of external stimuli. Several genes have been shown to be involved in internal timekeeping, including per (period) and tim (timeless). Mutations in these two genes, and in other genes, disrupt timekeeping abilities. Interestingly, these genes have also been shown to be involved in other time-related behavior, such as the frequency of wingbeats in male courtship behaviors. Individuals that carry particular mutations of per and tim have been shown to copulate for longer than individuals that have neither mutation. But do these two mutations affect copulation time in similar ways? The following table summarizes some data on the duration of copulation for flies that carry either the tim mutation or the per mutation (Beaver and Giebultowicz 2004):

Mutation Mean copulation duration (min) Standard deviation of copulation duration Sample size, n
per 17.5 3.37 14
tim 19.9 2.47 17

b) Do the populations carrying these mutations have different variances in copulation duration? Enter the calculated F-value.

c) Do the populations carrying these mutations have different variances in copulation duration? Finish this hypothesis test and describe your conclusion.

In: Statistics and Probability

A newly built old age home has 50 townhouses. Residents may only plant clivias, rose bushes...

A newly built old age home has 50 townhouses. Residents may only plant clivias, rose bushes and lavenders in their gardens. Of the 50 gardens 20 grow clivias, 22 grow roses, and 24 grow lavenders. (Residents do not necessarily plant only one of the kinds of plants.) Furthermore, some gardens grow the following: 6 grow clivias and rose bushes 8 grow clivias and lavenders, (Residents do not necessarily plant only two of the kinds of plants.) 4 grow clivias, rose bushes and lavenders. How many gardens have rose bushes and lavenders, but no clivias?

In: Computer Science