Questions
Consider the following. x 1 2.5 3 4 5 1.5 y 1.5 2.2 3.5 3 4...

Consider the following.

x 1 2.5 3 4 5 1.5
y 1.5 2.2 3.5 3 4 2.5

(a) Draw a scatter diagram for the following data. (Do this on paper. Your instructor may ask you to turn in this work.)

(b) Would you be justified in using the techniques of linear regression on these data to find the line of best fit? Explain

In: Statistics and Probability

A perfectly competative market with demand Qd=80-P. Let there be 4 firms (indexed by i=1,...,4), each...

A perfectly competative market with demand Qd=80-P. Let there be 4 firms (indexed by i=1,...,4), each with a cost curve C(qi)=6qi+3/2qi^2.

A) The firms interact in a competative market. What is the equilibrium p and q?

B) Firms 1 and 2 merge and become a firm with a reduced cost function C(qi)=1/2qi^2 while remaining fringe firms have the same cost functions as earlier. The market is still perfectly competative. What is the merged firms output, and there is no price ceiling.

C) Do consumer prefer the market before or after the merger, why?

Please show step by step

In: Economics

Consider these 4 samples potentially drawn from 4 different populations. Sample #1) 25 19 14 21...

Consider these 4 samples potentially drawn from 4 different populations. Sample #1) 25 19 14 21 18 18 19 19 Sample #2) 25 15 22 20 15 20 16 20 20 16 20 11 Sample #3) 22 16 23 13 14 19 18 10 11 Sample #4) 12 11 13 10 25 19 Test the hypothesis using the samples.

assuming that a = 0.05

Ho: u2 = u3

Ha: u2 not equal to u3

Ho: sigma 2 < = to sigma 3

Ha: sigma 2 > sigma 3

In: Statistics and Probability

Consider these 4 samples potentially drawn from 4 different populations. Sample #1) 25 19 14 21...

Consider these 4 samples potentially drawn from 4 different populations. Sample #1) 25 19 14 21 18 18 19 19 Sample #2) 25 15 22 20 15 20 16 20 20 16 20 11 Sample #3) 22 16 23 13 14 19 18 10 11 Sample #4) 12 11 13 10 25 19 Test the hypothesis using the samples above.

Assuming that a = 0.05

Ho: u1 = u2

Ha: u1 not equal to u2

Ho: u2 < = u3

Ha: u2 > u3

In: Statistics and Probability

team 7 provide a  3-4 paragraph answer for the following questions 1-What are 4 key things you...

team 7 provide a  3-4 paragraph answer for the following questions

1-What are 4 key things you learned about the topic from reading their paper?

2-How does the topic relate to you and your current or past job?

3-Critique the paper in terms of the organization and quality.

In today’s technological age, employers have a plethora of options on how and where to find employees. Companies often choose between two different sources to find candidates: internal or external sources. The Internal sources that organizations use to acquire new hires include locations for walk-ins, career programs, website job listings, employee referral, internships, and pay for new hire services by career search websites. External sources can vary from job postings or job posting sites, to local recruiters, and career fairs. Often, the internal sources are the most effective method that employers have when it comes to finding employees.

Internal sources have three significant methods to successfully convert applicants to interviews. The first one is Website job listings. On the job listing the human resource department directly handles with every applicant, which is quickly evaluated, responds with acknowledgement for every application. The second one is career programs, it immediately has new hires for-go a training program that could be paid by the employer or educational grants or out of pocket. This career program would allow the new hires to be ready for joining the company. The last method is walk-in and career fairs. This means that new hires would be recruited in specific locations to directly apply with human resources.

Websites like Indeed and Monster have great career builder tools for online applicants which is one of the reasons why external sources have become successful in finding candidates for employer. Some companies want more options to recruit new hires rather than official websites, walk-in, career programs, career fairs, and employee referrals so they usually have external sites like monster and indeed.com promote paid advertisements for positions. This is why external individual companies that have been paid to have certain positions advertised are considered an internal source. These types of sources end up giving the highest percent of interviews and hires. Human resource departments have been recruiting employees today in a much more specific way. They have utilize their incentives as tools to target quality employees in to staying with the company or recruit talent. These tools and incentives were not always available in the past, so some companies have been creative in utilizing these tools to widen their candidate pools and hire the individual that meets the qualifications of their ideal employee.

