Questions
Use the following data on number of deaths from drug overdose for sample of different states....

Use the following data on number of deaths from drug overdose for sample of different states. We separated states to two groups based on whether a certain drug law is being enacted or not. The states where the law is enacted are called BLUE states and those not using this law are called RED states. (Note that there are 8 observations in each group)

Table: Number of overdose deaths every year in different states.

(BLUE States) - enacting the new drug law (RED States) - NOT enacting the new drug law
43 29
25 72
64 49
17 86
36 78
21 45
53 38
19 45

What is the t-statistics for testing the hypothesis that the average deaths in BLUE states is equal to 30 per year.

1.96

5.67

0.77

0.27

Same question for RED states:

2. What is the t-statistics for testing the hypothesis that the average deaths in RED states is equal to 30 per year.

7.57

1.22

2.36

3.46

3. What is the p-value for the two-sided test about average deaths in BLUE states being equal 30? (Use T-distribution)

0.23

0.11

0.92

0.46

4. Same question for RED states:

What is the p-value for the two-sided test about average deaths in RED states being equal 30? (Use T-distribution)

0.03

0.14

0.08

0.01

5. Given the t-stats (or p-values) that you have obtained so far for both BLUE and RED states, what can you tell about the two-sided hypothesis of 30 average deaths in either states at 5% significance level?

Fail to reject for both

Reject for both

Reject for BLUE ; Fail to reject for RED

Fail to reject for BLUE ; Reject for RED

6. Now we are interested to check the effectiveness of the new drug law:

or similarly

What is the standard error of the differences in the means? (Assume Large Sample Properties, i.e. Normal Distribution)

5.14

9.53

10.19

6.71

7. Same as previous question: We are interested to check the effectiveness of the new drug law:

H 0 ; L a w i s N O T e f f e c t i v e v s . H 1 ; L a w i s e f f e c t i v e

or similarly

H 0 ; E ( B L U E ) − E ( R E D ) = 0 v s . H 1 ; E ( B L U E ) − E ( R E D ) < 0

What is the t-statistics for this hypothesis test?

-2.15

-0.27

-1.91

-1.23

Same as previous question: We are interested to check the effectiveness of the new drug law:

H 0 ; L a w i s N O T e f f e c t i v e v s . H 1 ; L a w i s e f f e c t i v e

or similarly

H 0 ; E ( B L U E ) − E ( R E D ) = 0 v s . H 1 ; E ( B L U E ) − E ( R E D ) < 0

8. Which of the following is correct given your answers to question 7 ? (Note: one-sided test. Also use Normal Distribution)(Hint: find p-value)

None of the given choices are correct

We reject H0 at 1% significance level

We FAIL to reject H0 at 5% significance level

We reject H0 at 10% significance level

In: Statistics and Probability

Q1: Employ solubility guidelines to predict insoluble products, if any. (Difficulty = 4) a) MnnCl2(?) +...

Q1: Employ solubility guidelines to predict insoluble products, if any. (Difficulty = 4)

a) MnnCl2(?) + Na2S(aq)

b) HNO3(aq) + CuSO4(?)

c) Hg(NO3)2(aq) + Na3PO4(aq)

d) BaCl2(aq) +KOH(aq)

Q2: What is the final concentration if 75.0 mL of a 3.50 M glucose solution is diluted to a volume of 400.0 mL?

Q3: What is the final concentration if 75.0 mL of a 3.50 M glucose solution is with a volume of 400.0 mL?

Q4: Nomenclature

1. name two very common nonmetal cations that have acid properties

2. name the top four inert gases

3. name

a. FeO, Fe2O3 and Fe3O4

b. name LiCl

c. name CuSO4. 5 H2O

d. PO3- 4(aq)

e. CO2- 3(aq)

4. provide chemical formula for

a. aqueous hydrogen peroxide

b. sodium hypochlorite

c. potassium perchlorate

d. disodium phosphate ion

e. hydrogen sulfate ion or bisulfate ion

In: Chemistry

JAVA The class will have a constructor BMI(String name, double height, double weight). The class should...

JAVA

  • The class will have a constructor BMI(String name, double height, double weight).
  • The class should have a public instance method, getBMI() that returns a double reflecting the person's BMI (Body Mass Index = weight (kg) / height2 (m2) ).
  • The class should have a public toString() method that returns a String like Fred is 1.9m tall and is 87.0Kg and has a BMI of 24.099722991689752Kg/m^2 (just print the doubles without special formatting).
  • Implement this class (if you wish you may implement a main method that demonstrates its use).

Here is my code:

public class BMI {
    private String name;
    private Double height;
    private Double weight;


