Questions
In c++   Design and implement a programming (name it SimpleMath) that reads two floating-point numbers (say...

In c++   Design and implement a programming (name it SimpleMath) that reads two floating-point numbers (say R and T) and prints out their values, sum, difference, and product on separate lines with proper labels. Comment your code properly and format the outputs following these sample runs.

In: Computer Science

A fuel injector assembly plant that runs two shifts per day simulated to estimate throughput. To...

A fuel injector assembly plant that runs two shifts per day simulated to estimate throughput. To validate the model, the resulting simulated throughput will be compared against the observed system behavior. By searching the previous year’s database records, it was estimated that the average throughput of the fuel injector assembly plant was 35.6 on a given day. Eight independent replications of the model were run, each of 30 days’ duration, with the following results for average throughput of the assembly plant:
38.9 32.0 37.4 35.1 39.8 31.9 34.2 36.5
(a) Develop and conduct a statistical test to evaluate whether model output is consistent with system behavior. Use the level of significance α = 0.05.
(b) If it is important to detect a difference of 2 throughput per day, what sample size is needed to have a power of 0.90? Interpret your results in terms of model validity or invalidity. (Use α = 0.05)

In: Statistics and Probability

Michelle runs a bakery that sells two kinds of cookies. Michelle knows the bakery must make...

Michelle runs a bakery that sells two kinds of cookies. Michelle knows the bakery must make at least 10 and at most 48 trays of the Nutty Squirrels. The bakery must also make between 3 and 72 trays of the Chocolate Decadence. The trays of Nutty Squirrels take 9 ounces of flour, while trays of Chocolate Decadence require 8 ounces of flour. The bakery only has 864 ounces of flour available. If trays of Nutty Squirrels generate $1.82 in profit, and trays of Chocolate Decadence generate $2.54, how many trays of the cookies should Michelle have the bakery make to get the most profit?

Nutty Squirrels:
Chocolate Decadence:
Best profit:

In: Math

****ANSWERS ARE GIVEN BUT MUST SHOW ALL WORK; PLEASE (NO EXCEL OR SPSS)***** ---------------------------------------------------------------------- 1. To...

****ANSWERS ARE GIVEN BUT MUST SHOW ALL WORK; PLEASE (NO EXCEL OR SPSS)*****

----------------------------------------------------------------------

1. To answer this question, refer to the following hypothetical data collected using replicated measures design.

Subject

1

2

3   

4

5

6

7

8   

9

10

Pre

50

49

37

16

80

42

40

58

31

21

Post

56

50

30

25

90

44

60

71

32

22

A. In a two-tailed test of H 0 using α=0.05, what is p(obtained) for the results shown? *Hint: "two-tailed" means the same thing as nondirectional. ANSWER = 0.0216

B. What would you conclude regarding H0 using a = 0.05 2-tail? ANSWER = Since the p-value (0.0216) < α=0.05, we reject the null hypothesis H

----------------------------------------------------------------------

2. Conduct a one-way ANOVA on the following data.

Group 1

4   

9

10   

Group 2

11

11

10

Group 3

1

6

4

What is your conclusion (use an alpha)? ANSWER= Reject H0

----------------------------------------------------------------------

3. Given the following data:

Variable B

Variable A

1   

2

3   



1

5

4

4

2

6

9

1

3

7

4

1

5

2

3

4



2

6

6

5

2

7

7

3

4

5

3

3

4

2

3

8

A) What is the value of F crit for the column effect (variable b ) *Hint: don't forget to evaluate a numerator (for variable B and denominator df within) ANSWER = 3.40

B) Given the following data, what is the value of the SS total? ANSWER = 121.8667

In: Math

State runs a lottery once every week in which six numbers are randomly selected from 40...

State runs a lottery once every week in which six numbers are randomly selected from 40 without replacement. A player chooses six numbers before the state’s sample is selected.

(a) What is the probability that five of the six numbers chosen by a player appear in the state’s sample?

(b) If a player enters one lottery each week, what is the probability that he will win at least once in the next 48 weeks?

In: Statistics and Probability

You are a songwriter, tired and upset because of all the lame easy rhymes that are...

You are a songwriter, tired and upset because of all the lame easy rhymes that are in the most popular songs today. You decide to write a program that checks if two words rhyme. The program ignores and discards perfect rhymes such as rat and bat or glove and dove. The program returns a rhyme percentage based on the pronunciation of the words.

