Questions
A husband and wife claim that they have a special bond that allows them to communicate...

A husband and wife claim that they have a special bond that allows them to communicate by ESP. To test this claim, an researcher puts the husband and wife in separate rooms. The husband is randomly shown one of 5 colors: either blue, red, green, yellow or orange. He then is given 5 seconds to use his ESP to communicate the color to his wife. The wife then has to decide which of the 5 colors she was shown. This process is repeated 100 times. The wife correctly identifies the color 26 out of the 100 times. The null hypothesis is that she just guessed her husband's answers.

What is the EV (expected value) of the sum of the draws?

Show your work and explain your answer in words.

In: Statistics and Probability

Write C++ program as described below. Call this programChill.cpp. In April 2018 the lowest and the...


Write C++ program as described below. Call this programChill.cpp.

In April 2018 the lowest and the highest temperatures ever recorded in Ohio are 25F and 81F, respectively. The wind chill factor is the perceived temperature when taking temperature and wind into account. The standard formula for wind chill factor (from the US Weather Service) is:

0.0817 * (3.71 * sqrt(Wind) + 5.81 – 0.25 * sqrt(Wind)) * (Temp – 91.4) + 91.4

where ‘sqrt’ is the square root, Wind is the current wind speed in limes per hour and Temp is the current temperature in Fahrenheit.

You must write a program that:

  1. Creates a file with some randomly generated temperatures.
  2. Asks the user for a wind speed .
  3. Generates an output file that contains the wind chill factor of each temperature stored in the input file.

Here are the details.

First, write a function that generates 30 integer numbers, which represent hypothetically the temperature of the 30 days of April in Ohio, and stores all the generated temperature in an output file A. The temperatures generated must range between 25F and 81F. The file Amust contain nothing but integer numbers separated by a blank or a line break. The name of the file A should be given by the user and read from the keyboard. Call this functiongentemp.cpp.

Second, write the program Chill.cpp that prompts the user for the wind speed in miles per hour, reads the temperatures stored in file A and write in a file B the wind chill factor of those temperatures. The name of the file Bcan be chosen by you.

To generate integer numbers, use the functions rand() and srand() defined in <cstdlib>.

rand() - Returns a pseudo-random integral number in the range 0 to RAND_MAX

(Note: RAND_MAX is usually equal to 32767 but it may vary between cstlib library implementation).

A typical way to generate pseudo-random numbers in a determined range using rand() is to use the modulo of the returned value by the range span and add the initial value of the range:
For example:

( value % 100 ) is in the range 0 to 99
( value % 100 + 1 ) is in the range 1 to 100
( value % 30 + 1985 ) is in the range 1985 to 2014

Before generating pseudo-random numbers, use a seed to generate the series. The seed is initialized by using the function srand().

Here is a small example that generates 20 pseudo-random integers.

#include <cstdlib>

#include <iostream>

using namespace std;

int main()

{

         int random_integer;

         srand(9);

         for(int index=0; index<20; index++)

         {

                  random_integer = (rand()%100)+1;

                  cout << random_integer << endl;

         }

         return 0;

}


In: Computer Science

Malinda and her husband are planning for their first child and are meeting with a dietitian...

Malinda and her husband are planning for their first child and are meeting with a dietitian for advice on dietary changes to make to ensure a healthy pregnancy. Malinda is 26 years old, 5’ 4” tall and weighs 156 lbs. She’s relatively healthy with just borderline insulin resistance according to her doctor. Unfortunately, neither she nor her husband cook, so they rely heavily on packaged meals and fast food, and both enjoy an alcoholic drink a couple of times a week.

Question: In this scenario, you are the nutrition expert. Based upon what Malinda has told you about her eating habits, identify two nutrients that are important to fetal growth and development that may not be adequate in her diet. Explain the potential outcome of deficiency in these nutrients and make suggestions on how to improve Malinda’s diet. You will need to defend your answer using specific facts, data, and other information drawn from the textbook and at least one other supplemental source.

In: Biology

Write a Console Java program that inserts 25 random integers in the range of 0 to...

Write a Console Java program that inserts 25 random integers in the range of 0 to 100 into a Linked List.

(Use SecureRandom class from java.security package.
SecureRandom rand = new SecureRandom(); - creates the random number object
rand.nextInt(100) - generates random integers in the 0 to 100 range)

