Questions
**Program needs to be in matlab format** A bowling match consists of ten frames. Each frame...

**Program needs to be in matlab format**

A bowling match consists of ten frames. Each frame except for the tenth consists of one or two balls, or attempts to knock down the ten pins at the end of the alley. Doing so on the first ball of the frame is called a strike, and the second ball of the frame is not rolled. Knocking down all ten pins with both balls (having left some up with the first ball) is called a spare. If both attempts to knock down the pins leave some standing, the frame is called an open frame. A spare in the tenth frame gives the bowler one extra ball; a strike in the tenth gives him or her two extra balls. A bowling score is computed as follows. A strike counts as 10 points plus the sum of the next two balls. A spare counts as 10 points plus the next ball. Any other balls merely count as themselves, as do any bonus balls rolled as a result of a strike or a spare in the tenth frame. Suppose for example that the sequence of balls was 9 1 0 10 10 10 6 2 7 3 8 2 10 9 0 9 1 10 The score for the ten frames would be Frame score ----- ----- 1 10 2 30 3 56 4 74 5 82 6 100 7 120 8 139 9 148 10 168 Your goal in this project is to write a program to accept from standard input the scores for a sequence of balls and output the scores for the ten frames. The program should ask for input for each frame, asking for a second score if the first roll was not a strike. At most bowling alleys, the computerized scoring machines congratulate bowlers when they are doing a good job. When a bowler achieves consecutive strikes, output the following, according to the number of consecutive strikes: No. of consecutive strikes Output 2 Double! 3 Turkey! 4 Hambone! 5 Yahtzee! 6 Wild Turkey! This is a two week homework. For this homework, you will need to come up with an outline of goals for the project. By the end of the first week, your program should be able to do the following things: -Add up scores for the first nine frames (do NOT worry about the tenth frame yet) for both simple bowls (no strikes or spares) and frames that involve spares You will evaluate each other's code in class with several tests to see if the code does indeed successfully calculate simple games and games that involve spares. The complete checklist that you will be evaluated on is below: -The program runs -The program asks for scores one at a time (not for all of them at once) -The program asks for scores for 9 frames -Test the program for the following easy case: Every frame you bowl zero for both times. --Does the program output a final score? --Is the final score correct (i.e. 0)? --Does the program output the score at the end of every frame? -Next, test the program for the next most difficult case: Every frame you bowl a score of 1. -Is the final score correct (i.e. 18)? -Next, test the program to see if it successfully calculates spares. For the first two frames, the bowler bowls a 5 on the first throw and a 5 on the second throw. For frames 3-9, the bowler throws zeros. -Is the final score correct (i.e. 25)? -Lastly, test the program for a case in which you have many spares. For every frame, the bowler bowls a 5 on the first throw and a 5 on the second throw. -Is the final score correct (i.e. 135)? -The program does not crash (i.e. encounter Octave errors) for any of the test cases.

In: Advanced Math

The HIPAA privacy and security rules provide federal protection for individually identifiable health information. Consider a...

The HIPAA privacy and security rules provide federal protection for individually identifiable health information. Consider a physician practice that is transitioning from being paper based to electronic medical records. The receptionist area contains both hanging folders and the desktop computer on which the practice management system runs. During the transition, a patient’s health information (valued asset) will exist in two states: on paper in a hanging folder and in an electronic record on a computer.

Identify and evaluate the risks for each state in terms of:

Threats

Vulnerabilities

Probability of a breach (low, medium, or high).

In your answer include a discussion of authentication, integrity, and accountability

In: Nursing

Archie has to go to school this morning for an important test, but he woke up...

Archie has to go to school this morning for an important test, but he woke up late. He can either take the bus or take his unreliable car. If he takes the car, Archie knows from experience that he will make it to school without breaking down with probability 0.2. However, the bus to school runs late 65% of the time. Archie decides to choose between these options by tossing a coin. Suppose that Archie does, in fact, make it to the test on time. What is the probability that he took his car? Round your answer to two decimal places.

In: Statistics and Probability

The question I have to solve is that when two people A and B run in...

The question I have to solve is that when two people A and B run in the opposite direction at the same speed 0.6c, do they agree with the referee that says the result is draw.
I want to approach this question in a different way so I set that A looks back to B when he runs to the goal and feels like B is running at 0.88c. Then does A think B is slower than A because the relative speed is 0.88c-0.6c=0.22c? Or am I wrong to think this way? I already found other methods such as time dilation so please focus on the first method. Thank you.

In: Physics

the data BaseballTimes contains 4 quantitative variables that might be useful for predicting game "Time". Runs,...

