Questions
.According to a survey, high school girls average 100 text messages daily (The Boston Globe, April...

.According to a survey, high school girls average 100 text messages daily (The Boston Globe, April 21, 2010). Assume the population standard deviation is 20 text messages. Suppose a random sample of 50 high school girls is taken.

a) what is the mean daily text messages of a sample of 50 high school girls?

b) what is the standard deviation of daily text messages of a sample of 50 high school girls?

c) what is the 90th percentile of daily text messages?

.A study by Allstate Insurance Co. finds that 82% of teenagers have used cell phones while driving (The Wall Street Journal, May 5, 2010). Suppose a random sample of 100 teen drivers is taken.

a) what is the standard deviation of proportion of 100 teen drivers who use cell phone while driving?

b) we are interested in the proportion of 100 teen drivers who use cell phone while driving. What type of distribution is it- Exponential distribution, t distribution, Uniform distribution, Normal distribution?

Which one is correct statement? Choose all applied.

a.

If your population of interest is SUNY NP students, then mean GPA of SUNY NP students is a random variable

b.

If your population of interest is SUNY NP students, then mean GPA of 100 selected SUNY NP students is a random variable.

c.

If your population of interest is SUNY NP students, then mean GPA of 100 selected SUNY NP students is a sample statistics

d.

If your population of interest is SUNY NP students, then mean GPA of SUNY NP students is a population parameter.

Which one is the correct statement? Choose all applied.

a.

If you are interested in US households, mean income of 500 US households is a random variable.

b.

If you are interested in US households, proportion of 500 US households who do not have any health insurance is a point estimate of proportion of all US households who do not have any health insurance.

c.

If you are interested in US households, mean income of 500 US households is a point estimate of mean income of all US households.

d.

If you are interested in US households, mean income of US households is a fixed number, that is, not a random variable.

In: Statistics and Probability

One part of this question I am getting wrong. I'm assuming it's the test statistic? I...

One part of this question I am getting wrong. I'm assuming it's the test statistic? I got 1 for Question C, and I got 5.432 for question b, and I got B for question C.

An undergraduate student performed a survey on the perceived physical and mental health of UBC students for her term project. She collected information by asking students whether they are satisfied with their physical and mental health status. 129 male and 157 female UBC students were randomly chosen to participate in the survey. After finishing the survey, she presented the following tables in her term project paper.

For both sexes:

Number of students
Perceived physical health, satisfied 229
Perceived physical health, not satisfied 57
Perceived mental health, satisfied 257
Perceived mental health, not satisfied 29

For male students:

Number of students
Perceived physical health, satisfied 108
Perceived physical health, not satisfied 21
Perceived mental health, satisfied 110
Perceived mental health, not satisfied 19

For female students:

Number of students
Perceived physical health, satisfied 121
Perceived physical health, not satisfied 36
Perceived mental health, satisfied 147
Perceived mental health, not satisfied 10

(a) To test independence of perceived physical health and sex, we want to use a chi-square model with  degree(s) of freedom.

(b) Compute the chi-square statistic used to test independence of perceived physical health and sex. Round your answer to 3 decimal places. For all intermediate steps, keep at least 6 decimal places.
Answer:

(c) Which of the following statements is correct based on the result of the Chi-square test?

A. At a 5% significance level, we reject the null hypothesis. There is strong evidence that perceived physical health and sex are associated.
B. At a 5% significance level, we do not reject the null hypothesis. There is little evidence that perceived physical health and sex are associated.
C. At a 5% significance level, we reject the null hypothesis. There is strong evidence that perceived physical health and sex are independent.
D. At a 5% significance level, we do not reject the null hypothesis. There is little evidence that perceived physical health and sex are independent.

In: Math

