Questions
Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per...

Question 4

Researchers studied four different blends of gasoline to determine their effect on miles per gallon (MPG) of a car. An experiment was conducted with a total of 28 cars of the same type, model, and engine size, with 7 cars randomly assigned to each treatment group. The gasoline blends are referred to as A,B,C, and D.The MPGs are shown below in the table

Gasoline Miles Per

Blend Gallon

A 26 28 29 23 24 25 26

B 27 29 31 32 25 24 28

C 29 31 32 34 24 28 27

D 30 31 37 38 36 35 29

We want to test the null hypothesis that the four treatment groups have the same mean MPG vs. the alternative hypothesis that not all of the means are equal.

a) Before carrying out the analysis, check the validity of any assumptions necessary for the analysis you will be doing. Write a brief statement of your findings

b) Test the null hypothesis that the four gasoline blends have the same mean MPGs, i.e., Test Ho: ua=ub=uc=ud vs. the alternative hypothesis Ha: not all the means are equal.

c) If your hypothesis test in (b) indicates a significant difference among the treatment groups, conduct pairwise multiple comparison tests on the treatment group means. Underline groups of homogeneous means.

d) Briefly state your conclusions.

( Use IBM SPSS for all calculations)

In: Statistics and Probability

Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per...

Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per gallon (MPG) of a car. An experiment was conducted with a total of 28 cars of the same type, model, and engine size, with 7 cars randomly assigned to each treatment group. The gasoline blends are referred to as A,B,C, and D.The MPGs are shown below in the table Gasoline Miles Per Blend Gallon A 26 28 29 23 24 25 26 B 27 29 31 32 25 24 28 C 29 31 32 34 24 28 27 D 30 31 37 38 36 35 29 We want to test the null hypothesis that the four treatment groups have the same mean MPG vs. the alternative hypothesis that not all of the means are equal. a) Before carrying out the analysis, check the validity of any assumptions necessary for the analysis you will be doing. Write a brief statement of your findings b) Test the null hypothesis that the four gasoline blends have the same mean MPGs, i.e., Test Ho: ua=ub=uc=ud vs. the alternative hypothesis Ha: not all the means are equal. c) If your hypothesis test in (b) indicates a significant difference among the treatment groups, conduct pairwise multiple comparison tests on the treatment group means. Underline groups of homogeneous means. d) Briefly state your conclusions. ( Use IBM SPSS for all calculations)

In: Statistics and Probability

Write a standalone function partyVolume() that takes accepts one argument, a string containing the name of...

  1. Write a standalone function partyVolume() that takes accepts one argument, a string containing the name of a file. The objective of the function is to determine the a Volume object that is the result of many people at a party turning the Volume up and down. More specifically: the first line of the file is a number that indicates the initial value of a Volume object. The remaining lines consist of a single character followed by a space followed by a number. The character will be one of ‘U” or ‘D’ which stand for “up” and “down” respectively. The function will create a new Volume object and then process each line of the file by calling the appropriate method of the Volume object which changes the value of the Volume. The function then returns the final Volume object.   Guidelines/hints:
    1. This is a standalone function, it should NOT be inside (indented within) the class. It should be listed in the module after the Volume class and without indentation.
    2. Note that the first line of the file will be treated differently than all the other lines. Probably the easiest way to do this is to 1) open the file, 2) call the .readline() method (no s!) which reads a single line, the initial value of the Volume, then 3) call the .readlines() method which reads the rest of the lines. Item 2) will be used to set the initial Volume and 3) will be iterated over to represent turning the volume up and down some number of time.
    3. Make sure you return the final Volume object.

##### Volume #####

# set and get

>>> v = Volume()

>>> v.set(5.3)

>>> v

Volume(5.3)

>>> v.get()

5.3

>>> v.get()==5.3 # return not print

True

>>>

# __init__, __repr__, up, down

>>> v = Volume(4.5) # set Volume with value

>>> v

Volume(4.5)

>>> v.up(1.4)

>>> v

Volume(5.9)

>>> v.up(6) # should max out at 11

>>> v

Volume(11)

>>> v.down(3.5)

>>> v

Volume(7.5)

