Questions
Based on data from a statistical abstract, only about 15% of senior citizens (65 years old...

Based on data from a statistical abstract, only about 15% of senior citizens (65 years old or older) get the flu each year. However, about 30% of the people under 65 years old get the flu each year. In the general population, there are 13.5% senior citizens (65 years old or older). (Round your answers to three decimal places.)

(a) What is the probability that a person selected at random from the general population is senior citizen who will get the flu this season?
(b) What is the probability that a person selected at random from the general population is a person under age 65 who will get the flu this year?

(c) Repeat parts (a) and (b) for a community that has 88% senior citizens. A: B:

(d) Repeat parts (a) and (b) for a community that has 51% senior citizens.A: B:

Let z be a random variable with a standard normal distribution. Find the indicated probability. (Round your answer to four decimal places.)

In: Math

The Statistical Abstract of the United States published by the U.S. Census Bureau reports that the...

The Statistical Abstract of the United States published by the U.S. Census Bureau reports that the average annual consumption of fresh fruit per person is 99.9 pounds. The standard deviation of fresh fruit consumption is about 30 pounds. Suppose a researcher took a random sample of 38 people and had them keep a record of the fresh fruit they ate for one year.

(Round all z values to 2 decimal places. Round your answers to 4 decimal places.)

a. What is the probability that the sample average would be less than 90 pounds?

p =

b. What is the probability that the sample average would be between 98 and 105 pounds?

p =

c. What is the probability that the sample average would be less than 112 pounds?

p =

In: Statistics and Probability

JAVA Design a class named Person and its two derived classes named Student and Employee. Make...

JAVA

Design a class named Person and its two derived classes named Student and Employee. Make Faculty and Staff derived classes of Employee. A person has a name, address, phone number, and e-mail address. A student has a class status (freshman, sophomore, junior, or senior). An employee has an office, salary, and datehired. Define a class named MyDate that contains the fields year, month, and day. A faculty member has office hours and a rank. A staff member has a title. Define an abstract toString function in the Person class and override it in each class to display the class name and the person’s name. Implement the classes. Write a test program that creates a Person, Student, Employee, Faculty, and Staff, and invokes their toString() functions.

In: Computer Science

describe through mathematics how the central concepts of convergence and continuity transform from the usual Euclidean...

describe through mathematics how the central concepts of convergence and continuity transform from the usual Euclidean distance on the real line, to the more abstract notion of distance as given by a metric on a metric space, to finally a description that only refers to open sets. It should also describe how the concept of topology emerges from metric spaces.

In: Advanced Math

A class variable is visible to and shared by all instances of a class. How would...

  1. A class variable is visible to and shared by all instances of a class. How would such a variable be used in an application?

  1. Describe the difference between abstract classes and concrete classes, giving an example of each.

  1. Explain how data are encapsulated and information is hidden in Java?

  1. Explain the difference between a class and an interface in Java, using at least one example.

In: Computer Science

Simple Java class. Create a class Sportscar that inherits from the Car class includes the following:...

Simple Java class.

Create a class Sportscar that inherits from the Car class includes the following:

a variable roof that holds type of roof (ex: convertible, hard-top,softtop)

a variable doors that holds the car's number of doors(ex: 2,4)

implement the changespeed method to add 20 to the speed each time its called

add exception handling to the changespeed method to keep soeed under 65

implement the sound method to print "brooom" to the screen.

create one constructor that accepts the car's roof,doors, year, and make as arguments and assigns the values appropriately. do not create any other constructors.

the interface methods should print messages using system.out.println()

car class:

abstract clas Car implements Vehicle(

private int year;

private int speed;

private string make;

private static int count=0;

public car(int year, string amake){

year = aYaer;

make = aMake;

speed =0;

count++;}

public void sound();

public static int getcount90{

return count;}

}

In: Computer Science

Registry Java Programming 3) Planner Create a class called Planner. A Planner is a data structure...

Registry Java Programming

3) Planner

Create a class called Planner. A Planner is a data structure for storing events. The maximum capacity of the planner (physical size) is specified by the formal parameter of the constructor of the class.