Write a program that prompts the user to enter the number of students and each student’s...

Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the second-highest score. Use the next() method in the Scanner class to read a name rather using the nextLine() method.
This is my code , but i get this error Enter the number of students: Exception in thread "main" java.util.InputMismatchException
   at java.util.Scanner.throwFor(Scanner.java:871)
   at java.util.Scanner.next(Scanner.java:1494)
   at java.util.Scanner.nextInt(Scanner.java:2139)
   at java.util.Scanner.nextInt(Scanner.java:2095)
   at Exercise05_09.main(Exercise05_09.java:16)

import java.util.Scanner;

public class Exercise05_09 {
   public static void main(String[] args) {
       // Create a Scanner
       Scanner input = new Scanner(System.in);

       // Prompt the user to enter the number of students
       System.out.print("Enter the number of students: ");
       int numberOfStudents = input.nextInt();

       int score,                    // Holds students' score      
           highest = 0,            // Highest score
           secondHigest = 0;   // Second highest score
       String name = "",        // Holds students' name
               student1 = "",    // Highest scoring student name
               student2 = "";   // Second highest scoring student name
      
       // Prompt the user to enter each students' name and score
       System.out.println("Enter each students' name and score:");
       for (int i = 0; i < numberOfStudents; i++) {
           System.out.print(
               "Student: " + (i + 1) + "\n Name: ");
           name = input.next();
           System.out.print(" Score: ");
           score = input.nextInt();

           if (i == 0) {
               // Make the first student the highest scoring student so far
               highest = score;
               student1 = name;
           }
           else if (i == 1 && score > highest) {
               // Second student entered scored
               // higher than first student
               secondHigest = highest;
               highest = score;
               student2 = student1;
               student1 = name;
           }
           else if (i == 1) {
               // Second student entered scored
               // lower than first student
               secondHigest = score;
               student2 = name;
           }      
           else if (i > 1 && score > highest && score > secondHigest) {
               // Last student entered has the highest score
               secondHigest = highest;
               student2 = student1;
               highest = score;
               student1 = name;
           }
           else if (i > 1 && score > secondHigest) {
               // Last student entered has the second highest score
               student2 = name;
               secondHigest = score;
           }
       }

       // Display the student with the hightest score
       // and the student with the second-hightest score.
       System.out.println(
           "Higest scoring student: " + student1 +
           "\nSecond Higest scoring student: " + student2);
   }
}

In: Computer Science

Below are info on one of the firm's client. Your Senior Manager has asked you to...

Below are info on one of the firm's client. Your Senior Manager has asked you to draft an internal memo discussing the implications of the client. Make sure to discuss Issue, Conclusion, Analysis. The manager has also provided you with some sources to start your research for the client.

John Patrick was hired six years ago by the XOEye Corporation to serve as the CEO for the company. As part of his employment contract, the corporation had agreed to purchase his residence at FMV in event the company decided to fire him. Last year, XOEye, unsatisfied with Patrick’s performance, fired him and purchased the residence for $350,000. XOEye immediately listed the house with a real estate agency. Soon after the purchase the real estate market in the area experienced a serious decline, especially in higher-priced homes. XOEye sold the house this year for $270,000 and paid selling expenses of $12,000. How should the XOEye Corporation treat the $92,000 loss?
A partial list of sources is:
• § 1221
• Rev. Rul. 82-204, 1982-2 C.B. 192
• Azar Nut Co. v. CIR, 67 AFTR 2d 91-987, 91-1 USTC ¶50,257 (5th Cir. 1991)

In: Accounting

On 1April2020, Adam Syaqif began a new business called Cepat Cetak Sdn. Bhd, which provides typing...


On 1April2020, Adam Syaqif began a new business called Cepat Cetak Sdn. Bhd, which provides typing and printing services. The following is a list of transactions incurred by the business during the month of April 2020:
i)   Adam Syaqif contributed RM200,000 cash into the business.
ii)   Purchased a land and a small building for RM450,000. He paid RM165,000 cash and signed a note payable for the balance. The land was considered to be worth RM240,000 and the building to be RM210,000.
iii)   Purchased office equipment for RM30,000 from Amazing Interiors Sdn. Bhd. He paid RM17,000 cash and agreed to pay the balance within 60 days.
iv)   Purchased a motorcycle on credit for RM3,400 to be used for making deliveries to customers. He agreed to make payment to Motorex Sdn. Bhd. within 10 days.
v)   Paid in full the account payable to Motorex Sdn. Bhd.
vi)   Borrowed RM30,000 from Bank Kaya and signed a note payable due in six months’ time.