>>> v.down(10) # minimum must be 0

>>> v

Volume(0)

# default arguments for __init__

>>> v = Volume() # Volume defaults to 0

>>> v

Volume(0)

# can compare Volumes using ==

>>> # comparisons

>>> v = Volume(5)

>>> v.up(1.1)

>>> v == Volume(6.1)

True

>>> Volume(3.1) == Volume(3.2)

False

# constructor cannot set the Volume greater

# than 11 or less than 0

>>> v = Volume(20)

>>> v

Volume(11)

>>> v = Volume(-1)

>>> v

Volume(0)

>>>

##### partyVolume #####

>>> partyVolume('party1.txt')

Volume(4)

>>> partyVolume('party2.txt')

Volume(3.75)

>>> partyVolume('party3.txt')

Volume(0.75)

# make sure return not print

>>> partyVolume('party1.txt')==Volume(4) # return not print

True

>>> partyVolume('party2.txt')==Volume(3.75)

True

>>> partyVolume('party3.txt')==Volume(0.75)

True

use python3.7

In: Computer Science

What does the author mean by Dubois' Double Consciousness? 


What does the author mean by Dubois' Double Consciousness? 


In: Psychology

Compare and contrast the advantages and disadvantages of the following research methods: Experimental Method Naturalistic Observation...

Compare and contrast the advantages and disadvantages of the following research methods:
Experimental Method
Naturalistic Observation
Correlational Method
Clinical Method
Survey Method
2. Which research method(s) were used in the Tuskegee Study? Provide an example of how this method was used in the study.

3. The study asks a basic research question: "Is the rate and progression of syphilis in the Black male, the same as that for the White male? "Is the rate and progression of syphilis in the Black male the same for the White male? Is that in your opinion a legitimate scientific question? Explain.

4. What was the full name of the study and what was it intended to examine? How long was the study?

5.Define the term informed consent. Apply to the movie. Were participants given informed consent? Explain.

6. What did you think about the Tuskegee Experiment? How did this movie make you feel?

the name of the movie is Ms. Evers' Boys

the name of the movie is Ms Evers' Boys

In: Finance

1.Why plastic beams are not used to construct buildings and bridges?List THREE properties that make plastics...

1.Why plastic beams are not used to construct buildings and bridges?List THREE properties that make

plastics unsuitable for this application?

2.How a temperature drop of 50 C below 0 C would affect polythene bottle? Explain.

3.What type of bonding explains function of adhesives?

4.Can ceramic materials be used as material for the beams? If not, explain why? List properties that make

them unsuitable for this application?

In: Mechanical Engineering

Q1) The following are four examples of technical engineering knowledge areas that are required to be...

Q1) The following are four examples of technical engineering knowledge areas that are required to be mastered by an engineer involved in the design of steel bridges: 1……………………………………

2 ……………………… 3 …………………………… 4……………………

a) The degree to which a person is able to achieve objectives is referred to as …………………

b) Accomplishing tasks with optimizing the use of resources is referred to as ………………….

c) . ………………….. may be defined as a mental position with regard to a fact or state; a feeling or emotion towards a fact or state. This represents one category of competencies.

In: Civil Engineering

this won't compile package com.test; public class CatalogItem { private String title; private double price; public...

this won't compile

package com.test;

public class CatalogItem {

private String title;

private double price;

public CatalogItem(String title, double price) {

super();

this.title = title;

this.price = price;

}

public String getTitle() {

return title;

}

public double getPrice() {

return price;

}

}

//Book.java

package com.test;

public class Book extends CatalogItem {

private String author;

private int ISBN;

public Book(String title, double price, String author, int iSBN) {

super(title, price);

this.author = author;

ISBN = iSBN;

}

public String getAuthor() {

return author;

}

public int getISBN() {

return ISBN;

}

@Override

public String toString() {

return "Title: " + getTitle() + " | Author: "+author + " | Price: " + getPrice() + " ISBN: "+ISBN;

}

}

//AudioBook.java

package com.test;