the data BaseballTimes contains 4 quantitative variables that might be useful for predicting game "Time".

Runs, Margin, Pitchers, and Attendance

Game League Runs Margin Pitchers Attendance Time
CLE-DET AL 14 6 6 38774 168
CHI-BAL AL 11 5 5 15398 164
BOS-NYY AL 10 4 11 55058 202
TOR-TAM AL 8 4 10 13478 172
TEX-KC AL 3 1 4 17004 151
OAK-LAA AL 6 4 4 37431 133
MIN-SEA AL 5 1 5 26292 151
CHI-PIT NL 23 5 14 17929 239
LAD-WAS NL 3 1 6 26110 156
FLA-ATL NL 19 1 12 17539 211
CIN-HOU NL 3 1 4 30395 147
MIL-STL NL 12 12 9 41121 185
ARI-SD NL 11 7 10 32104 164
COL-SF NL 9 5 7 32695 180
NYM-PHI NL 15 1 16 45204 317

From among the four predictors choose a model for each of the following goals

a. Maximize the coefficient of determination R^2

b. Maximize the adjusted R^2

c. Minimize Mallow's Cp

d. Considering models a-c, whamt model would you choose to predict game Time and why?

e. Using stepwise procedure(forward backwards, elimination process) find the "best" model

In: Statistics and Probability

Joe must pay liabilities of 1,000 due six months from now and another 1,000 due one...

Joe must pay liabilities of 1,000 due six months from now and another 1,000 due one year from now. There are two available investments which may be purchased in any amount:
6-month bond with face amount of 1,000, 8% nominal annual coupon rate convertible semiannually, and 6 nominal annual yield rate convertible semiannually.

1-year bond with face amount of 1,000, 5% nominal annual coupon rate convertible semiannually, and 7% nominal annual yield rate convertible semiannually.
What is the annual effective yield rate for the investment in the bonds required to exactly (absolutely) match the liabilities?

A. 6.5% B. 6.6% C. 6.7% D. 6.8% E. 6.9%

In: Finance

Match the type of chromosomal mutation with the correct description Question 4 options: tetrasomy monosomy trisomy...

Match the type of chromosomal mutation with the correct description

Question 4 options:

tetrasomy

monosomy

trisomy

allopolyploid

inversion

autopolyploid

nullisomy

translocation

1.

missing both memebers of a homologous pair of chromosomes

2.

missing a single chromosome

3.

having an extra chromosome

4.

gaining a homologous pair of chromosomes

5.

having extra complete sets of chromosomes all coming from the same species

6.

having more than two complete sets of chromosomes where the sets come from different species

7.

chromosome segment's orientation is changed so that the piece that was closest to one end of the chromosome is now closest to the other end

8.

switching of pieces of chromosomes between non homologous chromosomes

In: Biology

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

  1. 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.

    Suppose the company wishes to test whether there is a difference in the two methods at the 0.05 level. Which of the following value(s) would correctly mark the boundary of the rejection region? Select all that apply!

    1.895

    -2.447

    2.447

    -1.96

    1.96

    2.365

In: Statistics and Probability

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.

Suppose the company wishes to test whether there is a difference in the two methods at the 0.05 level. Which of the following value(s) would correctly mark the boundary of the rejection region? Select all that apply!

-2.447

2.365

1.895

1.96

2.447

-1.96

In: Statistics and Probability

A lead inspector at ElectroTech, an electronics assembly shop, wants to convince management that it takes...

A lead inspector at ElectroTech, an electronics assembly shop, wants to convince management that it takes longer, on a per-component basis, to inspect large devices with many components than it does to inspect small devices because it is difficult to keep track of which components have already been inspected. To prove her point, she has collected data on the inspection time (Time in seconds) and the number of components per device (Components) from the last 25 devices. A portion of the data is shown in the accompanying table.

Components Inspection Time
31 83
13 50
9 30
17 59
15 51
11 40
24 71
43 98
8 21
11 42
18 62
7 25
30 79
12 49
10 32
19 63
17 53
18 60
24 71
44 102
17 58
14 44
21 68
13 46
23 69


a-1. Estimate the linear, quadratic, and cubic regression models with Time as the response variable. Report the Adjusted R2 for each model. (Round answers to 4 decimal places.)



a-2. Based on adjusted-R2 only, which model has the best fit?

  • Cubic model

  • Linear model

  • Quadratic model



b. Use the best model to predict the time required to inspect a device with 38 components. (Round coefficient estimates to at least 4 decimal places and final answer to 2 decimal places.)

In: Statistics and Probability