Because the program ignores perfect rhymes, words that rhyme perfectly will receive a score higher than a certain amount. If a pair of pronunciations receive a score of 75% or higher, it is considered a perfect rhyme. In such a case the program must return -1. However, if the pronunciations receive a score of 40% or lower, the rhyme is too weak to use and the program must return -999. Otherwise the program must return the rhyme (percentage) score.

A rhyme score is calculated by comparing the letters of each syllable of two words:

  1. If one letter matches, that should add a score of 0 to the overall rhyme score
  2. If two consecutive letters match a score of 2 should be added to the overall rhyme score.
  3. If three consecutive letters match a score of 3 should be added, and so on.
  4. An underscore "_" represents the ending and starting of two syllables.

The rhyme score is then determined by the total score divided by the total number of letters in the largerpronunciation (excluding the underscores if any).

Write a function bRhymes() that accepts 2 pronunciations as strings and returns the rhyme percentage rounded to 1 decimal place, -1 if it is a perfect rhyme or -999 if the rhyme is too weak.

Code is already provided for the program which runs your function  bRhymes().

Input Format

[PROGRAM INPUT]

Two lines each containing a string, such as ahi_dee_uhl_ahiz (in Line 1) and ree_uhl_ahiz (in Line 2). The first line for the pronunciation of the first word and the second line for the pronunciation of the second word. An example of the exact input would appear as:

ahi_dee_uhl_ahiz

ree_uhl_ahiz

.

[FUNCTION bRhymes() INPUT]

2 strings which represents rhyme pronunciations

Constraints



where w1 and w2 are pronunciations

Output Format

[PROGRAM OUTPUT]

A single float, such as 69.2 which represents the rhyme percentage rounded to 1 decimal place, -1 if it is a perfect rhyme or -999 if the rhyme is too weak. An example of the exact output would appear as:

69.2

In: Computer Science

Charger Books generates $60 million in FCF. It wants to go public (conduct an IPO, initial...

Charger Books generates $60 million in FCF. It wants to go public (conduct an IPO, initial public offering of common stock) and have its new stock trade on the NASDAQ. You’ve done the research to know that companies like this trade at a seven (7) times multiple of FCF. Charger Books has $40 million of debt outstanding and $10 million of preferred stock. Calculate the intrinsic value per COMMON share if the company plans to have 50 million common shares outstanding after the deal. Show your answer to TWO decimals.

In: Finance

A company that makes language learning software wants to determine which of two approaches (Method A...

A company that makes language learning software wants to determine which of two approaches (Method A or Method B) to learning vocabulary would lead to the largest number of recalled words. The company wishes to evaluate the methods on 7 different languages (since languages differ in difficulty). Seven individuals, one per language, were recruited to learn words using Method A, and 7 individuals, one per language, were recruited to learn words using Method B.

After one month, each person completed a test of word recall. The data, representing the number of words recalled, are shown in the table below.

Method A Method B
13 30
10 36
8 19
3 36
22 31
8 8
22 37

The company wishes to test whether there is a difference in the average number of words recalled between the two methods. Calculate the test statistic for this hypothesis to two decimal places. Take all calculations toward the final answer to three (3) decimal places.

In: Statistics and Probability

Borb b about to play a two-game che:s:s match with an opponent, and wants to find...

Borb b about to play a two-game che:s:s match with an opponent, and wants to find the strategy that maximizes his winning chances. Each game ends with either a win by one of the players, or a draw. If the score is tied at the end of the two games, the match goes into sudden-death mode, and the players continue to play until the first time one of them wins a game (and the match). Boris has two playing styles. timid and bold, and he can choose one of the two at will in each game. no matter what style he chose in previous games. With timid play. he draws with probability Pd > 0, and he loses with probability 1 -Pd. With bold play. he wins with probability pw, and he loses with probability 1 -pw' Boris will always play bold during sudden death, but may switch style between games 1 and 2. (a) Find the probability that Boris wins the match for each of the following strategies: (i) Play bold in both games 1 and 2. (ii) Play timid in both games 1 and 2. (iii) Play timid whenever he is ahead in the score. and play bold otherwise. (b) Assume that pw < 1/2, so Boris is the worse player, regardless of the playing style he adopts. Show that with the strategy in (iii) above. and depending on the values of pw and Pd. Boris may have a better than a 50-50 chance to win the match. How do you explain this advantage?

In: Statistics and Probability

Why U.S. Taxpayers Are Last-Resort Funders of Much of the Financial Industry 6. Even though the...

  • Why U.S. Taxpayers Are Last-Resort Funders of Much of the Financial Industry

6. Even though the federal government requires depository institutions to contribute premiums to the FDIC, who ultimately has to provide sufficient funds if the FDIC runs out of cash?

In: Economics