The way employers hire candidates is broken down to straight forward metrics from SilkRoad technology, a global provider of social talent management solutions that has been partnered up with over 700 of its customers to uncover which recruitment methods yield the most interviews and hires. SilkRoad collected data from OpenHire, an applicant tracking system, that measures the 222,308 job postings, 9.3 million applicants to the 147,440 interviews, ending up to the 94,155 hires, into a rate. These measurable rates would help optimize recruitment, advertising budgets, and new sources of hire. External online recruitment marketing sources hires are about half of all interviews and search engines, considered an external source, produced over 90% of interviews. Companies in today's industry are utilizing the internet and other mobile technologies for new hires which can lead to a quicker turnaround in finding quality employees.

Companies lean towards using online methods of hiring since more than half of the interviews are created by online applications. The external online recruitment market is a resource that companies can pay to have an internal process made to acquire new hires specific to their needs. Examples of these external recruitment markets are Monster, hcareers.com, and indeed.com. These companies supply several tools as online applications to successfully find new hires. I personally believe utilizing internal sources is the better choice because you are able to create a physical presence while meeting the HR department. Local recruiters like CERS and Octagon Technologies have added physical tools within communities to collect new hires. Career fairs also have a social dynamic as a physical location for getting local talent.
            Once a company knows what employee they are looking for and what sources they are utilizing to find them, they must research what benefits they will offer to entice the employee and create loyalty to the company. Companies normally implement standard employee benefits that include covering 50% of a universal Health insurance plan and providing 2-weeks paid vacation after the first year of joining the company. Then for more innovative employee incentive ideas for talent, companies tend to use 20% discounts and stay bonuses, also known as retention bonuses due to the fact that they attempt to reward the employee for staying with the company for different increments of time. Other employee incentives that companies use to promote an attractive program are referral bonuses after a new hire has past the a certain time mark with the company, onboarding or hiring bonuses where students can work to get loans and tax incentives to attract young talent, and remote work options which gives hires an advantage of today’s technologies allowing them to work at home. The option I believe is most popular with employees would be cash bonuses and company profit sharing.

Once companies find the employees they must also focus on retaining them. It cannot be underestimated how paramount it is to ensure that employees remain at the company they work for. There are many key factors on how to ensure employee retention is secured and why that is so. The cost effectiveness of employee retention is what is most important for human resource departments when discussing the post hiring stage of the company. This also plays in line with the immersion period for when employees begin their job at the company. Orientation and company culture is what is key.
            It is not cost effective at all when a company loses employees and has high turnover rate. Turnover is extremely expensive and this factor is what many human resource departments fear during the hiring process. Finding the qualified applicant is just as important as ensuring the applicant will stay with the company. Replacing an employee can cost up to 50-60% of the annual salary of a position. In addition to the cost of turnover, there are also unfilled position cost. With an unfilled position at a company productivity is down and soft costs and be exponentially increased.
            With new employment it must be noted that the anticipated results of a new employee are not immediate. Companies with too high of expectation during the orientation period may put too much pressure on an employee. It is better to take time and allow the new employee to immerse themselves into the company culture and truly understand how to do their job. This is otherwise known as the ‘learning period.’ Company culture is also something to be taken into consideration in regard to employee retention.
            Employee retention can easily be secured through a positive company culture. Cultures vary from one company to another however, hostile cultures that make employees feel uncomfortable and unwelcome will experience higher turnovers. Sexual harassment should be taken very seriously, and company culture should reflect that. As a new employee, one would want to feel welcome and feel part of a culture where they can be comfortable. There is enough stress getting used to a new job, if the company culture is accommodating then employee will want to stay. By implementing the company culture, team building, and employee engagement and ensuring that companies are invested in their employee’s workplace happiness, employees will invest in the company they work for and the company can decrease their turnover rates.