    Double getBMI(){
        return weight/(height*height);
    }
    public BMI(String name, Double height, Double weight){
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    @Override
    public String toString(){
        return name + " is " + height +"m tall and " + weight + "kg and has a BMI of" + getBMI() ;
    }
}

In: Computer Science

Kids R Us Child Care Centers is creating an online parent portal that parents will access...

Kids R Us Child Care Centers is creating an online parent portal that parents will access with a username and password. Use a formula to create a username for each parent based on the following rules: • Lowercase first letter of first name. • Digit five of ID. • Uppercase first four letters of last name. • Last digit of phone number. • Number of characters in first name

Please show the formula used

Parent ID Parent Last Name Parent First Name Parent Phone Parent Username
100000 Ewing Levi (550) 726-7424
100001 Gillespie Vera (263) 579-3567
100002 Mccall Astra (897) 263-3526
100003 Woodward Constance (845) 953-5717
100004 Duke Keaton (289) 465-5356
100005 Stephenson Alana (693) 335-3919
100006 Guzman Cally (836) 183-4738
100007 Zimmerman Flavia (590) 994-9083
100008 Cooper Jameson (373) 497-3310

In: Computer Science

Part 2: Use MySQL Workbench to add a table to your database on the class server...

Part 2:

  1. Use MySQL Workbench to add a table to your database on the class server and name the table “Person”. Include these fields in the Person table:

Field Name

Description

Data Type

Sample Value

LoginID

User’s login name

varchar(10)

Bob

FirstName

User’s first name

varchar(50)

Bob

LastName

User’s last name

varchar(50)

Barker

picUrl

Filename of the user’s picture

varchar(50)

bob.gif

Bio

User’s biography

varchar(255)

Bob is the best!

LoginID should be the Primary Key of the table.

Add at least ten records to the Person table.

  1. Add a Persons page, named person.php. This page should display the contents of your Person table in an HTML table by using SQL to read records from the database table. Use linked styles to decorate the page background, all headers and table cell contents. E.g., font family, font size, color, etc. Place the .css file in an appropriate application subdirectory as in the class examples.

In: Computer Science

3.1. Create an XML schema to validate the following XML file. <?xml version="1.0" encoding="utf-8"?> <root> <whats>Everything</whats>...

3.1. Create an XML schema to validate the following XML file.

<?xml version="1.0" encoding="utf-8"?>

<root>

<whats>Everything</whats>

<up>Is</up>

<doc>Fine</doc>

</root>

Schema starter:


<xsd:schema xmlns:xsd="">

<xsd:element name="root" type="rootType" />

<xsd:complexType name="rootType">

    <xsd:sequence>

      <xsd:element name="" type="" minOccurs="1" />

      <xsd:element name="” type="" minOccurs="1" />

      <xsd:element name="" type="" minOccurs="1" />

    </xsd:sequence>

</xsd:complexType>

</xsd:schema>

3.2. Use your schema to validate the XML file.        

            3.2.1. You can use Visual Studio or online utilities to apply the schema to the XML file.

            3.2.2. You don’t know if the schema is being applied unless it gives you an error! Introduce an error into the XML file and verify that the error is caught by the schema.

            For example: you might delete the <up> element. The validator should complain about the missing element.

3.3. When the schema catches an error, take a screenshot.

3.4. Revise the XML file to remove the error.

In: Computer Science

(I AM IN A INTRO TO PROGRAMMING, PLEASE USE SIMPLE PSEUDOCODE IF POSSIBLE) Create pseudocode for...

(I AM IN A INTRO TO PROGRAMMING, PLEASE USE SIMPLE PSEUDOCODE IF POSSIBLE)

Create pseudocode for a program for Hansel's Housecleaning Service.

The program prompts the user for a customer's last name only. While the last name is not “zzz” your program will ask for the number of bathrooms and the number of other rooms to be cleaned and display the cleaning charge. You should use a sentinel-controlled while loop in your main loop logic. A customer name of “zzz” signals the end of the data.

The cleaning charge is $40 plus $15 for each bathroom and $10 for each of the other rooms. Use data validation loop to make sure the number of bathrooms is >= 0, and the number of other rooms is also >= 0. The program will display the total cleaning charge and then prompt for the next customer's name.

When the loop is exited (user enters “zzz” for the last name), display a message indicating that the program is complete.

Your program will have the main module and a function that, given the number of bathrooms and the number of other rooms, will return that total cleaning charge for the customer.

In: Computer Science

Design a Ship class that the following members: A field for the name of the ship...

Design a Ship class that the following members: A field for the name of the ship (a string). A field for the year that the ship was built (a string). A constructor and appropriate accessors and mutators. A toString method that displays the ship’s name and the year it was built. Design a CruiseShip class that extends the Ship class. The CruiseShip class should have the following members: A field for the maximum number of passengers (an int). A constructor and appropriate accessors and mutators. A toString method that overrides the toString method in the base class. The CruiseShip class’s toString method should display only the ship’s name and the maximum number of passengers. Design a CargoShip class that extends the Ship class. The CargoShip class should have the following members: A field for the cargo capacity in tonnage (an int). A constructor and appropriate accessors and mutators. A toString method that overrides the toString method in the base class. The CargoShip class’s toString method should display only the ship’s name and the ship’s cargo capacity.

I need user input aka asking the user to input a ship name, the number of passengers, and the year.

In: Computer Science

Please code in C# - (C - Sharp) Assignment Description Write out a program that will...

Please code in C# - (C - Sharp)

Assignment Description

Write out a program that will ask the user for their name; the length and width of a rectangle; and the length of a square. The program will then output the input name; the area and perimeter of a rectangle with the dimensions they input; and the area and perimeter of a square with the length they input.

Tasks

