Questions
The following data relates to the size of the electricity bill sent to 7 randomly selected...

The following data relates to the size of the electricity bill sent to 7 randomly selected customers and the
time the customers took to pay the bills.
Customer 1 2 3 4 5 6 7
Size of bill($) 1500 1800 2300 2700 3300 3700 4600
Time to pay (days) 16 21 19 20 24 30 27
a) State the dependent variable and independent variable of the data set.
b) Plot the data on a scatter graph and add a trend line on the scatter graph.
c) Find the correlation coefficient and comment on it.
d) Determine the linear regression equation that can be used to predict how long a bill of a given size
will take to pay.
e) Interpret your equation.
f) Use your equation to predict how long it will take a customer to pay:
i. A bill of $1050, and
ii. A bill of $8000.
What reservations do you have about these predictions?

In: Statistics and Probability

In what ways will China's culture. Politics, economy, and size impact your family? What about the...

In what ways will China's culture. Politics, economy, and size impact your family? What about the United States?

In: Economics

what is the clinical significance of intake and output?what does it tell you about your patient?

what is the clinical significance of intake and output?what does it tell you about your patient?

In: Nursing

Welfare Reform - what are your thoughts about what is proposed below 2? Today employment in...

Welfare Reform - what are your thoughts about what is proposed below 2?

  1. Today employment in American Manufacturing is more likely to look like the rest of America but American manufacturing is going the way of American farming, Lots of output, lots of machines but fewer and fewer workers.
  1. These displaced workers now join the communication and clerical workers and soon perhaps retail, warehouse, and transportation workers.
  1. There will always be work in the future but the jobs will need more and more skills.
  1. We will need higher-skilled workers and this means better schools. But better schools may not be able to overcome bad parenting.
  1. We should organize a system that would subsidies low-income workers more vigorously than the Earn Income Tax Credit currently does. I feel strongly that people who work should not be poor and yet roughly half to the persons held in poverty are working. They just don’t make enough. People who work should have lives of comfort and optimize and the means of investing in their lives for the future.

In: Economics

Please talk about what occurs to attain a fever. What is your body responding to? How...

Please talk about what occurs to attain a fever. What is your body responding to? How can a fever be beneficial? How can it be treated?

In: Anatomy and Physiology

A ladder of length 2L and mass M is positioned on level ground leaning against a...

A ladder of length 2L and mass M is positioned on level ground leaning against a wall such

that the angle between the ladder and the horizontal is α. The coefficient of static friction

between the ladder and the wall and between the ladder and the ground is μstatic = 0.65. The

centre of mass of the ladder is halfway along it.

(b) Draw a diagram indicating all the forces acting on the ladder, and state what each force

represents. Also show the direction of the x- and y-axes you will use. (Hint: there are 2

forces acting at the top of the ladder, 2 forces acting on the bottom of the ladder and 1 force

acting at its centre.)

(c) For the ladder to be in mechanical equilibrium:

(i) Write down equations for the total x- and y-components of the 5 forces acting on the

ladder.

(ii) Consider torques about the centre of the ladder. In which direction (into or out of the

page) does the torque due to each of the 5 forces force act?

(iii) Write down an equation for the sum of the torques about the centre of mass of the

ladder.

(iv) Use your equation for the torques to derive an expression for tan α in terms of the

magnitudes of the forces acting.

(d)(i) If the ladder is just on the point of slipping at both the upper and lower ends, what

can you say about the pair of forces acting at each of the top and bottom of the ladder?

(ii) Hence use this information, with the information from (c)(i) and the expression you have

derived in (c)(iv) to calculate the minimum angle that the ladder can form with the ground

in order for it not to slip. (Hint : In the expression for tan α, you will need to write each of

the forces in terms of one of the normal reaction forces, which then cancel out, leaving an

expression for tan α in terms of μstatic only.)

In: Physics

I am working on a method section for a paper. The experiment in general terms is...

I am working on a method section for a paper. The experiment in general terms is testing to see if there is a significance between two treatment groups in substance abuse recovery. One group is an exercise group the other is not. the sample population is about 100 individuals and 50 in each category. All individuals will be asked yes or no if they relapsed over the last year. What would be the best statistical analysis test for determining if this is chance or if there is significance.

In: Math

A bag contains 4 red balls and 8 green balls. (a). (5’) Three balls are selected...

A bag contains 4 red balls and 8 green balls.

(a). (5’) Three balls are selected from the bag randomly. What is the probability that 1 red ball and 2 green balls are selected?

(b). (10’) Three balls are selected from the bag sequentially without replacement, and the first ball is discarded without observing the color. If the third ball is green, what is the probability that the second ball is red?

(c). (10’) Two balls are selected from the bag randomly. Suppose that you win 3$ for each red ball selected and 1$ for each green ball selected, compute the probability distribution (i.e., probability mass function) and the expected value of the winnings.

(d). (10’) You pick up a ball randomly, and put it back in the bag. You repeat the above procedure for n times. If X of n balls picked are red, you win 3X dollars. Assume that you need to buy a ticket before starting to pick up balls, what is the expected value of a ticket? (Hint: the expected value represents the break-even costs, i.e., the amount of money that you win, on average, per play.)

In: Statistics and Probability

Question You are expected to write a report about your future workplace( nutritionist in a clinic...

Question
You are expected to write a report about your future workplace( nutritionist in a clinic ) . Please go through the
material on “Workplace Health and Safety – Physical Hazards” and online sources to write your
report. The page limit is 1-1.5 page. First, state where you would like to work in the future. Your
report should then include;
- What do you think you will be exposed the most regarding to physical hazards at
workplace?
- What preventative actions you are required to take in order to minimize (or eliminate)
hazard?
- What actions do you think your employer should take in order to minimize (or eliminate)
hazard in the light of principles learned from the course so far?

In: Nursing

Checking Input File for correct line format. So for my C++ assignment, my professor says we...

Checking Input File for correct line format.

So for my C++ assignment, my professor says we need to validate the Input File, if there are white lines and spaces, in which it will ignore them, separated by a comma, and that all data items are there. This will be used in a program where i will store these into an Array, and display them in First name, Last name, and Number of Votes vertical columned categories.

This is a sample of the txt file. My question is, What do i use to be able to take only the names and number and place them into an array. Please explain what each line is doing, even it is not completely obvious. I am a complete beginner.

F=Michael,L=John,V=3342

F=Danny,L=Red,V=2003

F=Hillary,L=Clinton, V=1588

F=Albert,L=Lee,V=5332

F=Steven,L=JohnV=4429

Correct line for the reference: F=John,L=Smith,V=3342

The line errors that your program needs to detect, are as follows:

incorrect token / separator, example in line 5: F=Steven,L=JohnV=4429

(comma missing) – lines with this error need to be ignored

space in token, example in line 3: F=Hillary,X=Clinton, V=1622

lines with this error need to be read, error fixed, data included in your dataset

empty line, example in line 6 – empty lines need to be ignored

This is the sample of the getline code we are suppose to use.

void readFile(Candidate candidates[]) {

string line;

ifstream infile;

infile.open("elections.txt");

while (!infile.eof()) {

getline(infile,line);

// your code here

}

infile.close();

}

In: Computer Science