It is incredibly important when working for a company for all employees to have a positive mindset, which will result in a supportive environment. An enthusiastic surrounding will result in higher productivity, as well as an increase in the company’s success. When a person feels supported and accepted due to the cheerful surrounding at their job, that individual will want to see the business flourish by working harder, rather than an employee who feels discouraged about their negative work environment. Countless adults are at work more than they are at home, so why not make it worthwhile? There are five main tips that will improve a positive work environment: make a strong effort to connect with teammates, show appreciation and positivity towards peers, have open ears and listen to other people’s ideas, have trust in the coworkers around, and lastly to be spontaneous.

The first pointer of a constructive work environment is to make a strong connection with teammates. When someone goes out of their way to interact with their peers, it shows a sense of consideration that they care for the business they represent, and that ends up radiating motivation to individuals in all sorts of ways. This is because unless that person is a one-man team, it is critical to work with the people around to make the company thrive and be successful. Also, anyone can send a message in an email, but that lacks getting to know that coworker face-to-face and will end in short messages and not-so connecting responses.

Another suggestion would be to show appreciation towards coworkers as much as possible when they accomplish a task for the business. This may seem like stating the obvious, but it is surprising how often a company is insufficient in awarding a workmate when they do a superior job. From my experience, one of the top complaints told by employees is that they feel like they do not matter to the company, and how all their hard work is not being appreciated enough. Without them, the company would not be where they are today, and to show gratitude managers can do a quick “great job” or a 5-minute appraisal out of the day. This will even make that coworker work harder than they already were because they feel invested in the work that they are doing. A business owner or manager will only gain by giving something as simple as a “thank you.”

To develop a positive work locality, it is significant to have open ears as well as an open mind when listening to other people’s ideas. It does not matter if it is the CEO or the janitor, everyone has their own personal ideas and first-hand experiences with the company. This goes along with trusting team members, which will also create a positive work environment. Nothing is more valuable than trust, whether it is work-related or something personal. Without trust, it is like a train with no tracks- the train will go nowhere. When delegating with peers, it is important for managers to try to let go of wanting to take control of everything, and allow them to help with the tasks needed to be complete. Trust is a very powerful word that can take years to build, yet seconds to break. If someone is incapable of trust, that individual will not be able to work well with others, and therefore will crumble in the business, which will negatively impact the workplace.

The last part of tips that will improve a positive work environment is being spontaneous. Employment does not always have to be so serious; it is okay to have some enjoyment at work. An average American works at least 45 hours a week, which ends up being a little less than 1/3 of the week; why not make the most of it by connecting well with the team and collaborate together to reach the same goal. When teams work nicely together, whether it is during downtime in the office or coming up with a last minute work party for the Super bowl, the outcome is incredible and will not only make anyone feel better about themselves, but create a pleasant work environment.

After discussing why having a positive work environment is so predominant when uncovering different ways of how to maintain a successful business, it is an appropriate transition into the next topic that will help properly acquire and retain employees: the importance of team building. Forbes described team building as having a bad rap, but it is actually one of the most important investments a manager or CEO can make for the company. Not only will team bonding increase collaboration, but it will also ease confrontation in the workplace. Team building has also been known to initiate trust, and engage the employees into wanting to work harder. This is fantastic for the company’s culture, which will plant a seed into impressive fortune.

A way of engaging in team building is to not make the employees feel like it is a typical day in the office. When taking time out of the day to generate team bonding, it is vital to spend time and get to know each other, as well as voice experiences that will aid in working towards a specific goal. This will result in a positive fellowship with one another, yet in a more organic way. Believe it or not, happiness and learning go hand in hand. Testing out different activities with the staff can generate a cheerful mood among employees, which will conveniently help the business itself.