  1. The program needs to contain the following
    1. A comment header containing your name and a brief description of the program
    2. Output prompting the user for the following inputs:
      1. Name as a string
      2. Length of a rectangle as a double
      3. Width of a rectangle as a double
      4. Length of a square as an int
    3. After accepting user input, the program outputs the following:
      1. User name
      2. Area of a rectangle with dimensions matching the inputs
        • Area of a rectangle = Length * Width
      3. Perimeter of a rectangle with dimensions matching the inputs
        • Perimeter of a rectangle = (2 * length) + (2 * Width)
      4. Area of a square with dimensions matching the inputs
        • Area of a square = Length * Length
      5. Perimeter of a square with dimensions matching the inputs
        • Area of a square = 4 * length
    4. “Press enter to continue”
    5. Console.Read(); at the end of your code

In: Computer Science

Beth R. Jordan lives at 2322 Skyview Road, Mesa, AZ 85201. She is a tax accountant...

Beth R. Jordan lives at 2322 Skyview Road, Mesa, AZ 85201. She is a tax accountant with Mesa Manufacturing Company, 1203 Western Avenue, Mesa, AZ 85201 (employer identification number 11-1111111). She also writes computer software programs for tax practitioners and has a part-time tax practice. Beth is single and has no dependents. Beth's birthday is July 4, 1972, and her Social Security number is 123-45-6789. She wants to contribute $3 to the Presidential Election Campaign Fund. The following information is shown on Beth’s Wage and Tax Statement (Form W–2) for 2016.

Line Description Amount 1 Wages, tips, other compensation $65,000.00 2 Federal income tax withheld 10,500.00 3 Social Security wages 65,000.00 4 Social Security tax withheld 4,030.00 5 Medicare wages and tips 65,000.00 6 Medicare tax withheld 942.50 15 State Arizona 16 State wages, tips, etc. 65,000.00 17 State income tax withheld 1,954.00

During the year, Beth received interest of $1,300 from Arizona Federal Savings and Loan and $400 from Arizona State Bank. Each financial institution reported the interest income on a Form 1099-INT. She received qualified dividends of $800 from Blue Corporation, $750 from Green Corporation, and $650 from Orange Corporation. Each corporation reported Beth's dividend payments on a Form 1099-DIV.

Beth received a $1,100 income tax refund from the state of Arizona on April 29, 2016. On her 2015 Federal income tax return, she reported total itemized deductions of $8,200, which included $2,200 of state income tax withheld by her employer.

Fees earned from her part-time tax practice in 2016 totaled $3,800. She paid $600 to have the tax returns processed by a computerized tax return service.

On February 8, 2016, Beth bought 500 shares of Gray Corporation common stock for $17.60 a share. On September 12, 2016, Beth sold the stock for $14 a share.

Beth bought a used sport utility vehicle for $6,000 on June 5, 2016. She purchased the vehicle from her brother-in-law, who was unemployed and was in need of cash. On November 2, 2016, she sold the vehicle to a friend for $6,500.

On January 2, 2016, Beth acquired 100 shares of Blue Corporation common stock for $30 a share. She sold the stock on December 19, 2016, for $55 a share.

During the year, Beth records revenues of $16,000 from the sale of a software program she developed. Beth incurred the following expenditures in connection with her software development business.

Cost of personal computer $7,000
Cost of printer 2,000
Furniture 3,000
Supplies 650
Fee paid to computer consultant 3,500

Beth elected to expense the maximum portion of the cost of the computer, printer, and furniture allowed under the provisions of § 179. These items were placed in service on January 15, 2016, and used 100% in her business.

Although her employer suggested that Beth attend a convention on current developments in corporate taxation, Beth was not reimbursed for the travel expenses of $1,420 she incurred in attending the convention. The $1,420 included $200 for the cost of meals.

During the year, Beth paid $300 for prescription medicines and $2,875 for doctor interest to credit card cbills and hospital bills. Medical insurance premiums were paid for her by her employer. Beth paid real property taxes of $1,766 on her home. Interest on her home mortgage (Valley National Bank) was $3,845, and interest to credit card companies was $320. Beth contributed $2,080 to various qualifying charities during the year. Professional dues and subscriptions totaled $350.

Beth paid estimated taxes of $1,000.

Required:

Compute the net tax payable or refund due for Beth R. Jordan for 2016. You will need Forms 1040, 2106, and 4562 and Schedules A, B, C, D, SE and the Qualified Dividends and Capital Gain Tax Worksheet.

Make realistic assumptions about any missing data.

If an amount box does not require an entry or the answer is zero, enter "0".

Enter all amounts as positive numbers, unless instructed otherwise.

It may be necessary to complete the tax schedules before completing Form 1040.

When computing the tax liability, do not round your immediate calculations. If required round your final answers to the nearest dollar.

Use the 2016 Tax Rate Schedule provided. Do not use the Tax Tables.

IF YOU CAN PLEASE FILL OUT TAX FORMS 1040, SCHEDULE A, B, C & D, FORM 8949 THANK YOU!

In: Accounting