Instance methods

  • int size(); returns the number of events that are currently stored in this Planner (logical size);

  • boolean addEvent( AbstractEvent event ); adds an event to the last position of
    this Planner. It returns true if the insertion was a success, and false if this Planner was already full;

  • AbstractEvent eventAt( int pos ); returns the event at the specified position in
    this Planner. This operation must not change this state of this Planner. The first event of the Planner is at position 0;

  • AbstractEvent remove( int pos ); removes the event at the specified position of
    this Planner. Shifts any subsequent items to the left (start of the array). Returns the event that was removed from this Planner;

  • void display( Date date ); the method display prints all the events that have a recurrence on the specified date;

  • void sort( Comparator< AbstractEvent > c ), the method passes the array of events and the comparator object to the method java.util.Arrays.sort;

The class overrides the method String toString(). An example of the expected format is given below.

4) Notifications:

Create a class called notifications that is sensitive to changes in the planner. Every time an item shows up in planner, the notifications class will display some kind of notification automatically on the screen. You need to use the observer design pattern.

These are the abstract classes:

// AbstractEvent.java : Java class to represent the AbstractEvent
import java.util.Date;

public abstract class AbstractEvent {
  
   // data fields
   private String description;
   private Date start_time;
   private Date end_time;
  
   // method to set the description of the AbstractEvent
   public void setDescription(String description)
   {
       this.description = description;
   }
  
   // method to set the start date for the AbstractEvent
   public void setStartTime(Date start)
   {
       this.start_time = start;
   }
  
   // method to set the end date for the AbstractEvent
   public void setEndTime(Date end)
   {
       this.end_time = end;
   }
  
   // method to return the description of the AbstractEvent
   public String getDescription()
   {
       return description;
   }
  
   // method to return the start date of AbstractEvent
   public Date getStartTime()
   {
       return start_time;
   }
  
   // method to return the end date of the AbstractEvent
   public Date getEndTime()
   {
       return end_time;
   }
  
   // The below 3 methods must be define by the concrete subclass of AbstractEvent
   // abstract method hasMoreOccurrences() whose implementation depends on the kind of event
   public abstract boolean hasMoreOccurrences();
   // abstract method nextOccurrence() whose implementation depends on the kind of event
   public abstract Date nextOccurrence();
   // abstract method init() whose implementation depends on the kind of event
   public abstract void init();
  
}
//end of AbstractEvent.java

1.2

//DailyEvent.java
import java.util.Calendar;
import java.util.Date;

public class DailyEvent extends AbstractEvent{
  
   // data field to store the number of recurrences
   private int num_consecutive_days;
   // helper field to return the next occurrence
   private int days_occurred = 0;
  
   // method to set the number of recurrences
   public void setNumberOfConsecutiveDays(int num_days)
   {
       this.num_consecutive_days = num_days;
   }

   // method to get the number of recurrences
   public int getNumberOfConsecutiveDays()
   {
       return num_consecutive_days;
   }
  
   // method to return if the event has more occurrences or not
   @Override
   public boolean hasMoreOccurrences() {
       // if days occurred < number of consecutive days , then next occurrence is valid
       if(days_occurred < num_consecutive_days)
           return true;
       return false;
   }

   // method to return the date of next occurrence
   @Override
   public Date nextOccurrence() {
      
       // if days_occurred >= number of recurrences, return null (as it exceeds number of recurrences)
       if(days_occurred >= num_consecutive_days)
           return null;
      
       // return the next occurrence date
       Calendar cal = Calendar.getInstance();
       cal.setTime(getStartTime());
       cal.add(Calendar.DATE, days_occurred);
       days_occurred++; // increment the number of days by a day
       return cal.getTime();
   }

   // method to re-initialize the state of the object so that a call to the method nextOccurrence() returns the date of the first occurrence of this event
   @Override
   public void init() {
       days_occurred = 0;
      
   }
   public String toString()
   {
       return("Start Date: "+getStartTime()+" End Date : "+getEndTime()+" Consecutive days of occurrence : "+num_consecutive_days);
   }


}
//end of DailyEvent.java