When companies look to make their employees feel valued they must first look at how they approach employee engagement and how their employees are reacting to it. Do employees feel disengaged or feel included in their organization? To find this out companies are utilizing new resources to uncover the current state of their employee engagement. In 5 Tips for Measuring Employee Engagement, Saige Driver goes over 5 ways a company can approach seeing where their employee engagement at. The first step is to define what employee engagement actually means to the organization. Each individual member of a company may have a different idea of what employee engagement means to them and how they feel employee engagement should be approached, so by defining what employee engagement means to the organization as a whole it will better portray what their initiatives and plans are trying to achieve.

The number one way to measure engagement and how employees feel is through individual, anonymous surveys. With changes in technology companies are now able to utilize apps that send out frequent surveys regarding events that have happened throughout the year and get immediate answers about how employees feel this contributes to their engagement. Driver suggest sending “super-short surveys – one or two questions maximum. This makes it easier for managers to collect survey data regularly and drive timely action”, and “protecting employees by making the surveys anonymous encourages critically transparent feedback even if the feedback is negative” (Driver, 2017). By having these surveys, companies get data that they can utilize to formulate action plans for engagement that actually work. The most important part of these surveys to focus on is ensuring that they are asking the right questions. The article suggests using qualitative and quantitative questions to get well rounded feedback from employees. Questions should ask, What do we do to make you feel valued at work? and also ask, Why does this make you feel valued?

Another way to measure employee engagement that also makes employees feel valued is by having individual, informal, and candid conversations with employees. Surveys are a great way to get data for a plan, but when speaking directly with the source of the surveys, managers are able to acquire more details about answers given. Driver also discusses how exit interviews are a great way to find out why an employee is leaving and what changes should be made to ensure more employees do not leave, but that conducting interviews with employees that choose to stay and grow with the company may be even more insightful because they will discuss why they are staying and this will show a company what part of their employee engagement plan is actually working. Personally, I work for a company that has defined employee engagement and has presented workshops on what it is, but does nothing to actually promote employee engagement into the company. Many employees rely on myself as a manager to make them feel valued which in turns exhausts the management team because we do not have anyone above us do the same.

There should be a balance of engagement all down the line of a company from the top to the bottom, each tier being motivated and made to feel valued. The way I make my employees feel valued is by being there for them and not shying away from my responsibilities to them. If they have a table the is angry I will do my best to turn their experience around not for the guest, but to ensure that they guest does not take their anger out on my employee. The other way I attempt to make employees feel engaged is by thanking them. When I see them doing something good, or something that goes above and beyond I recognize them with a free crew meal, tickets for a drawing, or just a simple thank you. I also like to write encouraging messages and quotes on the mirrors at work so employees are reminded daily and throughout the day that I appreciate them.

The final step to ensuring companies find the best way to make employees feel engaged is by ensuring that surveys or individual conversations are conducted frequently throughout the year. My suggestion would be to have surveys sent out right after engagement events happen to see how employees are feeling about the event, and employee conversations should be planned in advance so they have time to have questions to ask managers and have solutions for issues they may be facing every day. Making employees feel valued does not always take an large amount of money to accomplish, but it will take time to find the right balance that works for the employees currently working in the company and for future employees. Not every idea will work for everyone, but by having an action plan in place, companies are more likely to find a good mix to ensure that their employees are staying loyal and are contributing to the success of the company for years to come.

Throughout the paper we described different methods of finding, acquiring, and retaining employees. It started with the research that went into these effective methods and covered the advantages that new hires can take advantage of in order to qualify for certain or additional incentives, standard incentives that most full-time companies should use. These included dynamic incentives that some companies offer and cash incentives that directly create a positive impact. We focused on why retaining employees is just as important as finding the right candidate for a company, and team building was discussed which we learned is a more recent trend for companies to focus on to ensure that they have employees that work together to make the company successful. We also looked into making work more “fun” or “enjoyable” since the average employee spends majority of their week at work. We explored employee engagement, what it means, and how companies can implement it into their human resources plan. All of these topics are crucial in finding a workforce that contributes directly and continuously to the success of the organization's mission. It is not without its difficulty to find the best mix of what works for a company and its employees, but once a company finds that balance they are guaranteed a happy workforce that will lead to their company’s success

