1.In this problem and the next one, we’re going to make a very simple spam checker program by just looking
ooking at how likely a given email is to be spam based on the words it contains. In particular, in this problem we’re going to count how often words are present in spam emails within some set of training data (which here means a set of emails that have already been marked as spam or not spam manually).
We have already started to write a function spam_score(spam_file, not_file, word), which takes in two filenames, along with a target word (a lowercase string). Both filenames refer to text files which must be in the same directory as hw07.py (we’ve provided several such files in hw07files.zip). The text files contain one email per line (really just the subject line to keep things simple) - you can assume that these emails will be a series of words separated by spaces with no punctuation. The first file contains emails that have been identified as spam, the second contains emails that have been identified as not spam.
Since you haven’t learned File I/O yet, we’ve provided code that opens the two files and puts the data into two lists of strings (where each element is one line - that is, one email). You then must complete the function, so that it returns the spam score for the target word. The spam score is an integer representing the total number of times the target word occurs across all the spam emails, minus the total number of times the word occurs in not-spam emails. Convert all words to lowercase before counting, to ensure capitalization does not throw off the count.
2.This first part of the Individual Research Project is an Outline and Annotated Bibliography. The
Outline should provide a very brief
tline should provide a very brief overview of what you think you will do in the Policy Brief.
The Annotated Bibliography requires you to summarize at least three peer-reviewed scholarly
sources you will cite in the Policy Brief.
This assignment is designed to get you thinking about your topic in a way that clearly anticipates
the writing you will do for the Policy Brief. We want you to brainstorm and do a bit of research
well in advance of the deadline for the Policy Brief and, most importantly, we want you to put
your ideas down on paper so that we can give you feedback before writing the actual Policy
Brief. In other words, we are asking you to submit an Outline and Annotated Bibliography so
that we can help you write the best Policy Brief possible.
Your Outline should be divided into the following five sections and should be written in
I. Audience: Identify the audience you are addressing and consider what that audience
is interested in. Who are you talking to in the Policy Brief and what does this suggest
about the approach you should take? (75-100 words).
II. Problem: State how you know the issue exists. What is the proof that students need
to improve this skill? (125-150 words).
III. Importance of Problem: Indicate why this problem matters. What are the
consequences of the problem not being addressed? Why do students need to improve
this skill? (100 words)
IV. Solution: Identify your preferred solution. What solution will work in your context
and why? (75-100 words)
V. Alternative Solution: Identify at least one other possible solution. What other
solutions did you consider? (75-100 words)
The total length of the Outline should be between 450 and 550 words.
When you submit your Outline, you must also include an Annotated Bibliography. An Annotated
Bibliography is an alphabetical list of research sources that provides bibliographical data (the
title, author, date, publisher, etc.) and a short summary or annotation of the source.
Your Annotated Bibliography should contain a minimum of three scholarly or peer-reviewed
sources, each with an accompanying annotation that is between 150 and 250 words long. The
annotations must summarize the research question or thesis, research methodology, results, and
conclusion. Annotations must include summaries and paraphrased information, NOT quotations.
A good annotation will include two separate paragraphs: 1) a paragraph summarizing the
research question or thesis, research methodology, results and conclusion; and 2) a paragraph
commenting on why this source is relevant for your research.
5.students are expected to research and compose a paper based on the application of concepts and theories examined in class.
ies examined in class. This paper is not a literature review, though a literature review is part of your work. As this course takes place in a compressed timeline, I provided some suggestions for research topics. Feel free to use one of these as a springboard or propose your own.
At the end of the second week of class, students submit a three-page research paper prospectus. A research prospectus is a preliminary plan for conducting a study. This is not a detailed and technical research proposal, but rather, an analysis of the issues likely confronted in such a study. In essence, it is a preliminary proposal of work.
Research Paper Prospectus Elements
To complete the Research Paper Prospectus, consider the following elements. While the prospectus is limited to three pages of body content, remember, students must cover each of these areas as relevant to the plan for research:
Research Problem. What is the research problem? A problem is a situation when left untreated, produces a negative consequence for a group, an institution, or a(n) individual(s). What makes it a problem? For whom? Who says so?
Assumptions. On what assumptions is the work based? Which assumptions are verifiable in literature? Which assumptions are speculative?
Theoretical Issues. What theoretical issues arise from the study? For example, "theoretically," how is the problem and suspected results explained to other scholars? Is there a behavior view? A social systems view? Are there other theoretical orientations to consider in the study's design?
Literature Review. What, in general, does the literature say about the topic? While more development is expected for the final paper, a review of major theories, research, and writers in the field is needed.
Research Questions. Based on the problem, what are the research questions to be answered? How and why will answering the questions contribute to solving the research problem? Remember....a research question can only be answered with empirical data or information.
General Research Plan. In general, what research is necessary to answer the research question. What kind of data is needed? Specify the type, such as surveys, observations, or interviews. Who is to be studied and why? How is the data reduced and made sense of? How is the quality of the data assured?
Anticipated Difficulties and Pitfalls. What kind of difficulties and pitfalls are expected in a study of this nature? What can be done to prevent them or minimize their effects?
Anticipated Benefits. Who will benefit from the fact this research is undertaken? How? Why? Who might be disturbed by this proposed study? How? Why?
Paper Format Requirements
The Research Paper Prospectus is presented in standard APA 7 format, with a cover page, running head, body, and references list. The cover page and references do not count toward the three-page requirement. The body uses headers and in-text citations in the manner prescribed by APA. Students should include any references they know at the time they submit the prospectus, though it is expected the references may change or increase in number. Full and complete adherence to APA is required.
As APA format is the rule, remember the formatting rules shown on the Sample Paper (Links to an external site.):
Times New Roman, 12pt
1" margins on all sides
Double spaced, with extra line spaces removed (see below)
Page numbers in the upper right
Two spaces after concluding punctuation
150-250 word abstract with keywords
APA-style in-text citations and quote format. Use the Purdue OWL in-text citation information (Links to an external site.)to help you.
Alphabetical (by author) reference page with correct reference format. DO NOT trust the reference generator in your word processing program. It is WRONG! Use the Purdue OWL references information (Links to an external site.)to correctly structure references and do so manually.
6.A manufacturing company is engaged in producing three types of products: A,B and C. The production department produces, each day,
epartment produces, each day, components sufficient to make 50 units of A, 25 units of B and 30 units of C. The management is confronted with the problem of optimizing the daily production of products in assembly department where only 100 man-hours are available daily to assemble the products. The following additional information is available.
Type of product Profit Contribution per unit of Product (Rs) Assembly time pee product (hrs)
A 12 0.8
B 20 1.7
C 45 2.5
The company has a daily order commitment for 20 units of product A and a total of 5 units of product B and C. Formulate this problem as a LP model so as to maximize the total profit.
7.Hello, I have a problem calculating probability for a certain thing that happened. I'll try and make it sound like
it sound like a math problem.
The problem :
What are the chances of a 4 sided die landing on 1 twice and on 2 twice out of 4 rolls. The solution I came up with originally was (2/4) x (2/4) x (2/4) x (2/4) . Which I realized was wrong as this allowed the die to land on 1 four times in a row. So then I came up with this soultion (which i still think is wrong) (2/4) x (2/4) x (1/4) x (1/4) . So the reasoning behind this is : The first roll obviously has a 50% chance to roll on either 1 or 2. Second roll is the same. BUT, lets say both of them land on 1, and now it HAS to land on 2 the remaining two times. So my problem is with the current solution that I have is what if the die lands on 1 on the first roll, then on two for the second one. then the third roll would still have a 2/4 AKA a 50% chance of landing on either one. I'm sure the last roll is 1/4 but I just dont know if the order matters on the rolls. This has been driving me crazy the last hour. Please help if you can thanks
8.URGENT PLZZZ PLZZ ANSWER
Coupon redemption, a strategy for spurring sales, is the variable of interest to this study.
erest to this study.
Needless to say, this sales strategy will be effective when the distribution channels for the product in question are well planned, when there is sufficient advertising to let the consumers know about the promotion, when the package clearly indicates the coupon redemption scheme with the expiration date, if any, and the packaging of the product is of the right size (neither too big nor too small to serve the needs of the consumer). Of course, all these factors will not help, unless there is an established frequent need for the product for consumers.
Develop a theoretical framework for the above mentioned scenario.
Read the following information identify the concepts and develop a conceptual model for the scenario below.
Incidence of smoking in movies has started to increase again, after having declined for several decades. According to the National Cancer Institute smoking is seen in at least three out of four contemporary box office hits. What's more, identifiable cigarette brands appeared in about one-third of all movies in 2019. Exposure to smoking in movies is an important predictor of adolescent smoking initiation: smoking in movies has been shown to affect adolescents' intentions to start smoking. In turn, the intentions to start smoking are determined by a more positive attitude toward smoking after seeing a film character smoke. Recent research has revealed that the relationship between seeing a film character smoke and the attitude toward smoking is stronger when a person's identification with a film character increases. These findings are consistent with social learning theory, which predicts that attitudes and behaviors are modeled by observing the behaviors of others.
HELP URGENT PLZ
QUESTION IS NOT INCOMPLETE OR MISSING
1)Dorothy Dunning , Chief Production Manager , was on top of the world just two years ago . In her nontraditional job , she was cited to be the real backbone of the company , and her performance was in no small measure responsible for the mergers the institution was contemplating with other well - known global corporations . Of late though , the products of the company had to be recalled several times owing to safety concerns . Quality glitches and production delays also plagued the company . To project a good image to consumers , Dunning developed a very reassuring web site and made sweeping changes in the manufacturing processes to enhance the quality of the product , minimize defects , and enhance the efficiency of the workers , A year after all these changes , the company continues to recall defective products !
Do you think so research might have solved the Dorothy problem , if yes how ? (Be specific while answering and plan the body of writing recalling the concept of research ) 3marks
2) The GAAP ( Generally Accepted Accounting Principles ) do an unacceptable job of accounting for the principal activities of the Information Age companies . Today , investors are in the dark because the accounting is irrelevant . The basic purpose of accounting is to provide useful information to help investors make rational investment , credit , and similar decisions , but today's most important assets and activities - intellectual capital and knowledge work are totally ignored . Professor Robert A. Howell wants to reform the accounting system with the goal of making clear the measurement of how companies produce cash and create value .
How would you define the problem in the following case ? 2 MARKS