1.3

//WeeklyEvent.java
import java.util.Calendar;
import java.util.Date;

public class WeeklyEvent extends AbstractEvent{

   // data field to store the limit date
   private Date limit;
   // helper field to return the next occurrence
   private int num_days = 0;
  
   // method to set the limit date
   public void setLimit(Date limit)
   {
       this.limit = limit;
   }
  
   // method to return the limit date
   public Date getLimit()
   {
       return limit;
   }
  
  
   // method to return if the event has more occurrences or not
   @Override
   public boolean hasMoreOccurrences() {
      
       // check if the call to nextOccurrence will return a date within the limit
       Calendar cal = Calendar.getInstance();
       cal.setTime(getStartTime());
       cal.add(Calendar.DATE, num_days);
      
       if(cal.getTime().compareTo(limit) < 0)
           return true;
      
       return false;
   }

   // method to return the next occurrence date
   @Override
   public Date nextOccurrence() {
      
       Calendar cal = Calendar.getInstance();
       cal.setTime(getStartTime());
       cal.add(Calendar.DATE, num_days);
       // if next occurrence date > limit , return null, else return the next occurrence date
       if(cal.getTime().compareTo(limit) >= 0)
           return null;
       num_days += 7; // increment the number of days by 1 week
       return cal.getTime();
   }

   // method to re-initialize the state of the object so that a call to the method nextOccurrence() returns the date of the first occurrence of this event
   @Override
   public void init() {
       num_days = 0;
   }
  
   public String toString()
   {
       return("Start Date: "+getStartTime()+" End Date : "+getEndTime()+" Limit Date : "+limit);
   }

}
//end of WeeklyEvent.java

In: Computer Science

You’re finally ready to launch your first suite of services at your startup. You have no...

You’re finally ready to launch your first suite of services at your startup. You have no business or economic background and are unsure how to set the price. Your gut tells you to charge $700/year. Based on what we’ve learned in this course about the type of political and economic systems and price-setting strategies, explain how you would determine prices for your business. Be sure to mention the laws of supply and demand, the types of economic/political systems involved, and any key economic concepts involved. (one small paragraph in your own words)

In: Economics

A test of abstract reasoning is given to a sample of students before and after they...

A test of abstract reasoning is given to a sample of students before and after they completed a formal logic course. Assume that two dependent samples have been randomly selected from normally distributed populations. The results are given below. At the 0.05 significance level, use critical value method to test the claim that the mean score is not affected by the course. Does the course improve the students’ skill on abstract reasoning?

     Before 74 83 75 88 84 63 93 84 91 77

     After 73 77 70 77 74 67 95 83 84 75

  1. State the requirement
  2. State the null and alternative hypotheses with the correct symbols
  3. Write all the statistics
  4. Write the formula of the test statistic and find the test statistic (you may use a calculator, but you are required to write down the command and all the numbers you enter)
  5. Find the critical value or the P-value (you may use a calculator, but you are required to write down the command and all the numbers you enter)
  6. Decide to reject or fail to reject H0 and explain the reason
  7. Wording the conclusion
  8. Answer the question based on your result above

In: Statistics and Probability

Right for the Customer or Right for the Salesperson? Introduction This case abstract is representative of...

Right for the Customer or Right for the Salesperson?

Introduction

This case abstract is representative of a real-world scenario. Jack was a very successful salesperson for International Business Machines (IBM), a major computer company, and was considered by his peers and customers to maintain the highest level of ethical behaviors. IBM has a highly regarded reputation in the computer industry for ethical behaviors toward customers. The company has a strict code of conduct policy regarding employee behaviors related to customer and takes steps to insure employees are aware of the code of conduct and comply with the code. This awareness by employees, especially salespeople, should insure a commitment on the part of salespeople to interface ethically with customers.

