Questions
Suppose a random sample of 500 adults from Santa Clara County answered this question: “in general,...

  1. Suppose a random sample of 500 adults from Santa Clara County answered this question: “in general, do you believe in ghosts?” 225 responded that they believe in ghosts. Test whether it is plausible that, if you could ask all adults in the Santa Clara County this question, less than half would say they believe in ghosts. Use the significance level of 0.01 for this test. Do not forget to follow those five steps.

  2. Suppose you believe that your long-time supplier of face masks produced less than 2% defective face masks.

    1. a) What are your null and alternative hypotheses for this problem?

    2. b) How do we commit a Type I error for this case?

    3. c) How do we commit a Type II error for this situation?

In: Statistics and Probability

A The agreement of the trial balance totals is an indication that all transactions have been...

A
The agreement of the trial balance totals is an indication that all transactions have been properly
recorded in the books of accounts. Do you agree with this statement?
Required:
Outline 4 reasons to justify your response.
B
ABC Ltd started business on 1/1/14, and its financial year ends on 31st December each year.
The following information was extracted from the company’s asset register.
DATE TRANSACTION AMOUNT (GHS)
2016 January, 1 Purchased one motor van 58,500
2016 September, 1 Purchased two motor vans 78,000 each
2018 March, 1 Purchased one motor van 45,200
2018 May, 2 Sold the motor van purchased
in January,2016
18,240
2019 April 1 Purchased three motor vans 62,000 each
Additional Information
The company’s policy is to depreciate Motor vehicles at a rate of 20% per annum on cost.
You are required to prepare:
i) The Motor vehicles account (2016-2019)
ii) Provision for depreciation account (2016-2019)
iii) Disposal account for 2018
iv) Statement of profit or loss extract for 2018 and 2019
v) Statement of financial position extract for 2018 and 2019

In: Accounting

A The agreement of the trial balance totals is an indication that all transactions have been...

A

The agreement of the trial balance totals is an indication that all transactions have been properly recorded in the books of accounts. Do you agree with this statement? Required: Outline 4 reasons to justify your response. B ABC Ltd started business on 1/1/14, and its financial year ends on 31st December each year. The following information was extracted from the company’s asset register. DATE TRANSACTION AMOUNT (GHS) 2016 January, 1 Purchased one motor van 58,500 2016 September, 1 Purchased two motor vans 78,000 each 2018 March, 1 Purchased one motor van 45,200 2018 May, 2 Sold the motor van purchased in January 2016 18,240 2019 April 1 Purchased three motor vans 62,000 each Additional Information The company’s policy is to depreciate Motor vehicles at a rate of 20% per annum on cost. You are required to prepare: i) The Motor vehicles account (2016-2019) ii) Provision for depreciation account (2016-2019) iii) Disposal account for 2018 iv) Statement of profit or loss extract for 2018 and 2019 (1 mark) v) Statement of financial position extract for 2018 and 2019

In: Accounting

Compare and contrast the Ni-NTA chromatography experiment and the HIC technique . Name three general techniques...

Compare and contrast the Ni-NTA chromatography experiment and the HIC technique .

Name three general techniques or tools used in the Ni-NTA chromatography

What is histidine? Why is His6 such a popular protein tag for purification?

Summarize how the scientists produced the different variants of His6-GFP protein samples for purification.

How do we use His6/Ni-NTA interactions in experiments?

In: Biology

I need to be able to store 5000 names into an array. I currently have a...

I need to be able to store 5000 names into an array. I currently have a code that generates one random name. I just need to generate an array of 5000 the same way.

#include <cstdlib>
#include <ctime>
#include <iostream>
#include <iomanip>

using namespace std;

string RandomFirstGen(int namelength);

int main(){

srand(time(NULL));
int namelength = rand()%(16-8+1)+8;
cout<<"name is: "<<RandomFirstGen(namelength)<<endl;

return 0;
}

string RandomFirstGen(int namelength){
for (int i=0; i<=5000 ; i++){
const int MAX = 26;
char alphabet[MAX] = {
'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z'};
string name = "";
for (int i = 0; i < namelength; i++)
name = name + alphabet[rand() % MAX];
return name;

}
}

In: Computer Science