Using a ListItreator output the contents of the LinkedList in the reverse order.

Using a ListItreator output the contents of the LinkedList in the original order.

In: Computer Science

Write a Console Java program that inserts 25 random integers in the range of 0 to...

Write a Console Java program that inserts 25 random integers in the range of 0 to 100 into a Linked List.

(Use SecureRandom class from java.security package.
SecureRandom rand = new SecureRandom(); - creates the random number object
rand.nextInt(100) - generates random integers in the 0 to 100 range)

Using a ListItreator output the contents of the LinkedList in the original order.

Using a ListItreator output the contents of the LinkedList in the reverse order.

In: Computer Science

Stanley and Sara purchase real estate for $600,000 and list ownership as follows: " Stanley and...

Stanley and Sara purchase real estate for $600,000 and list ownership as follows: " Stanley and Sara, joint tenants with the right of survivorship." Stanley contributed $240,000 of the purchase price and Sara contributed the remaining $360,000. Stanley dies first, when the real estate is valued at $860,000. How much is included in Stanley's gross estate if Stanley and Sara are:

a. Cousins.

b. Husband and wife.

In: Accounting

To better understand how husbands and wives feel about their finances, a magazine conducted a national...

To better understand how husbands and wives feel about their finances, a magazine conducted a national poll of 1,006 married adults age 25 and older with household incomes of $50,000 or more. Consider the following example set of responses to the question "Who is better at getting deals?"

Who Is Better?
Respondent I Am My Spouse We Are Equal
Husband 280 125 100
Wife 292 109 100

(a)

Develop a joint probability table and use it to answer the following questions. (Round your answers to four decimal places.)

Response Totals
I am My Spouse We Are Equal
Spouse Husband
Wife
Totals

(b)

According to the marginal probabilities, what is the most likely response?

I ammy spouse    we are equal

(c)

Given that the respondent is a husband, what is the probability that he feels he is better at getting deals than his wife? (Round your answer to four decimal places.)

(d)

Given that the respondent is a wife, what is the probability that she feels she is better at getting deals than her husband? (Round your answer to four decimal places.)

(e)

Given a response "My spouse" is better at getting deals, what is the probability that the response came from a husband? (Round your answer to four decimal places.)

(f)

Given a response "We are equal," what is the probability that the response came from a husband?

What is the probability that the response came from a wife?

In: Math

Create a C++ program that generates a random number from 1 to 100 using the rand()...

Create a C++ program that generates a random number from 1 to 100 using the rand() function. Give the user a total 5 chances to guess the number. Stop the program and indicate the user guessed the correct number and should be applauded. Also, please find out which guess was the closest to the actual number. For example, if the rand() produces 57 and the user guessed 10, 80, 52, 33 and 44 in their respective turns then print out the user didn’t guess the number and should a 1 mile for closest guess (57 – 52 = 5 miles). (10 points)

don't use arrays please

In: Computer Science

(C++)Order statistics: Write codes for Rand-Select (with linear expected running time) and Select (with linear worst-case...

(C++)Order statistics: Write codes for Rand-Select (with linear expected running time) and Select (with linear worst-case running time). Test your two programs with an input array that is a random permutation of A = {1, 2, 3, …, 99, 100}

In: Computer Science

In the current tax year, suppose that 3% of the millions of individual tax returns have...

In the current tax year, suppose that 3% of the millions of individual tax returns have errors or are fraudulent. Although these errors are often well concealed, let’s suppose that a through IRS audit (done by you of course) will uncover them. If a random 100 tax returns are audited what is the probability that the IRS will uncover at most 4 fraudulent returns? Create an Excel spreadsheet that may give you an idea about this probability. Hint: Use the RAND() function for every tax return. The RAND() function generates a random number between 0 and 1. If the RAND() function gives you a number that is less than or equal to 0.03 then you can assume that the return contains error. Otherwise you can assume that the return does not contain any error. You can press F9 on your keyboard to regenerate a new instance. You may have to create enough instances to come up with a good approximation of the probability value. You can also find the exact probability using Binomial Distribution. What does it mean if an IRS auditor uncovers no more than 3 fraudulent/erroneous returns for every 100 tax returns?

Please in Excel.

In: Statistics and Probability