public class AudioBook extends Book {

private double runningTime;

public AudioBook(String title, double price, String author, int iSBN, double runningTime) {

super(title, price, author, iSBN);

this.runningTime = runningTime;

}

public double getRunningTime() {

return runningTime;

}

public double getP() {

return getPrice()*0.90;

}

@Override

public String toString() {

return "Title: " + getTitle() + " | Author: "+getAuthor() + " | Price: " + getP() + " | ISBN: "+getISBN() + " | running time: "+runningTime;

}

}

//DVD.java

package com.test;

public class DVD extends CatalogItem {

private String director;

private int year;

private int dvdcode;

public DVD(String title, double price, String director, int year, int dvdcode) {

super(title, price);

this.director = director;

this.year = year;

this.dvdcode = dvdcode;

}

public String getDirector() {

return director;

}

public int getYear() {

return year;

}

public int getDvdcode() {

return dvdcode;

}

@Override

public String toString() {

return "Title: " + getTitle() + " | Director: "+director + " | Price: " + getPrice() + " | Year: "+year + " | DvdCode: "+dvdcode;

}

}

//Driver.java

package com.test;

import java.util.ArrayList;

import java.util.Scanner;

public class Driver {

public static ArrayList<Book> booklist = new ArrayList<>();

public static ArrayList<DVD> dvdlist = new ArrayList<>();

public static void display()

{

for(int i=0;i<booklist.size();i++)

{

if(booklist.get(i) instanceof AudioBook)

System.out.println((AudioBook)(booklist.get(i)));

else

System.out.println(booklist.get(i));

}

System.out.println("-------------------------------------------------------------------------------");

for(int i=0;i<dvdlist.size();i++)

{

System.out.println(dvdlist.get(i));

}

}

//method to find book

public static boolean findBook(int isbn)

{

for(int i=0;i<booklist.size();i++)

{

if(booklist.get(i).getISBN() == isbn)

return true;

}

return false;

}

//method to find book

public static boolean findDVD(int dvdcode)

{

for(int i=0;i<dvdlist.size();i++)

{

if(dvdlist.get(i).getDvdcode() == dvdcode)

return true;

}

return false;

}

public static void main(String[] args) {

System.out.println("Welcome to the comets Books and DVDs store(Catalog Section)");

int option;

String title;

double price;

String author;

int isbn;

double runningTime;

String director;

int year;

int dvdcode;

Scanner sc = new Scanner(System.in);

while (true) {

System.out.println("Choose from the following option:");

System.out.println("1-Add Book");

System.out.println("2-Add AudioBook");

System.out.println("3-Add DVD");

System.out.println("4-Remove Book");

System.out.println("5-Remove DVD");

System.out.println("6-Display Catalog");

System.out.println("9-Exit Store");

option = sc.nextInt();

if(option == 1)

{

System.out.println("Please enter Book isbn");

isbn = sc.nextInt();

if(findBook(isbn))

continue;

System.out.println("Please enter Book title");

title = sc.next();

System.out.println("Please enter Book price");

price = sc.nextDouble();

while(price < 0) {

System.out.println("Please enter Book valid price");

price = sc.nextDouble();

}

System.out.println("Please enter Book author");

author = sc.next();

Book b = new Book(title, price, author, isbn);

booklist.add(b);

}

else if(option == 2)

{

System.out.println("Please enter Audio Book isbn");

isbn = sc.nextInt();

if(findBook(isbn))

continue;

System.out.println("Please enter Audio Book title");

title = sc.next();

System.out.println("Please enter Audio Book price");

price = sc.nextDouble();

while(price < 0) {

System.out.println("Please enter Audio Book valid price");

price = sc.nextDouble();

}

System.out.println("Please enter Audio Book author");

author = sc.next();

System.out.println("Please enter Audio Book running time");

runningTime = sc.nextDouble();

while(runningTime < 0) {

System.out.println("Please enter Audio Book valid running time");

runningTime = sc.nextDouble();

}

AudioBook b = new AudioBook(title, price, author, isbn,runningTime);

booklist.add(b);

}

else if(option == 3)

{

System.out.println("Please enter DVD code");

dvdcode = sc.nextInt();

if(findDVD(dvdcode))

continue;

System.out.println("Please enter DVD title");

title = sc.next();

System.out.println("Please enter DVD price");

price = sc.nextDouble();

System.out.println("Please enter DVD director");

director = sc.next();

System.out.println("Please enter DVD year");

year = sc.nextInt();

DVD d = new DVD(title, price, director, year, dvdcode);

dvdlist.add(d);

}

else if(option == 4)

{

System.out.println("Enter isbn number to delete book");

isbn = sc.nextInt();

boolean remove = false;

for(int i=0;i<booklist.size();i++){

if(booklist.get(i).getISBN() == isbn){

booklist.remove(i);

remove = true;

}

}

if(remove == false)

System.out.println("The Book doesn't exist in catalog");

display();

}

else if(option == 5)

{

System.out.println("Enter dvd code to delete DVD");

dvdcode = sc.nextInt();

boolean remove = false;

for(int i=0;i<dvdlist.size();i++){

if(dvdlist.get(i).getDvdcode() == dvdcode){

dvdlist.remove(i);

remove = true;

}

}

if(remove == false)

System.out.println("The DVD doesn't exist in catalog");

display();

}

else if(option == 6)

{

display();

}

else if(option == 9)

break;

else

System.out.println("This option is not acceptable");

}

}

}