A scientist carry out an experiment to examine living human fibroblast cells in cell culture and...

A scientist carry out an experiment to examine living human fibroblast cells in cell culture and tag them with a membrane potential sensitive dye, TMRM. He completed measurements at 23 ºC using a confocal microscope. Observations yielded an average increase in dye brightness of 236-fold upon adding oligomycin to the mitochondria in the cells. The initial internal concentration of the TMRM dye was 9,271 nM. The external (extracellular) dye concentration remained unchanged at 154 nM. What is the membrane potential of the inhibited, but fully energized mitochondria? F = faraday constant = 96,487 coulombs mol-1 = 96.487 kJ mol-1 V-1 = 23.06 kcal mol-1 V-1; R (gas constant) = 8. 3143 J deg-1 mol-1; (delta psi) = - (RT/F) ln (Cin/ Cout ).

In: Other

The following is a chart of 25 baseball players' salaries and statistics from 2016. Player Name...

The following is a chart of 25 baseball players' salaries and statistics from 2016.

Player Name RBI's HR's AVG Salary (in millions)
Joe Mauer 49 11 0.261 23.000
Robinson Cano 103 39 0.298 24.050
Leonys Martin 47 15 0.245 4.150
Brandon Crawford 84 12 0.275 6.000
Colby Rasmus 54 15 0.206 15.800
Carlos Gonzalez 100 25 0.298 17.454
Matt Kemp 108 35 0.268 21.500
Prince Fielder 44 8 0.212 18.000
Mark Teixeira 44 15 0.204 23.125
Yoenis Cespedes 86 31 0.284 27.500
Chris Iannetta 24 7 0.210 4.550
Ryan Howard 59 25 0.196 25.000
Matt Wieters 66 17 0.243 15.800
Jayson Werth 70 21 0.244 21.571
Justin Smoak 34 14 0.217 3.900
Adrian Gonzalez 90 18 0.285 21.857
Coco Crisp 55 13 0.231 11.000
Ben Zobrist 76 18 0.272 10.500
J.D. Martinez 68 22 0.307 6.750
Aaron Hill 38 10 0.262 12.000
Adrian Beltre 104 32 0.300 18.000
David Ortiz 127 38 0.315 16.000
Chris Davis 84 38 0.221 21.119
Evan Gattis 72 32 0.251 3.300
Curtis Granderson 59 30 0.237 16.000



In order to have correlation with 95% significance, what is the critical r-value that we would like to have?  

(Round to three decimal places for all answers on this assignment.)

RBI vs. Salary

Complete a correlation analysis, using RBI's as the x-value and salary as the y-value.

Correlation coefficient:

Regression Equation: y=y=    

Do you have significant correlation? Select an answer Yes No

HR vs. Salary

Complete a correlation analysis, using HR's as the x-value and salary as the y-value.

Correlation coefficient:

Regression Equation: y=y=       

Do you have significant correlation? Select an answer Yes No   

AVG vs. Salary

Complete a correlation analysis, using AVG as the x-value and salary as the y-value.

Correlation coefficient:   

Regression Equation: y=y=       

Do you have significant correlation? Select an answer Yes No

Prediction

Based on your analysis, if you had to predict a player's salary, which method would be the best? Select an answer Regression equation with RBI's Regression equation with HR's Regression equation with AVG The average of the 25 salaries

Using that method, predict the salary for Ryan Braun. His stats were:

RBI: 91

HR: 31

AVG: 0.305

Based on your analysis, his predicted salary would be: $ million  

His actual salary was $20.000 million.

In: Statistics and Probability

10.8 LAB*: Program: Data visualization (1) Prompt the user for a title for data. Output the...

10.8 LAB*: Program: Data visualization

(1) Prompt the user for a title for data. Output the title. (1 pt)

Ex:

Enter a title for the data:
Number of Novels Authored
You entered: Number of Novels Authored


(2) Prompt the user for the headers of two columns of a table. Output the column headers. (1 pt)

Ex:

Enter the column 1 header:
Author name
You entered: Author name

Enter the column 2 header:
Number of novels
You entered: Number of novels