Research suggests that such codes, ethical cultures, and ethical expectations contribute to a social network in which each member (salespeople and customers) are committed to acting in the best interest (at least not acting in a harmful way) of other members in the social network. In his first five years in a sales territory, Jack had consistently exceeded his year sales quotas, earned high compensation bonuses for his sales attainment, and had qualified for sales recognition events by the company each year. In his sixth year in the sales territory, however, Jack was faced with an unusual customer situation that had implications for the customer’s ultimate satisfaction with both the product Jack was selling and with Jack’s company.

Scenario

Toward the end of the year, Jack had exceeded his annual sales goals to the extent that he qualified for a level of compensation bonuses tied to his annual sales attainment. During the latter part of September, a salesperson from a computer forms company let Jack know that one of the computer-forms salesperson’s customers was getting ready to purchase a business computer system from a competitor of Jack’s company. Jack immediately called the prospect and set up an appointment.

During the first appointment with the owner in late September, Jack found that the prospect was getting ready to purchase the competitor’s system, but before doing so, wanted to see Jack’s proposal. Jack also discovered that the competitive system with necessary software was priced around $30,000, which the owner indicated was his company’s budget for the automation project. Jack was somewhat discouraged in that he could not offer a system for that price, but did come back the next day to complete a survey of the prospect’s automation needs. Based on the survey, Jack thought that the prospect would need a small central computer with five attached workstations; three displays/keyboards and two desktop printers. The three workstations would be placed in accounting, the order department, and in the warehouse. One printer would be in the accounting office for daily bookkeeping and one printer would be in the order department/warehouse. Additionally, Jack found that the prospect was projecting additional growth in the business around 100 percent over the next two years. A major factor in the prospect’s decision was that the computer network had to be delivered and installed by the end of the year. Jacks major concern was not only the prospect’s low budget, but also the required delivery timeframe that Jack could not meet with any of his company’s current products.

Jack’s Actions

During the week, as Jack was about the give up on the prospect due to the prospect’s low budget and delivery requirement, Jack’s company announced a new business computer that seemed to meet Jack’s prospect’s requirements. The new computer consisted of a small, limited capacity computer that would accommodate up to five workstations in any combination of displays/keyboards and desktop printers, had a price under $30,000 and could be delivered in two months. Jack immediately configured a product solution for the prospect consisting of the business computer, three workstations, and two desktop printers that had a total price of around $32,000 including the application software for the prospect’s business. Jack realized that his proposed business computer fit the prospect’s current business requirements, but would not be able to accommodate any future growth. Jack, however, decided to go ahead and present the proposal to the prospect but not inform the prospect that the proposed product solution was limited to only current needs.

The Results

The prospect liked Jack’s proposal as compared to Jack’s competitor’s proposal, and placed an order for the business computer and software. Jack left the customer’s office very satisfied because the last minute sale put him in the next tier for bonuses for sales attainment. This sale represented an extra $1000 in commission on the sale. All went well. The business computer was delivered and installed in December. Then there was good news and bad news. The good news was that Jack’s product solution perfectly met the customer’s current needs and the customer was delighted. Then the bad news came. On the first business day of January, the customer called Jack, told him how happy he was with the product, and informed Jack that he wished to move up his anticipated growth schedule and immediately add additional workstations (displays/keyboards and printers). At this point, Jack panicked knowing that the product he had sold to the customer was at its maximum capacity and could not accommodate the customer’s growth plan, but thinking he had one or two years to address the additional growth with another product solution. The customer expects Jack to set up an appointment as soon as possible to place an order for the additional workstations.

The Issue

What should Jack do? Jack realized he could be in trouble with both the customer and with his company. The customer would probable realize the company had purchased a business system that could not expand to keep up as transaction volumes increased the business grew rapidly over the next few years. Jack’s company identified such sales behavior as violating the company’s policies and grounds for dismissal.

Questions for Discussion

1. Was Jack’s action ethical? Why or why not?

2. What factors (both internal and external) possibly led to Jack’s situation with the customer?

3. What actions do you think Jack should take? Should Jack discuss the situation with his immediate manger? How should Jack approach the customer?

In: Psychology