Based on the above information:
a)   Prepare the journal entries for all the above transactions.
(7.5 marks)
b)   Post all the relevant accounts to ledgers.
(7.5 marks)
c)   Prepare a trial balance as at 30 April 2020.

In: Accounting

*** THIS IS FOR BA:498 STRATEGIC MANAGEMNT*** NEED THIS BY TOMORROW!!! (1) Examine the top corporate...

*** THIS IS FOR BA:498 STRATEGIC MANAGEMNT*** NEED THIS BY TOMORROW!!!

(1) Examine the top corporate brands as presented by Interbrand (www.interbrand.com (Links to an external site.)Links to an external site.). Select one company from the list and outline a core competency that you believe that they have. Try to select a company/brand that has not already been covered by one of your classmates. Why do you believe this is a powerful competency for this company?

(2) Refer back to this weeks “readings, articles, videos” section and the discussion of corporate values and Nordstrom. How do you think the Nordstrom snow tire story would influence company culture? Please share one example from your own experience of a story or artifact that influenced culture where you worked or attended school.

**** this is the link to the Nordstorm story*** https://www.youtube.com/watch?v=NTqBhdUnisl

(3) Refer back to this weeks “readings, articles, videos” section and the discussion of finance and accounting and Apple. Please look over the financial statements referred to in the lecture notes. What conclusions can draw about Apple and the evolution of their business during this timeframe? Do you believe the same dynamics exist today? How would you determine that

In: Operations Management

Ginny is endowed with $8million and is deciding whether to invest in a restaurant. Assume perfect...

Ginny is endowed with $8million and is deciding whether to invest in a restaurant. Assume perfect capital markets with an interest rate of 6%.

Investment Option: 1, 2, 3, 4

Investment (millions): 2, 3, 4, 5

End of Year 1 Cash Flows (millions): 1.8, 4.3, 5.4, 5.2

End of Year 2 Cash Flows (millions): 1.8, 1.0, 1.4, 1.6

(i) List 4 perfect capital market assumptions.

(ii) Which investment option should Ginny choose? Why?

(iii) Which investment option can be eliminated from consideration? Why?

Ginny is actively pursuing another business venture as a ticket scalper. She estimates that for a $2 million investment in inventory she can resell her tickets for $6 million over the next two years (cash flows realized in exactly two years). Assume the same 6% interest rate.

(iv) What is the NPV of the Ticket Brokering venture?

(v) What is the new value of Ginny's Corporation?

(vi) Suppose Ginny does not have the $2million to start the new venture. Instead, she wants to raise equity capital by issuing 100,000 shares. What price will new investors be willing to pay?

In: Finance

Write two classes, ToDoList and Driver ToDoList should implement the following UML class diagram: ToDoList -list:String[]...

Write two classes, ToDoList and Driver

ToDoList should implement the following UML class diagram:

ToDoList
-list:String[]
-size:int
+ToDoList()
+add(String item):void
+remove(String item): boolean
+toString():String

add(String item) should add the item as the last element in the list, updating size.

remove(String item) should remove the item and return true, or, if the item was not in the list, return false.  
To remove the item, check every list element from 0 to size-1, and if that item is equal to the parameter using s1.equalsIgnoreCase(s2), loop from i+1 to size, assigning each element the value of the following element in the list, so list[j-1] = list[j]. The size of the list will be one less.

toString() should return a numbered list, with a "\n" after each list item.

HW22 should run as in the sample run below. Use static methods as needed to input the choice and the list item.

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: j

Enter a number: 6

1 through 4 only: 3

Empty list

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 1