(3) Prompt the user for data points. Data points must be in this format: string, int. Store the information before the comma into a string variable and the information after the comma into an integer. The user will enter -1 when they have finished entering data points. Output the data points. Store the string components of the data points in an ArrayList of strings. Store the integer components of the data points in a second ArrayList of integers. (4 pts)

Ex:

Enter a data point (-1 to stop input):
Jane Austen, 6
Data string: Jane Austen
Data integer: 6


(4) Perform error checking for the data point entries. If any of the following errors occurs, output the appropriate error message and prompt again for a valid data point.

  • If entry has no comma
    • Output: Error: No comma in string. (1 pt)
  • If entry has more than one comma
    • Output: Error: Too many commas in input. (1 pt)
  • If entry after the comma is not an integer
    • Output: Error: Comma not followed by an integer. (2 pts)


Ex:

Enter a data point (-1 to stop input):
Ernest Hemingway 9
Error: No comma in string.

Enter a data point (-1 to stop input):
Ernest, Hemingway, 9
Error: Too many commas in input.

Enter a data point (-1 to stop input):
Ernest Hemingway, nine
Error: Comma not followed by an integer.

Enter a data point (-1 to stop input):
Ernest Hemingway, 9
Data string: Ernest Hemingway
Data integer: 9


(5) Output the information in a formatted table. The title is right justified with a minimum of 33 characters. Column 1 is left justified with a minimum of 20 characters. Column 2 is right justified with a minimum of 23 characters. (3 pts)

Ex:

        Number of Novels Authored
Author name         |       Number of novels
--------------------------------------------
Jane Austen         |                      6
Charles Dickens     |                     20
Ernest Hemingway    |                      9
Jack Kerouac        |                     22
F. Scott Fitzgerald |                      8
Mary Shelley        |                      7
Charlotte Bronte    |                      5
Mark Twain          |                     11
Agatha Christie     |                     73
Ian Flemming        |                     14
J.K. Rowling        |                     14
Stephen King        |                     54
Oscar Wilde         |                      1


(6) Output the information as a formatted histogram. Each name is right justified with a minimum of 20 characters. (4 pts)

Ex:

         Jane Austen ******
     Charles Dickens ********************
    Ernest Hemingway *********
        Jack Kerouac **********************
 F. Scott Fitzgerald ********
        Mary Shelley *******
    Charlotte Bronte *****
          Mark Twain ***********
     Agatha Christie *************************************************************************
        Ian Flemming **************
        J.K. Rowling **************
        Stephen King ******************************************************
         Oscar Wilde *

In: Computer Science

use c++ (1) Prompt the user for a title for data. Output the title. (1 pt)...

use c++

(1) Prompt the user for a title for data. Output the title. (1 pt)

Ex:

Enter a title for the data:
Number of Novels Authored
You entered: Number of Novels Authored


(2) Prompt the user for the headers of two columns of a table. Output the column headers. (1 pt)

Ex:

Enter the column 1 header:
Author name
You entered: Author name

Enter the column 2 header:
Number of novels
You entered: Number of novels


(3) Prompt the user for data points. Data points must be in this format: string, int. Store the information before the comma into a string variable and the information after the comma into an integer. The user will enter -1 when they have finished entering data points. Output the data points. Store the string components of the data points in a vector of strings. Store the integer components of the data points in a vector of integers. (4 pts)

Ex:

Enter a data point (-1 to stop input):
Jane Austen, 6
Data string: Jane Austen
Data integer: 6


(4) Perform error checking for the data point entries. If any of the following errors occurs, output the appropriate error message and prompt again for a valid data point.

  • If entry has no comma
    • Output: Error: No comma in string. (1 pt)
  • If entry has more than one comma
    • Output: Error: Too many commas in input. (1 pt)
  • If entry after the comma is not an integer
    • Output: Error: Comma not followed by an integer. (2 pts)


Ex:

Enter a data point (-1 to stop input):
Ernest Hemingway 9
Error: No comma in string.

Enter a data point (-1 to stop input):
Ernest, Hemingway, 9
Error: Too many commas in input.

Enter a data point (-1 to stop input):
Ernest Hemingway, nine
Error: Comma not followed by an integer.

Enter a data point (-1 to stop input):
Ernest Hemingway, 9
Data string: Ernest Hemingway
Data integer: 9