In: Operations Management

1. 1-methyl-1,2-epoxycyclohexane treated with 1) CH3MgBr and 2) H20 provides what product? 2. 1,5-epoxypentane treated with...

1. 1-methyl-1,2-epoxycyclohexane treated with 1) CH3MgBr and 2) H20 provides what product?

2. 1,5-epoxypentane treated with EXCESS HI provides what product?

In: Chemistry

Consumer Research, Inc., is an independent agency that conducts research on consumer attitudes and behaviors for...

Consumer Research, Inc., is an independent agency that conducts research on consumer attitudes and behaviors for a variety of firms. In one study, a client asked for an investigation of consumer characteristics that can be used to predict the amount charged by credit card users. Data were collected on an annual income, household size, and annual credit card charges for a sample of 50 consumers. The following data are contained in the file below.

Income
($1000s)
Household
Size
Amount
Charged ($)
54 3 4,016
30 2 3,159
32 4 5,100
50 5 4,742
31 2 1,864
55 2 4,070
37 1 2,731
40 2 3,348
66 4 4,764
51 3 4,110
25 3 4,208
48 4 4,219
27 1 2,477
33 2 2,514
65 3 4,214
63 4 4,965
42 6 4,412
21 2 2,448
44 1 2,995
37 5 4,171
62 6 5,678
21 3 3,623
55 7 5,301
42 2 3,020
41 7 4,828
54 6 5,573
30 1 2,583
48 2 3,866
34 5 3,586
67 4 5,037
50 2 3,605
67 5 5,345
55 6 5,370
52 2 3,890
62 3 4,705
64 2 4,157
22 3 3,579
29 4 3,890
39 2 2,972
35 1 3,121
39 4 4,183
54 3 3,730
23 6 4,127
27 2 2,921
26 7 4,603
61 2 4,273
30 2 3,067
22 4 3,074
46 5 4,820
66 4 5,149

Managerial report:

1) Use methods of descriptive statistics to summarize the data. Comment on the findings

2) Develop estimated regression equations, first using annual income as the independent variable and then using household size as the independent variable. Which variable is the better predictor of annual credit card charges? Discuss your findings.

3) Develop an estimated regression equation with annual income and household size as independent variables. Discuss your findings.

4) What is the predicted annual credit card charge for a three-person household with an annual income of $40,000?

5) Discuss the need for other independent variables that could be added to the model. What additional variables might be helpful?

In: Statistics and Probability

A study was conducted to investigate the influence of a driver's age, number of driving years...

A study was conducted to investigate the influence of a driver's age, number of driving years and attention span (the higher, the more detailed) on the number of speeding tickets within the last five years. Given a driver at age 30, who has been driving for 10 years with an attention span score of 5, what is the number of tickets that can be expected? Data can be found in the tickets tab.

8 32 16 7
6 35 19 10
5 24 10 2
10 41 25 9
11 46 30 1
6 28 12 3
5 25 10 2
4 24 9 1
6 28 12 3
12 49 33 6
15 50 30 7
2 21 5 4
13 41 26 6
7 30 15 5
9 41 25 6
7 27 11 2
10 39 23 4
12 47 31 2
16 46 32 8
5 21 5 2
4 24 8 1
10 37 21 9
6 28 12 3
1 20 2 3
12 43 27 8
8 32 16 7
8 32 16 7
3 37 7 6
5 26 10 1
8 29 13 4
13 42 26 7
2 22 4 2
7 41 15 7
12 47 31 8
5 33 17 8
10 36 20 5
2 23 5 2

The obtained statistic is:

.883
.388
83.01
155.33

In: Statistics and Probability

b. Write down potential questions that you could answer using regression analysis for the Happiness_2011.xls dataset...

b. Write down potential questions that you could answer using regression analysis for the Happiness_2011.xls dataset