Enter a list item and press enter: Mow the lawn

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 1

Enter a list item and press enter: Wash the car

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 1

Enter a list item and press enter: Clean the kitchen

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 3

1. Mow the lawn

2. Wash the car

3. Clean the kitchen

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 2

Enter a list item and press enter: clean the kitchen

clean the kitchen removed

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 3

1. Mow the lawn

2. Wash the car

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 2

Enter a list item and press enter: Write a program

Could not remove Write a program

1. add an item

2. remove an item

3. print the list

4. quit

Enter your choice: 4

add(String item) should add the item as the last element in the list, updating size.

remove(String item) should remove the item and return true, or, if the item was not in the list, return

In: Computer Science

1.) Modify your Student class to overload the following operators: ==, !=, <, >, <=, >=...

1.) Modify your Student class to overload the following operators: ==, !=, <, >, <=, >= as
member operators. The comparison operators will compare students by last name first
name and id number. Also, overload << and >> as friend operators in the Student class.
Overload << and >> operators in Roster class as well to output Rosters in a nice format as
well as input Roster. Provide a function sort in a Roster class as a private function to sort
out all the students in a Roster according to their Last Name, First Name, and Student id
using the comparison operators that you overloaded in the Student class.

2.) Modify your Roster class so that it will now store a dynamic array of pointers to Student
objects. The Roster is identified by the course name, course code, number of credits,
instructor name, and contains a list of students stored in an array of pointers to Students.
The array must have the ability to grow if it reaches the capacity (for that provide a
private function grow ()). Modify your functions to add a student to a Roster, delete
student from a Roster, and search for a student to reflect the changes.

Down below are the student.h and roster.h files. If you can make the changes in BOLD text, it will be easier for me to see the changes. Thanks!

//STUDENT.H
#ifndef STUDENT_H
#define STUDENT_H

class Student
{
private:
   //member variables
   std::string firstName, lastName, standing, dateOfBirth, dateOfMatriculation;
   int credits;
   double gpa;
   string id; //add id
   //private member function to correct standing when credits change
   void correctStanding();
  
public:
   //constructors
   Student();
   Student(std::string fn, std::string ln, std::string dob, std::string dom, int c, double g);
  
   //mutators
   void setFirst(std::string);
   void setLast(std::string);
   void setDateOfBirth(std::string);
   void setDateOfMatriculation(std::string);
   void setCredits(int);
   void setGPA(double);
  
   //accessors
   std::string getFirst();
   std::string getLast();
   std::string getDateOfBirth();
   std::string getDateOfMatriculation();
   std::string getStanding();
   int getCredits();
   double getGPA();
  
   //console i/o functions
   void input();
   void output();
};
#endif
//END STUDENT.H
-----------------------------------------
//ROSTER.H
#ifndef ROSTER_H
#define ROSTER_H
#define MAX_CAPACITY 10
#include "student.h"

class Roster
{
public:
   //Constructors
   Roster();
   Roster(std::string, std::string, std::string, int);
  
   //Accessors
   std::string getCourseName() const;
   std::string getCourseCode() const;
   std::string getInstructor() const;
   int getCredits() const;
   int getNumStudents() const;
   Student getStudent(int) const;
  
   //Mutators
   void setCourseName(std::string);
   void setCourseCode(std::string);
   void setInstructor(std::string);
   void setCredits(int);
  
   //Array Functions
   void addStudent(Student);
   void delStudent(int);
   int findStudent(std::string, std::string);
   void outputArray();
private:
   std::string courseName, courseCode, instructor;
   int credits, numStudents = 0;
   Student studentList[MAX_CAPACITY];
};
#endif
//END ROSTER.H
----------------------------------

In: Computer Science

If z=x2y- 9xy2 and x=u2+euw, y=v2+2uv, when u=1, v=-1, w=0, then Zu=

If z=x2y- 9xy2 and x=u2+euw, y=v2+2uv, when u=1, v=-1, w=0, then Zu=

In: Math