In Java
Design a Triangle class (Triangle.java) that extends GeometricObject. Draw the UML diagram for both classes and implement Triangle. The Triangle class contains: ▪ Three double data fields named side1, side2, and side3 with default values 1.0 to denote three sides of the triangle. ▪ A no-arg constructor that creates a default triangle. ▪ A constructor that creates a triangle with the specified side1, side2, side3, color, and filled arguments. ▪ The accessor methods for all three data fields. ▪ A method named getArea() that returns the area of this triangle. ▪ A method named getPerimeter() that returns the perimeter of this triangle. ▪ A method named toString() that returns a string description for the triangle. return "Triangle: side1 = " + side1 + " side2 = " + side2 + " side3 = " + side3; The formulas to compute the area of a triangle are as follows: ? = (????1 + ????2 + ????3) 2 ???? = √?(? − ????1)(? − ????2)(? − ????3) The implementation for the Triangle’s toString() method is as follows: return "Triangle:\n" + super.toString() + "\nTriangle: side1 = " + side1 + " side2 = " + side2 + " side3 = " + side3; Download the attached project: HomeworkCh11.zip. Complete the HomeworkCh11.java test program as follows 1. Prompt the user to enter a. Each of the three sides of a triangle, b. the Triangle’s color, and c. whether the triangle is filled. 2. The program should create a Triangle object with these sides and set the color and filled properties using the input. 3. The program should display the area, perimeter, color, and true or false to indicate whether it is filled or not. 4.
Create an ArrayList and add at least one of each of the following objects to it: Triangle, String, Rectangle, Date, Circle. The list should contain at least seven objects.
The implementation for instantiating the ArrayList and adding objects to it is as follows: ArrayListlist = new ArrayList(); list.add(new Circle(1.5, "green", true)); list.add(new Date()); 5. Create a loop to display all the elements in the list by invoking its toString method. Use the instanceof operator to invoke the correct getArea() and getPerimeter() methods to display additional information about each shape object.
In: Computer Science
Q1)
Suppose that 23 g of each of the following substances is initially at 27.0 ∘C. What is the final temperature of each substance upon absorbing 2.45 kJ of heat?
Part A
gold
Part B
silver
Part C
aluminum
Part D
water
Q2) A 32.5 g iron rod, initially at 22.7 ∘C, is submerged into an unknown mass of water at 63.1 ∘C, in an insulated container. The final temperature of the mixture upon reaching thermal equilibrium is58.4 ∘C.
What is the mass of the water?
Express your answer to two significant figures and include the appropriate units.
Q3)Instant cold packs, often used to ice athletic injuries on
the field, contain ammonium nitrate and water separated by a thin
plastic divider. When the divider is broken, the ammonium nitrate
dissolves according to the following endothermic reaction:
NH4NO3(s)→NH+4(aq)+NO−3(aq)
In order to measure the enthalpy change for this reaction, 1.25 g
of NH4NO3 is dissolved in enough water to make 25.0 mL of solution.
The initial temperature is 25.8 ∘C and the final temperature (after
the solid dissolves) is 21.9 ∘C.
Part A
Calculate the change in enthalpy for the reaction in kilojoules per mole. (Use 1.0g/mL as the density of the solution and 4.18J/g⋅∘C as the specific heat capacity.)
Express your answer to two significant figures and include the appropriate units.
Q4)Zinc metal reacts with hydrochloric acid according to the following balanced equation.
Zn(s)+2HCl(aq)→ZnCl2(aq)+H2(g)
When 0.107 g of Zn(s) is combined with enough HCl to make 54.4 mL of solution in a coffee-cup calorimeter, all of the zinc reacts, raising the temperature of the solution from 22.3 ∘C to 24.3 ∘C.
Part A
Find ΔHrxn for this reaction as written. (Use 1.0 g/mL for the density of the solution and 4.18 J/g⋅∘C as the specific heat capacity.)
In: Chemistry
KB, a 91 year old male presenting with a complaint of onset of acute back pain this AM, along with fever noted upon admission to the ER. HPI: The patient noted acute lower back pain today either when getting up from chair or getting into bed (he is unclear) early today. Tylenol at home and ice packs were not helpful and he was unable to ambulate or get out of bed. He was brought to the ER by Rescue. In the ER he was noted to be in acute pain as well as having a fever of 103 rectally. Full culture were done. He also had XRAY of the thoracic and lumbar spine. He was also admitted and discharged a week ago for change in mental status and diagnosed with pontine stroke. He was discharged home on noted medications as well as prednisone for ankle OA. He has a cough in the hospital but had improved in the last few days. The patient denies SOB or CP and also note no dysuria, N/V or diarrhea. He is admitted for the fever and r/o bactermia. (CXR pending). Current coverage with Vancomycin and Zosyn. Past Med Hist: Diabetes Mellitus, Arthritis, Transfusion history, GI bleeding (current admission), History of bleeding ulcers, Depression, Spinal stenosis, essential hypertension, Past Surg Hist: Back surg Joint replacement Total knee arthroplasty Foot surgry Proceedure: EGD (Esophagogastroduodenoscopy) with Biopsy. Open Laminectomy lumber 2/3 and L3-4 for spinal stenos Former smoker. Family hist: Cancer: brother Allergies: NSAIDS- avoid because of ulcer hx. Tylenol – Acetaminophen: Slight Itching Neurological: He is alert. Positive for weakness, Neg for dizziness. Sluggish and trouble to answer some questions, however he had 6 mg morphine prior to exam. V/S: BP 184/92 | Pluse 117 | Temp 39.1 C (102.4 F) (oral) | Resp 30 | Ht 5’ 10” | Wt 90.719 kg (200lb) IBM 28.70 kg/m2 | SpO2 92% Physical Exam: He appears well-developed and well-nourished, distressed. HENT: normal. Tachycardiac in 90-100 range. No stridor. No respiratory distress. No wheezes. He has rales (at the bases after 2 liters of fluid in the ER Labs: WBC: 9.04 RBC normal Hemo normal Mean Corpus Hgb normal Neutrophil% 92.4 40.0-70.0% Lymp 2.0 24.0-44.0% Monocyte 4.9 2.0-11.0% Eosin 0.1 1.0-4.0 Baso 0.3 0.0-2.0 Immature Granu 0.03 0.00-0.05 Eosin Absolute 0.01 0.12-0.30 Assessment: 1. Fever: full culture done and antibiotic started 2. Back pain: No findings on imaging studies. Might be secondary to infection elsewhere such as pneumonia. 3. DM2: Continue current meds 4. HTN: continue current meds Problem List: Epidural Abscess Resulved. Ankle inflammation (Right) Type 2 diabetes CVA Lumber Spinal stenosis Increase weakness when ambulating Essential hypertension Sinus pause Confusion GI bleeding due to NSAIDs Altered mental Status, unspecified. Osteomyelitis due to Staphylococcus aureusType 2 DM with hyperglycemia, without long term current use of insulin. Atelectasis Slow transit constipation CVA due to thrombosis of precerebral artery DVT Hypokalemia Soft tissue injury Hyperkalemia Fall risk Laminectomy defects are present at L2 -3 Levoscoliosis of the limber spine centered at L4-5. Findings: There remains edema within the L2 and L3 vertibral bodies as well as the Invertibral discs. There is stable moderate loss of tissue within the prevertebral soft tissues as well as the left psoas muscular tear L2-3 Facet hyperthophy as well as the epidural fluid collection remaining. Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Nursing Assessment 20% • Demonstrate understanding of components of nursing assessment for this pt. 8 point. Clinical Understanding 30%. • Demonstrate through understanding of pt’s diagnoses, treatment and potential complications. 12 points Rarely, back pain is caused by a potentially serious spinal condition, such as infection, fracture, or tumor, or a disorder called cauda equina syndrome, which causes leg weakness and bowel or bladder dysfunction as well as back pain. Back pain that is associated with leg pain, numbness, or weakness can be due to a herniated disc or spinal stenosis. Plan of Care 20% • Outline a complete and effective plan of care for the pt. • Priority nursing diagnoses while caring for pt. • Also provide nursing diagnoses on admission. 8 points. = Professional Rules 20% • Demonstrates understanding of roles of professional team members. (roles of other professionals in care of the patient. (8 points). Assignment Instructions 10% • Follow all instructions in the assignment. (Including comprehensive responses to all questions related to the pt. (4 points) Sample comprehensive questions that she would expect responses from each one of us. Therefore, let prepare to answer them. 1. What first action should the nurse (you) take for this patient and what are the rationales for these actions. 2. For what clinical manifestations should you assess to correlate his acute back pain and fever 3. What nursing care should the nurse continue to provide (the role of the nurse during the management of this client’s condition)? 4. Prioritize nursing diagnoses and collaborative problems for this patient. 5. What potential complications are associated with this patient’s condition? 6. What patient education should the nurse provide?
In: Nursing
This is in JAVA
Bank Accounts 01: Child Classes
Copy the following SimpleBankAccount class and use it as a base class:
/**
* Simple representation of a bank account
*
* @author Jo Belle
* @version 0.5 (10/12/2020)
*/
import java.text.NumberFormat;
public class SimpleBankAccount{
// fields (instance variables)
private double balance;
private String accountId;
/**
* Constructor for objects of class SimpleBankAccount
*/
public SimpleBankAccount(){
balance = 0.0;
accountId = "";
}
/**
* Constructor for objects of class SimpleBankAccount
*/
public SimpleBankAccount( double bal, String id ){
balance = bal;
accountId = id;
}
/**
* Add money to the balance
*
* @param amount the amount to deposit
* @return void
*/
public void deposit( double amount ){
balance += amount;
}
/**
* Remove money from the balance
*
* @param amount the amount to withdraw
* @return true (success) or false (failure)
*/
public boolean withdraw( double amount ){
if( balance - amount >= 0 ){
balance -= amount;
return true;
}else{
return false;
}
}
/**
* Get the balance
*
* @return the balance
*/
public double getBalance(){
return balance;
}
/**
* Set account ID
*
* @param the account ID
*/
public void setAccountId(String id){
accountId = id;
}
/**
* Get the account ID
*
* @return the account ID
*/
public String getAccountId(){
return accountId;
}
/**
* Produces a string represenation of the balance
* @return The balance (with a label)
*/
public String toString( ){
// display balance as currency
String balanceStr = NumberFormat.getCurrencyInstance().format( balance );
return "Balance for account " + accountId + ": " + balanceStr + "\n";
}
}
Include at least two classes: CheckingAccount and SavingsAccount. Save your CheckingAccount class in a file named CheckingAccount.java and your SavingsAccount class in a file named SavingsAccount.java. Your CheckingAccount class needs to add a field to track the last processed check number. Also include both a no-argument constructor and a parameterized constructor (that takes a double and a String). Furthermore, include the following method:
public boolean processCheck( int checkNum, double amount );
which returns false if checkNum has the same check number as the
last check processed, otherwise it reduces the balance by amount
and returns true.
Your SavingsAccount class needs to have a field for the interest
rate. Also include both a constructor that just takes the interest
rate (as a double) and a parameterized constructor (that takes a
double, String and a double). Furthermore, include an
applyInterest() method that multiples the current balance by the
interest rate, and adds that to the balance.
The following code should work and produce the output below:
/**
* Exercises the basic functionality of a Checking and SavingsAccount
*
* @author Jo Belle
* @version 0.3 (10/12/2020)
*/
public class AccountsDriver{
final public static double INTEREST_RATE = 0.01; // 1%
public static void main( String[] args ){
CheckingAccount checking = new CheckingAccount( 100.0, "checking123" );
SavingsAccount savings = new SavingsAccount( 1000.0, "savings124", INTEREST_RATE );
double monthlyExpenses = 756.34;
int electricBillCheckNum = 2123;
double electricBill = 60.34;
int registationCheckNum = 2124;
double registration = 50.00;
double dinnerMoney = 55.32;
double futureCar = 200.0;
double textbook = 90.0;
// checking account transactions
checking.deposit( monthlyExpenses );
checking.processCheck( electricBillCheckNum, electricBill );
checking.withdraw( dinnerMoney );
checking.processCheck( registationCheckNum, registration );
System.out.print( checking.toString() );
System.out.println( );
// savings account transactions
savings.deposit( futureCar );
savings.applyInterest( );
savings.withdraw( textbook );
System.out.print( savings.toString() );
System.out.println( );
}
}
Output:
Checking Account: Balance for account checking123: $690.68 Last processed check number: 2124 Savings Account: Balance for account savings124: $1,122.00 APR: 1.0%
Make just the necessary changes to the code in
SimpleBankAccount to complete the instructions.
Submit the following files:
Bank Accounts 02: Overriding 1
Building off of the Bank Accounts 01 practice assignment above,
in your CheckingAccount and SavingsAccount classes, override the
toString() method. Additionally include a call to
SimpleBankAccount's toString() method. Use the appropriate
annotation to designate that you're expecting this method to
override another method.
Submit the following files:
Bank Accounts 03: Overriding 2
Building off of the Bank Accounts 01 practice assignment above, add an equals() method that returns true if all of the fields match and false otherwise. The Object class has the following method:
public boolean equals( Object obj )
To override this method, you must have the same method header.
Additionally, to use the fields of the class that overrides the
method, you need to cast the parameter to the current class.
Your equals methods should work so that the following code will
execute, but not display anything:
/**
* Exercises equals()
*
* @author Jo Belle
* @version 0.1 (10/12/2020)
*/
public class BankAccounts03{
final public static double INTEREST_RATE = 0.01; // 1%
public static void main( String[] args ){
CheckingAccount checking = new CheckingAccount( 100.0, "checking123" );
SavingsAccount savings = new SavingsAccount( 1000.0, "savings124", INTEREST_RATE );
CheckingAccount checkingCopy = new CheckingAccount( 100.0, "checking123" );
SavingsAccount savingsCopy = new SavingsAccount( 1000.0, "savings124", INTEREST_RATE );
if( checking.equals( checkingCopy ) == false ){
System.err.println("ERROR: The following objects are equal:");
System.err.println( checking );
System.err.println( checkingCopy );
}
if( savings.equals( savingsCopy ) == false ){
System.err.println("ERROR: The following objects are equal:");
System.err.println( savings );
System.err.println( savingsCopy );
}
int electricBillCheckNum = 2123;
double electricBill = 60.34;
double futureCar = 200.0;
checking.processCheck( electricBillCheckNum, electricBill );
savings.deposit( futureCar );
savings.applyInterest( );
if( checking.equals( checkingCopy ) == true ){
System.err.println("ERROR: The following objects are NOT equal:");
System.err.println( checking );
System.err.println( checkingCopy );
}
if( savings.equals( savingsCopy ) == true ){
System.err.println("ERROR: The following objects are NOT equal:");
System.err.println( savings );
System.err.println( savingsCopy );
}
}
}
Submit the following files:
In: Computer Science
Question Set 2: Two Independent Means
Answer the following questions using the NYC2br.MTW file. You can find this dataset in this assignment in Canvas (i.e., where you downloaded this document and where you’ll upload your completed lab). Data were collected from a random sample of two-bedroom apartments posted on Apartments.com in Manhattan and Brooklyn.
A. What is one type of graph that could be used to compare the monthly rental rates of these two-bedroom apartments in Manhattan and Brooklyn? Explain why this is an appropriate graph. [10 points]
B. Using Minitab Express, Construct the graph you described in part A to compare the Manhattan and Brooklyn apartments in this sample. [10 points]
C. Use the five-step hypothesis testing procedure given below to determine if the mean monthly rental rates are different in the populations of all Manhattan and Brooklyn two-bedroom apartments. If assumptions are met, use a t distribution to approximate the sampling distribution. You should not need to do any hand calculations. Use Minitab Express and remember to include all relevant output. [30 points]
Step 1: Check assumptions and write hypotheses
Step 2: Calculate the test statistic
Step 3: Determine the p value
Step 4: Decide to reject or fail to reject the null hypothesis
Step 5: State a real-world conclusion
This is the data set.
Area Rent Address
Manhattan 5495 56 W 91st ST
Manhattan 2200 10 W 107th ST
Manhattan 3386 181 W 126th ST
Manhattan 2383 236 W 135th ST
Manhattan 2550 3 W 137th ST
Manhattan 2600 533 W 142nd ST
Manhattan 2600 260 W 171st ST
Manhattan 2150 518 W 204th ST
Manhattan 3200 680 Fort Washington
AVE
Manhattan 2200 69 Cooper ST
Manhattan 2199 24 Thayer ST
Manhattan 2950 45 Tiemann PL
Manhattan 2780 510 E 117th ST
Manhattan 2695 314 E 106th ST
Manhattan 2900 320 E 93rd ST
Manhattan 5900 58 W 58th ST
Manhattan 25000 160 Central Park S
Manhattan 15000 30 E 62nd ST
Manhattan 4650 220 E 54th ST
Manhattan 2175 431 E 9th ST
Manhattan 7950 18 W 48th ST
Manhattan 2675 534 W 47th ST
Manhattan 3507 331 W 52nd ST
Manhattan 5195 236 E 47th ST
Manhattan 7750 445 W 35th ST
Manhattan 6883 1050 6th AVE
Manhattan 13754 7 W 21st ST
Manhattan 3995 172 Spring ST
Manhattan 5750 133 2nd AVE
Manhattan 6000 364 E 10 ST
Manhattan 3900 216 Centre ST
Manhattan 3400 167 Mott ST
Manhattan 16000 20 Greene ST
Manhattan 3200 174 Canal ST
Manhattan 4000 196 Stanton ST
Manhattan 8500 46 Warren ST
Manhattan 5950 108 South ST
Manhattan 3600 75 Wall ST
Manhattan 6598 44 Trinity PL
Manhattan 7995 377 Rector PL
Manhattan 6508 41 River TER
Brooklyn 3300 76 Franklin ST
Brooklyn 3150 80 Meserole ST
Brooklyn 4225 224 Wythe AVE
Brooklyn 3256 228 Manhattan AVE
Brooklyn 2500 1421 Dekalb AVE
Brooklyn 2900 381 Myrtle AVE
Brooklyn 4350 9 Old Fulton ST
Brooklyn 5500 365 Bridge ST
Brooklyn 3900 117 Congress ST
Brooklyn 2600 224 Sachett ST
Brooklyn 4358 280 Ashland PL
Brooklyn 3125 229 5th AVE
Brooklyn 3900 753 Carroll ST
Brooklyn 3450 497 Saint Marks AVE
Brooklyn 2000 544 Franklin AVE
Brooklyn 2575 237 Troy AVE
Brooklyn 2300 223 Rockaway AVE
Brooklyn 2150 231 Amboy ST
Brooklyn 2000 789 Belmont AVE
Brooklyn 1800 542 E 93rd ST
Brooklyn 4213 125 Parkside AVE
Brooklyn 12500 3 Pierrepont PT
Brooklyn 5000 135 Willow ST
Brooklyn 2500 224 22nd ST
Brooklyn 2400 2025 Dorchester RD
Brooklyn 1900 7301 4th AVE
Brooklyn 2000 2071 E 61st ST
Brooklyn 1925 1063 E 2nd ST
Brooklyn 2300 2031 W 6th ST
Brooklyn 2250 9747 Shore RD
Brooklyn 3500 155 Oceana DR
Brooklyn 2759 3510 Neptune AVE
Brooklyn 2200 2832 Bragg ST
Brooklyn 1950 1780 W 3rd ST
Brooklyn 2400 9602 4th AVE
Brooklyn 3500 26 Bay Ridge AVE
Brooklyn 2400 1519 New York AVE
Brooklyn 3304 941 Washington AVE
Brooklyn 3300 412 Herkimer ST
Brooklyn 5203 593 Baltic ST
Brooklyn 7500 78 Amity ST
Brooklyn 2625 692 Chauncey ST
Brooklyn 15000 260 Park AVE
Brooklyn 8750 100 Jay ST
Brooklyn 6455 475 Clermont AVE
Brooklyn 5775 300 Ashland PL
In: Statistics and Probability
Question Set 2: Two Independent Means Answer the following questions using the NYC2br.MTW file. You can find this dataset in this assignment in Canvas (i.e., where you downloaded this document and where you’ll upload your completed lab). Data were collected from a random sample of two-bedroom apartments posted on Apartments.com in Manhattan and Brooklyn.
A. What is one type of graph that could be used to compare the monthly rental rates of these two-bedroom apartments in Manhattan and Brooklyn? Explain why this is an appropriate graph. [10 points]
B. Using Minitab Express, Construct the graph you described in part A to compare the Manhattan and Brooklyn apartments in this sample. [10 points]
C. Use the five-step hypothesis testing procedure given below to determine if the mean monthly rental rates are different in the populations of all Manhattan and Brooklyn two-bedroom apartments. If assumptions are met, use a t distribution to approximate the sampling distribution. You should not need to do any hand calculations. Use Minitab Express and remember to include all relevant output. [30 points]
Step 1: Check assumptions and write hypotheses
Step 2: Calculate the test statistic
Step 3: Determine the p value
Step 4: Decide to reject or fail to reject the null hypothesis
Step 5: State a real-world conclusion
NYC2br.MTW file. - Data Set
Area Rent Address
| Manhattan | 5495 | 56 W 91st ST |
| Manhattan | 2200 | 10 W 107th ST |
| Manhattan | 3386 | 181 W 126th ST |
| Manhattan | 2383 | 236 W 135th ST |
| Manhattan | 2550 | 3 W 137th ST |
| Manhattan | 2600 | 533 W 142nd ST |
| Manhattan | 2600 | 260 W 171st ST |
| Manhattan | 2150 | 518 W 204th ST |
| Manhattan | 3200 | 680 Fort Washington AVE |
| Manhattan | 2200 | 69 Cooper ST |
| Manhattan | 2199 | 24 Thayer ST |
| Manhattan | 2950 | 45 Tiemann PL |
| Manhattan | 2780 | 510 E 117th ST |
| Manhattan | 2695 | 314 E 106th ST |
| Manhattan | 2900 | 320 E 93rd ST |
| Manhattan | 5900 | 58 W 58th ST |
| Manhattan | 25000 | 160 Central Park S |
| Manhattan | 15000 | 30 E 62nd ST |
| Manhattan | 4650 | 220 E 54th ST |
| Manhattan | 2175 | 431 E 9th ST |
| Manhattan | 7950 | 18 W 48th ST |
| Manhattan | 2675 | 534 W 47th ST |
| Manhattan | 3507 | 331 W 52nd ST |
| Manhattan | 5195 | 236 E 47th ST |
| Manhattan | 7750 | 445 W 35th ST |
| Manhattan | 6883 | 1050 6th AVE |
| Manhattan | 13754 | 7 W 21st ST |
| Manhattan | 3995 | 172 Spring ST |
| Manhattan | 5750 | 133 2nd AVE |
| Manhattan | 6000 | 364 E 10 ST |
| Manhattan | 3900 | 216 Centre ST |
| Manhattan | 3400 | 167 Mott ST |
| Manhattan | 16000 | 20 Greene ST |
| Manhattan | 3200 | 174 Canal ST |
| Manhattan | 4000 | 196 Stanton ST |
| Manhattan | 8500 | 46 Warren ST |
| Manhattan | 5950 | 108 South ST |
| Manhattan | 3600 | 75 Wall ST |
| Manhattan | 6598 | 44 Trinity PL |
| Manhattan | 7995 | 377 Rector PL |
| Brooklyn | 6508 | 41 River TER |
| Brooklyn | 3300 | 76 Franklin ST |
| Brooklyn | 3150 | 80 Meserole ST |
| Brooklyn | 4225 | 224 Wythe AVE |
| Brooklyn | 3256 | 228 Manhattan AVE |
| Brooklyn | 2500 | 1421 Dekalb AVE |
| Brooklyn | 2900 | 381 Myrtle AVE |
| Brooklyn | 4350 | 9 Old Fulton ST |
| Brooklyn | 5500 | 365 Bridge ST |
| Brooklyn | 3900 | 117 Congress ST |
| Brooklyn | 2600 | 224 Sachett ST |
| Brooklyn | 4358 | 280 Ashland PL |
| Brooklyn | 3125 | 229 5th AVE |
| Brooklyn | 3900 | 753 Carroll ST |
| Brooklyn | 3450 | 497 Saint Marks AVE |
| Brooklyn | 2000 | 544 Franklin AVE |
| Brooklyn | 2575 | 237 Troy AVE |
| Brooklyn | 2300 | 223 Rockaway AVE |
| Brooklyn | 2150 | 231 Amboy ST |
| Brooklyn | 2000 | 789 Belmont AVE |
| Brooklyn | 1800 | 542 E 93rd ST |
| Brooklyn | 4213 | 125 Parkside AVE |
| Brooklyn | 12500 | 3 Pierrepont PT |
| Brooklyn | 5000 | 135 Willow ST |
| Brooklyn | 2500 | 224 22nd ST |
| Brooklyn | 2400 | 2025 Dorchester RD |
| Brooklyn | 1900 | 7301 4th AVE |
| Brooklyn | 2000 | 2071 E 61st ST |
| Brooklyn | 1925 | 1063 E 2nd ST |
| Brooklyn | 2300 | 2031 W 6th ST |
| Brooklyn | 2250 | 9747 Shore RD |
| Brooklyn | 3500 | 155 Oceana DR |
| Brooklyn | 2759 | 3510 Neptune AVE |
| Brooklyn | 2200 | 2832 Bragg ST |
| Brooklyn | 1950 | 1780 W 3rd ST |
| Brooklyn | 2400 | 9602 4th AVE |
| Brooklyn | 3500 | 26 Bay Ridge AVE |
| Brooklyn | 2400 | 1519 New York AVE |
| Brooklyn | 3304 | 941 Washington AVE |
| Brooklyn | 3300 | 412 Herkimer ST |
| Brooklyn | 5203 | 593 Baltic ST |
| Brooklyn | 7500 | 78 Amity ST |
| Brooklyn | 2625 | 692 Chauncey ST |
| Brooklyn | 15000 | 260 Park AVE |
| Brooklyn | 8750 | 100 Jay ST |
| Brooklyn | 6455 | 475 Clermont AVE |
| Brooklyn | 5775 | 300 Ashland PL |
In: Statistics and Probability
Waterbury Insurance Company wants to study the relationship between the amount of fire damage and the distance between the burning house and the nearest fire station. This information will be used in setting rates for insurance coverage. For a sample of 30 claims for the last year, the director of the actuarial department determined the distance from the fire station (x) and the amount of fire damage, in thousands of dollars (y). The MegaStat output is reported below.
| ANOVA table | |||||
| Source | SS | df | MS | F | |
| Regression | 1,864.5782 | 1 | 1,864.5782 | 38.83 | |
| Residual | 1,344.4934 | 28 | 48.0176 | ||
| Total | 3,209.0716 | 29 | |||
| Regression output | |||
| Variables | Coefficients | Std. Error | t(df=28) |
| Intercept | 12.3601 | 3.2915 | 3.755 |
| Distance–X | 4.7956 | 0.7696 | 6.231 |
Click here for the Excel Data File
a-1. Write out the regression equation.(Round your answers to 3 decimal places.)
a-2. Is there a direct or indirect relationship between the distance from the fire station and the amount of fire damage?
How much damage would you estimate for a fire 5 miles from the nearest fire station? (Round your answer to the nearest dollar amount.)
c-1. Determine and interpret the coefficient of determination. (Round your answer to 3 decimal places.)
c-2. Fill in the blank below. (Round your answer to one decimal place.)
d-1. Determine the correlation coefficient.(Round your answer to 3 decimal places.)
d-2. Choose the right option.
d-3. How did you determine the sign of the correlation coefficient?
e-1. State the decision rule for 0.01 significance level: H0 : ρ = 0;H1 : ρ ≠ 0. (Negative value should be indicated by a minus sign. Round your answers to 3 decimal places.)
e-2. Compute the value of the test statistic.(Round your answer to 2 decimal places.)
e-3. Is there any significant relationship between the distance from the fire station and the amount of damage? Use the 0.01 significance level.
In: Statistics and Probability
Waterbury Insurance Company wants to study the relationship between the amount of fire damage and the distance between the burning house and the nearest fire station. This information will be used in setting rates for insurance coverage. For a sample of 30 claims for the last year, the director of the actuarial department determined the distance from the fire station (x) and the amount of fire damage, in thousands of dollars (y). The MegaStat output is reported below. ANOVA table Source SS df MS F Regression 1,870.5782 1 1,870.5782 41.39 Residual 1,265.4934 28 45.1962 Total 3,136.0716 29 Regression output Variables Coefficients Std. Error t(df=28) Intercept 13.7601 3.106 2.914 Distance–X 3.7708 0.5861 6.43 Click here for the Excel Data File a-1. Write out the regression equation. (Round your answers to 3 decimal places.) a-2. Is there a direct or indirect relationship between the distance from the fire station and the amount of fire damage? How much damage would you estimate for a fire 4 miles from the nearest fire station? (Round your answer to the nearest dollar amount.) c-1. Determine and interpret the coefficient of determination. (Round your answer to 3 decimal places.) c-2. Fill in the blank below. (Round your answer to one decimal place.) d-1. Determine the correlation coefficient. (Round your answer to 3 decimal places.) d-2. Choose the right option. d-3. How did you determine the sign of the correlation coefficient? e-1. State the decision rule for 0.01 significance level: H0 : ρ = 0; H1 : ρ ≠ 0. (Negative value should be indicated by a minus sign. Round your answers to 3 decimal places.) e-2. Compute the value of the test statistic. (Round your answer to 2 decimal places.) e-3. Is there any significant relationship between the distance from the fire station and the amount of damage? Use the 0.01 significance level.
In: Statistics and Probability
You and your friends have decided to take a trip after the semester ends to celebrate getting through your statistics class. Pick a departure point from a location that is close to your hometown (Denver, CO). You will find a list of ten different destinations for your trip below. ). So, you should have data for 12 different destination points. You need to collect some data online to find the distance between cities as well as the cost of airfare. You do not need to factor in driving distance or cost to get to your departure point – only include the flight distance and cost of airfare between your departure point and each destination.
Create a fitted line plot showing the relationship between distance and cost. Based on your plot, how do you think the cost of the trip is associated with the distance of the trip? Why do you think that a perfect linear relationship does not exist? (i.e. why are the points scattered?)
Determine the correlation coefficient, r. Interpret this value in the context of the problem. Based on this value, do you think the linear model is a good fit? Why or why not?
Interpret the slope and y-intercept of the regression line in the context of the problem.
Find residuals
Using your regression equation for the line of best fit, predict the cost of flying to each destination based on the distances from your original data. Then calculate the residuals for each data point. Enter this information in a table like shown below.
| Destination | Distance (Miles) | Observed Cost | Estimated Cost | Residuals |
| Miami, FL | 2,066 | $755 | $207 | |
| San Diego, CA | 1,078 | $480 | $144 | |
| Las Vegas, NV | 749 | $157 | $93 | |
| New York City, NY | 1,779 | $417 | $232 | |
| Honolulu, HI | 3,344 | $1,600 | $714 | |
| Seattle, WA | 1,316 | $426 | $162 | |
| London, England | 4,683 | $2,225 | $842 | |
| Cancun, Mexico | 1,670 | $544 | $368 | |
| Toronto, Canada | 1,344 | $1,759 | $646 | |
| Sydney, Australia | 8,325 | $1,618 | $1,235 | |
| Rome, Italy | 5,567 | $,1203 | $1,313 | |
| - | - | - | - | - |
In: Statistics and Probability
1.You find a quarter in the vending machine at work. Now you have to check the vending machine every day now. This is an example of ___.
| a. |
operant conditioning with positive reenforcement |
|
| b. |
classical conditioning with positive reenforcemenet |
|
| c. |
operant conditioning with negative reenforcement |
|
| d. |
classical conditioning with negative reenforcement |
2.
Every time you answer a question correctly in class, I praise you. This is an example of which learning theory?
| a. |
classical conditioning |
|
| b. |
observational learning |
|
| c. |
operant conditioning with negative reenforcement |
|
| d. |
operant conditioning with positive reenforcement |
3.
You have a fish tank that contains hundreds of small fish. You feed them the same time everyday by sprinkling the food on the surface of the water. The fish naturally come to the top to feed. One day, not feeding time, you simply check on the fish. As you are standing near the tank, the fish come to the top as though they are feeding. You could say that the fish ___.
| a. |
are hungry |
|
| b. |
are blind |
|
| c. |
are conditioned |
|
| d. |
want you to pet them |
4.
You are late for work and you are driving at least 100 miles per hour on the interstate. You are stopped by a State Trooper, and receive a speeding ticket. This is an example of ___.
| a. |
classical conditioning |
|
| b. |
operant condition with a positive reenforcement |
|
| c. |
operant conditioning with a negative reenforcement |
|
| d. |
operant conditioning with punishment |
5.
You go to the circus and see the tiger show. When the trainer cracks his whip, the tiger jumps through the hoop. This is an example of ___.
| a. |
operant conditioning with a positive reenforcement |
|
| b. |
operant conditioning with negative reenforcement |
|
| c. |
operant conditioning with punishment |
|
| d. |
none of the above |
6.
Most mornings, Randy listens to his favorite song as he gets ready for work, including putting in his contacts. One afternoon, Randy hears his favorite song playing, and his eyes start watering.... something that usually happens only when he puts his contacts in. This is an example of classical conditioning. What is the unconditioned stimulus?
| a. |
eye watering |
|
| b. |
the contacts |
|
| c. |
the song |
|
| d. |
getting ready for work |
In: Psychology