c. Perform one simple regression using any two reasonable variables from the Happiness_2011.xls file (two quantitative variables) and show the analysis result

d. Interpret the findings from the simple regression analysis

e. Add one or more quantitative variable (including dummy variable that have values of 0 and 1) to the analysis in #b, perform one multiple regression analysis

f. Interpret your findings from the multiple regression analysis

Age Children Education_Year Sibling Income Happiness (3 levels) EQ (3 levels) Health (4 levels)
52 5 6 1 9 Not too Happy Below Average Very poor Health
61 3 12 2 18 Pretty Happy Average Poor Health
50 3 13 2 18 Not too Happy Average Poor Health
56 0 17 1 18 Pretty Happy Average Poor Health
64 3 12 1 8 Pretty Happy Below Average Poor Health
51 2 10 2 9 Pretty Happy Below Average Poor Health
56 6 9 2 5 Not too Happy Below Average Poor Health
61 3 15 2 16 Pretty Happy Below Average Poor Health
68 2 12 0 16 Pretty Happy Below Average Poor Health
69 4 11 2 17 Not too Happy Below Average Poor Health
46 3 9 2 3 Not too Happy Below Average Poor Health
42 1 13 2 9 Not too Happy Below Average Poor Health
36 4 9 2 11 Not too Happy Below Average Poor Health
24 0 12 2 16 Not too Happy Below Average Poor Health
57 0 19 3 25 Pretty Happy Above Average Healthy
41 2 12 3 21 Pretty Happy Above Average Healthy
24 0 16 1 22 Very Happy Above Average Healthy
39 0 16 1 22 Not too Happy Above Average Healthy
55 4 16 3 22 Pretty Happy Above Average Healthy
19 0 13 3 23 Pretty Happy Above Average Healthy
46 2 12 0 19 Pretty Happy Average Healthy
41 3 12 3 18 Pretty Happy Average Healthy
40 0 16 3 18 Not too Happy Average Healthy
48 1 13 3 11 Pretty Happy Below Average Healthy
41 2 14 0 15 Pretty Happy Below Average Healthy
66 2 12 3 16 Pretty Happy Below Average Healthy
24 1 14 3 13 Very Happy Below Average Healthy
38 0 12 0 13 Pretty Happy Below Average Healthy
59 0 6 3 15 Pretty Happy Below Average Healthy
38 0 17 1 15 Not too Happy Below Average Healthy
36 6 11 3 16 Not too Happy Below Average Healthy
19 0 13 3 17 Pretty Happy Below Average Healthy
24 0 16 3 11 Pretty Happy Below Average Healthy
51 0 11 1 13 Very Happy Below Average Healthy
29 0 12 3 15 Pretty Happy Below Average Healthy
19 0 11 3 16 Pretty Happy Below Average Healthy
33 0 12 1 17 Very Happy Below Average Healthy
31 0 14 3 17 Pretty Happy Below Average Healthy
60 2 12 4 23 Pretty Happy Above Average Very Healthy
44 2 16 4 21 Pretty Happy Above Average Very Healthy
37 3 12 4 23 Pretty Happy Above Average Very Healthy
50 1 17 4 20 Not too Happy Average Very Healthy
63 2 17 4 18 Pretty Happy Average Very Healthy
42 4 10 4 20 Pretty Happy Average Very Healthy
43 0 20 4 20 Not too Happy Average Very Healthy
46 1 17 4 19 Pretty Happy Average Very Healthy
65 0 18 4 18 Very Happy Average Very Healthy
24 0 12 4 20 Pretty Happy Average Very Healthy
46 3 16 4 2 Very Happy Below Average Very Healthy
50 2 12 4 15 Pretty Happy Below Average Very Healthy
20 0 13 4 10 Pretty Happy Below Average Very Healthy
36 1 12 4 13 Very Happy Below Average Very Healthy
61 0 16 4 17 Very Happy Below Average Very Healthy
61 4 12 1 14 Pretty Happy Below Average Very poor Health
54 3 10 2 21 Very Happy Above Average Poor Health
54 0 16 2 24 Very Happy Above Average Poor Health
49 2 12 2 22 Pretty Happy Above Average Poor Health
29 0 12 0 22 Not too Happy Above Average Poor Health
56 2 12 2 18 Pretty Happy Average Poor Health
28 1 12 0 17 Very Happy Below Average Poor Health
54 2 12 2 17 Pretty Happy Below Average Poor Health
64 3 14 0 2 Pretty Happy Below Average Poor Health
53 2 12 2 13 Pretty Happy Below Average Poor Health
82 3 12 0 15 Not too Happy Below Average Poor Health
65 3 12 2 13 Pretty Happy Below Average Poor Health
49 2 14 3 21 Very Happy Above Average Healthy
33 4 12 1 22 Pretty Happy Above Average Healthy
82 3 18 3 25 Very Happy Above Average Healthy
53 2 13 3 22 Pretty Happy Above Average Healthy
35 2 18 0 23 Pretty Happy Above Average Healthy
52 2 11 3 21 Pretty Happy Above Average Healthy
38 0 12 0 21 Pretty Happy Above Average Healthy
27 1 14 3 25 Very Happy Above Average Healthy
45 2 19 3 25 Pretty Happy Above Average Healthy
35 4 18 0 19 Very Happy Average Healthy
44 4 12 3 19 Pretty Happy Average Healthy
64 1 12 3 18 Pretty Happy Average Healthy
67 2 11 3 19 Very Happy Average Healthy
46 2 12 3 19 Very Happy Average Healthy
44 3 12 0 19 Pretty Happy Average Healthy
63 3 12 3 19 Pretty Happy Average Healthy
30 0 16 3 20 Very Happy Average Healthy
44 3 16 3 20 Very Happy Average Healthy
57 0 12 3 18 Pretty Happy Average Healthy
35 3 16 0 20 Very Happy Average Healthy
35 3 12 3 20 Pretty Happy Average Healthy
24 0 14 3 12 Very Happy Below Average Healthy
65 3 18 4 21 Very Happy Above Average Very Healthy
66 2 16 4 23 Pretty Happy Above Average Very Healthy
65 2 14 4 22 Very Happy Above Average Very Healthy
31 1 18 4 22 Very Happy Above Average Very Healthy
34 2 16 4 25 Pretty Happy Above Average Very Healthy
55 3 12 4 18 Pretty Happy Average Very Healthy
36 2 11 4 19 Very Happy Average Very Healthy
37 2 16 4 20 Very Happy Average Very Healthy
23 0 16 4 17 Pretty Happy Below Average Very Healthy
79 3 12 4 14 Pretty Happy Below Average Very Healthy
28 0 16 4 15 Not too Happy Below Average Very Healthy
36 0 13 4 16 Very Happy Below Average Very Healthy
68 5 12 4 16 Pretty Happy Below Average Very Healthy
33 2 14 4 12 Pretty Happy Below Average Very Healthy

In: Statistics and Probability

Peter and John are great friends. They like to play games with numbers. This time, Peter...

Peter and John are great friends. They like to play games with numbers. This time, Peter has given John a list of numbers and given him the task of determining if it is possible to choose a subset of them such that they sum is equal to another given number.

Build an algorithm in Python using brute force to help John with his problem.

INPUT

  • The first line corresponds to N, the amount of numbers given by Peter
  • The next N lines contain each of the numbers
  • The last line contains the desired sum

OUTPUT

  • True or False (Whether is possible to obtain the desired sum or not)

Sample Input 1:

7

7

3

6

1

10

11

4

20

Sample Output 1:

True

Sample Input 2:

4

1

2

3

4

2

Sample Output 2:

True

Sample Input 3:

5

2

1

5

8

10

4

Sample Output 3:

False

Sample Input 4:

5

92

16

27

72

96

303

Sample Output 4:

True

Sample Input 5:

8

82

36

46

91

42

3

57

61

294

Sample Output 5:

True

Write a program, test using stdin → stdout

In: Computer Science