(5) Output the information in a formatted table. The title is right justified with a setw() value of 33. Column 1 has a setw() value of 20. Column 2 has a setw() value of 23. (3 pts)

Ex:

        Number of Novels Authored
Author name         |       Number of novels
--------------------------------------------
Jane Austen         |                      6
Charles Dickens     |                     20
Ernest Hemingway    |                      9
Jack Kerouac        |                     22
F. Scott Fitzgerald |                      8
Mary Shelley        |                      7
Charlotte Bronte    |                      5
Mark Twain          |                     11
Agatha Christie     |                     73
Ian Flemming        |                     14
J.K. Rowling        |                     14
Stephen King        |                     54
Oscar Wilde         |                      1


(6) Output the information as a formatted histogram. Each name is right justified with a setw() value of 20. (4 pts)

Ex:

         Jane Austen ******
     Charles Dickens ********************
    Ernest Hemingway *********
        Jack Kerouac **********************
 F. Scott Fitzgerald ********
        Mary Shelley *******
    Charlotte Bronte *****
          Mark Twain ***********
     Agatha Christie *************************************************************************
        Ian Flemming **************
        J.K. Rowling **************
        Stephen King ******************************************************
         Oscar Wilde *

In: Computer Science

9.6 Ch 9 Program: Data visualization (in C) (1) Prompt the user for a title for...

9.6 Ch 9 Program: Data visualization (in C)

(1) Prompt the user for a title for data. Output the title. (1 pt)

Ex:

Enter a title for the data:
Number of Novels Authored
You entered: Number of Novels Authored


(2) Prompt the user for the headers of two columns of a table. Output the column headers. (1 pt)

Ex:

Enter the column 1 header:
Author name
You entered: Author name

Enter the column 2 header:
Number of novels
You entered: Number of novels


(3) Prompt the user for data points. Data points must be in this format: string, int. Store the information before the comma into a string variable and the information after the comma into an integer. The user will enter -1 when they have finished entering data points. Output the data points. Store the string components of the data points in an array of strings. Store the integer components of the data points in an array of integers. (4 pts)

Ex:

Enter a data point (-1 to stop input):
Jane Austen, 6
Data string: Jane Austen
Data integer: 6


(4) Perform error checking for the data point entries. If any of the following errors occurs, output the appropriate error message and prompt again for a valid data point.

  • If entry has no comma
    • Output: Error: No comma in string. (1 pt)
  • If entry has more than one comma
    • Output: Error: Too many commas in input. (1 pt)
  • If entry after the comma is not an integer
    • Output: Error: Comma not followed by an integer. (2 pts)


Ex:

Enter a data point (-1 to stop input):
Ernest Hemingway 9
Error: No comma in string.

Enter a data point (-1 to stop input):
Ernest, Hemingway, 9
Error: Too many commas in input.

Enter a data point (-1 to stop input):
Ernest Hemingway, nine
Error: Comma not followed by an integer.

Enter a data point (-1 to stop input):
Ernest Hemingway, 9
Data string: Ernest Hemingway
Data integer: 9


(5) Output the information in a formatted table. The title is right justified with a width of 33. Column 1 has a width of 20. Column 2 has a width of 23. (3 pts)

Ex:

        Number of Novels Authored
Author name         |       Number of novels
--------------------------------------------
Jane Austen         |                      6
Charles Dickens     |                     20
Ernest Hemingway    |                      9
Jack Kerouac        |                     22
F. Scott Fitzgerald |                      8
Mary Shelley        |                      7
Charlotte Bronte    |                      5
Mark Twain          |                     11
Agatha Christie     |                     73
Ian Flemming        |                     14
J.K. Rowling        |                     14
Stephen King        |                     54
Oscar Wilde         |                      1


(6) Output the information as a formatted histogram. Each name is right justified with a width of 20. (4 pts)

Ex:

         Jane Austen ******
     Charles Dickens ********************
    Ernest Hemingway *********
        Jack Kerouac **********************
 F. Scott Fitzgerald ********
        Mary Shelley *******
    Charlotte Bronte *****
          Mark Twain ***********
     Agatha Christie *************************************************************************
        Ian Flemming **************
        J.K. Rowling **************
        Stephen King ******************************************************
         Oscar Wilde *

In: Computer Science