In: Computer Science

Sage Hill Golf Inc. was formed on July 1, 2016, when Matt Magilke purchased the Old...

Sage Hill Golf Inc. was formed on July 1, 2016, when Matt Magilke purchased the Old Master Golf Company. Old Master provides video golf instruction at kiosks in shopping malls. Magilke plans to integrate the instructional business into his golf equipment and accessory stores. Magilke paid $770,000 cash for Old Master. At the time, Old Master’s balance sheet reported assets of $670,000 and liabilities of $190,000 (thus owners’ equity was $480,000). The fair value of Old Master’s assets is estimated to be $830,000. Included in the assets is the Old Master trade name with a fair value of $12,000 and a copyright on some instructional books with a fair value of $24,000. The trade name has a remaining life of 5 years and can be renewed at nominal cost indefinitely. The copyright has a remaining life of 40 years.

A) Prepare the intangible assets section of Sage Hill Golf Inc. at December 31, 2016.

B) How much amortization expense is included in Sage Hill income for the year ended December 31, 2016?

C)

Prepare the journal entry to record amortization expense for 2017. Prepare the intangible assets section of Sage Hill Golf Inc. at December 31, 2017. (No impairments are required to be recorded in 2017.) (Credit account titles are automatically indented when amount is entered. Do not indent manually. If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts.)

In: Accounting

I want you guys to rewrite this lab procedure, and it is fine if it was...

I want you guys to rewrite this lab procedure, and it is fine if it was shorter than this.

An air track was fitted with two photocell bridges, one on each side of the collision region. Each bridge was operating in a gate mode timer that allows the collection of time intervals before and after collision. To ensure that friction and gravity have minimal effects, the track was leveled. Before starting the experiment, we ensured that loss in velocity was no greater than two percent in either direction. To check this, we sent one glider in one direction and noted the time to cross each photocell placed one meter apart. The difference between the two times divided by the time to cross the first photocell was the fraction of momentum that was lost due to friction and gained or lost due to gravity. The track was readjusted accordingly and the check was repeated in the other direction.

The first step in starting the experiment was measuring the masses of the two gliders (i.e. the heavy glider and the light glider). The masses of the gliders were made “heavy” or “light” by adding trimming weights. Then, a series of four collisions (each repeated three times) were conducted

“H” indicates heavy glider, “L” indicates light glider, “Off” indicates that the collision was made elastic by facing the bumpers toward one another, and “On” indicates that the collision was made inelastic by the mounting the “sticky bumpers” on each end (i.e. pin and putty attachments).

Using the memory mode of the photoelectric timers, we were able to collect times for both instances (before and after collision) that that glider past the photobridges. The first data point was our first time point and the second data point was the total of the first and second time point. Therefore, to get the second time, we had to subtract the first time point from the second data point. These times were then used to caluculate the velocities and subsequently the momentum and kinetic energy of both gliders.

In: Physics