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

Problem 2-13 (algorithmic) Question Help Barcelona Machine Tools. Oriol​ D'ez Miguel​ S.R.L., a manufacturer of heavy...

Problem 2-13 (algorithmic)

Question Help

Barcelona Machine Tools. Oriol​ D'ez Miguel​ S.R.L., a manufacturer of heavy duty machine tools near​ Barcelona, ships an order to a buyer in Jordan. The purchase price is

€422,000. Jordan imposes a 14% import duty on all products purchased from the European Union. The Jordanian importer then​ re-exports the product to a Saudi Arabian​ importer, but only after imposing its own resale fee of 28%.

Given the following spot exchange rates on April​ 11, 2010, what is the total cost to the Saudi Arabian importer in Saudi Arabian​ riyal, and what is the U.S. dollar equivalent of that​ price?  ​(Click on the

  icon to import the table into a​ spreadsheet.)

Currency Crossrate

Spot Rate

Jordanian dinar​ (JD) per euro

​(€​)

0.963

Jordanian dinar​ (JD) per U.S. dollar​ ($)

0.705

Saudi Arabian riyal​ (SRI) per U.S. dollar​ ($)

3.747

The spot​ rate, Saudi Arabian riyal per Jordanian dinar is SRI

__​/JD.

​(Round to five decimal​ places.)

In: Finance

Prepare a schedule showing the amortization of a $12,000 loan to be repaid in 10 end-of-year...

Prepare a schedule showing the amortization of a $12,000 loan to be repaid in 10 end-of-year installments that include interest at a rate of 6%. Jared and Courtney Jill own a parcel of fertile farm land which a local farmer has offered to rent for a period of 10 years. He is willing to make a payment of $20,000 today or pay an ordinary annuity of $3,400 at the end of each of the next 10 years. Which payment method should Jared and Courtney accept if the appropriate rate of return is 9%? A group of five faculty members at a Midwest University have recently purchased several acres near the school. They plan to gravel it and rent the parking spaces to commuting students. The cost of the project is $100,000. They paid $25,000 cash and are financing the balance with a note at 7.0% annual interest to be paid off in five equal annual payments with the first payment to be made at the end of the first year. The rental receipts are to be placed in an account for future improvements and cannot be used to repay the loan. If the annual payments are shared equally, how much would each member need to contribute annually to pay off the loan?

In: Finance

We are learning quite a bit about market structures in this module week's summit session. Hopefully,...

We are learning quite a bit about market structures in this module week's summit session. Hopefully, you have had the opportunity to discuss market structures with your colleagues leading up to this activity. Now, let's dig a little deeper into market structures. In this activity, you will draft a document addressing the following topics:

  1. Identify the differences between all four market structures in the short-run and long-run. This will be helpful as many of you may hold management positions and/or become entrepreneurs in the near future. When deciding what type of firm to own or operate, you may find that one market structure may be more advantageous over another based on short-run and long-run costs.  
  2. Explain the significance that the average total cost (ATC) curve has on profit and loss based on each type of market structure. Explore how the ATC curve affects all four market structures and identify whether firms will earn a profit or loss based on the placement of the ATC curve and price.

Your answers must be supported by a minimum of two sources

In: Economics

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