Questions
1. The following table gives the systolic blood pressure and age of patients. Systolic Blood Pressure...

1. The following table gives the systolic blood pressure and age of patients.

Systolic Blood Pressure

Age

131

34

132

36

122

30

119

32

123

26

115

23

137

37

  1. a) Determine an r value for this data and classify the value as weak, moderate, or strong.

  2. b) Based on your calculated r value, what can you say about the slope of the regression line?

  3. c) Determine the model equation. This is also called the regression line or the least squares line.

  4. d) Refer to your notes around the assumptions of SLR. What is the value of∑ ? ? What is the mean of the error terms? How are the error terms distributed?

  5. e) Calculate the values of the residuals and sum them.

  6. f) Calculate the standard error, ?!, and ?", and describe the meaning of ?".

  7. g) Conduct a hypothesis test at the 5% level of significance to test if the slope is significantly different from 0. What is the p – value? Determine a 95% confidence for ?#.

  8. h) Suppose we want to predict the sbp for an average Age = 31. What would a 95% confidence interval be? (Notice that although the word predict is in the question, it specifically asks for the confidence interval.)

  9. i) To predict the sbp, Y, for a person drawn at random who is aged 31, X, we would have 95% confidence in what interval? (Notice here the word confidence is used but it never specifically asks for a “confidence interval”. It just says 95% confidence in what interval. Here we are asking for a prediction interval)

In: Statistics and Probability

There are 2 questions in this assignment. Molly wants to pursue a graduate degree at New...

There are 2 questions in this assignment.

  1. Molly wants to pursue a graduate degree at New University but is unsure whether to specialize in law or medicine. To help her decide, she takes both the MCAT and LSAT exams.

LSAT: Molly's score = 120; Students at New University: M = 150, SD = 15

MCAT: Molly's score = 52; Students at New University: M = 40, SD = 6

Enter the data into SPSS and compute z-scores for each group of data.

Which graduate degree should Molly pursue?

In addition to your answer to the preceding question, copy and paste the SPSS output showing how you calculated this score and organize this in a Word document.

  1. Amy and Sarah are arguing about who is smarter. They are the same major (psychology), they have identical GPAs (3.8), and attend the same university (Temple). They’ve decided that whoever had a higher college entrance exam is the more intelligent person. However, Amy took the ACT and Sarah took the SAT.

Amy earned a composite score of 24 on the ACT where there is a population mean of the ACT is 18 (σ = 6).

Sarah earned a composite score of 1,000 on the SAT where there is a population mean for the SAT is 906 (σ = 100).  

Compute the z-scores for Amy and Sarah using SPSS. According to their agreement, who is more intelligent?

In addition to your answer to the preceding question, copy and paste the SPSS output showing how you calculated this score and organize this in a Word document.

In: Statistics and Probability

objectives Use strategies to locate, identify, and describe new ideas. Identify problems or issues that need...

objectives

  • Use strategies to locate, identify, and describe new ideas.
  • Identify problems or issues that need a new solution.

Instructions

For the first four units of the course you will maintain an “idea journal”.

  1. The journal can be a word file or whatever format is most suitable to you and agreed upon by the instructor.
  2. The ideas will come from virtually anywhere. Look at situations that interest you and try to identify what problems may exist while thinking about how you might improve upon how things are done currently.
  3. Each idea should be accompanied by a problem and how you can solve the problem or at least improve upon the current situation.
  4. Try to come up with ideas that are possible based upon your experience and resources.
  5. Developing a new rocket booster for space travel is not what I’m looking for.
  6. Try to have a wide range of ideas. The assignment will be evaluated on the number of ideas, the diversity/flexibility of the ideas, and how clearly you articulate each idea.
  7. You must submit the journal for review by the instructor at the end of Unit 4. When submitted, your journal must include no fewer than ten entrepreneurial ideas to get top marks.
  8. Your ideas should be thoroughly outlined in an MS Word compatible format.
  9. Submit your journal through electronic submission.
  10. Students must present a minimum of 20 well-supported ideas.

(can you write 10 more ideas I already write 10 ideas which is given on Chegg but I need 10 more ideas)

In: Operations Management

Email assignment You are an office manager at an accounting firm looking for new stationery (not...

Email assignment

You are an office manager at an accounting firm looking for new stationery (not “stationary”) and printed material; write to one of the printing companies you are considering and request information.

Using full sentences, correct email format, and bullet points, write a 230-250-word request for information email. Make sure that you do the following:

  • Include a subject line
  • Use correct email format
  • Include bullets that have been correctly written
  • Organize using a direct pattern

Use regular bullet points unless there is a particular order to the points. If there is, use a numbered list.

Invent the details, invent the names, invent the companies, invent the requested information (using common sense and your imagination; no research is required). Please use Times New Roman, 12 font, default margins. Do not forget to put your real name on the assignment.

Using full sentences, correct email format, and bullet points, write a 230-250-word request for information email. Make sure that you do the following:

  • Include a subject line
  • Use correct email format
  • Include bullets that have been correctly written
  • Organize using a direct pattern

Use regular bullet points unless there is a particular order to the points. If there is, use a numbered list.

Invent the details, invent the names, invent the companies, invent the requested information (using common sense and your imagination; no research is required). Please use Times New Roman, 12 font, default margins. Do not forget to put your real name on the assignment.

In: Computer Science

python Write a function pack_to_5(words) that takes a list of string objects as a parameter and...

python

Write a function pack_to_5(words) that takes a list of string objects as a parameter and returns a new list containing each string in the title-case version. Any strings that have less than 5 characters needs to be expanded with the appropriate number of space characters to make them exactly 5 characters long. For example, consider the following list:

words = ['Right', 'SAID', 'jO']

The new list would be:

['Right', 'Said ', 'Jo   ']

Since the second element only contains 4 characters, an extra space must be added to the end. The third element only contains 2 characters, so 3 more spaces must be added.

Note:

  • Title case means that the first letter of each word is uppercase and the rest lower-case. You may want to use the .title() string function. (e.g. 'SMITH'.title() returns 'Smith')
  • You should not modify the original list of string objects.
  • You may assume that each word in the list does not have more than 5 characters.
  • You may want to use the format string: '{:<5}' in this question.

For example:

Test Result
words = ['Right', 'SAID', 'jO']
result = pack_to_5(words)
print(words)
print(result)
['Right', 'SAID', 'jO']
['Right', 'Said ', 'Jo   ']
words = ['help', 'SAID', 'jO', 'FUNNY']
result = pack_to_5(words)
print(words)
print(result)
['help', 'SAID', 'jO', 'FUNNY']
['Help ', 'Said ', 'Jo   ', 'Funny']
result = pack_to_5([])
print(result)
[]

In: Computer Science

here i have a dictionary with the words and i have to find the words with...

here i have a dictionary with the words and i have to find the words with the largest size, (i mean word count for eg abdominohysterectomy) which have anagrams , like for example ,loop -> pool. Also , i have to sort them in alphabetical way so what could be the algorithm for that

public class Anagrams {
   private static final int MAX_WORD_LENGTH = 25;
   private static IArray<IVector<String>> theDictionaries =
       new Array<>(MAX_WORD_LENGTH);
   public static void main(String... args) {
       initTheDictionaies();
       process();
   }
   private static void process() {
//start here
       if (isAnagram("pool", "loop")) {                   // REMOVE
           System.out.println("ANAGRAM!");                   // REMOVE

      
//above this
   }
  
   private static boolean isAnagram(String word1, String word2) {
       boolean b = false;
       if (getWordSorted(word1).equals(getWordSorted(word2))) {
           b = true;
       }
       return b;
   }
   private static String getWordSorted(String word) {
       ISortedList<Character> sortedLetters = new SortedList<>();
       StringBuilder sb = new StringBuilder();
       for (int i = 0; i < word.length(); i++) {
           sortedLetters.add(word.charAt(i));
       }
       for (Character c : sortedLetters) {
           sb.append(c);
       }
       String sortedWord = sb.toString();
       return sortedWord;
   }
   private static void initTheDictionaies() {
       String s;
       for (int i = 0; i < theDictionaries.getSize(); i++) {
           theDictionaries.set(i, new Vector<String>());
       }
       try (
           BufferedReader br = new BufferedReader(
               new FileReader("data/pocket.dic")
           )
       ) {
           while ((s = br.readLine()) != null) {
               theDictionaries.get(s.length()).pushBack(s);
           }
       } catch (Exception ex) {
           ex.printStackTrace();
           System.exit(-1);
       }
       for (int i = 0; i < theDictionaries.getSize(); i++) {
           theDictionaries.get(i).shrinkToFit();
       }
   }
}

In: Computer Science

C++ - De Morgan’s laws commonly apply to text searching using Boolean operators AND, OR, and...

C++ -

De Morgan’s laws commonly apply to text searching using Boolean operators AND, OR, and NOT. Consider a set of documents containing the words “cars” and “trucks”. De Morgan’s laws hold that these two searches will return the same set of documents:

Search A: NOT (cars OR trucks)

Search B: (NOT cars) AND (NOT trucks)

The corpus of documents containing “cars” or “trucks” can be represented by four documents:

Document 1: Contains only the word “cars”.

Document 2: Contains only “trucks”.

Document 3: Contains both “cars” and “trucks”.

Document 4: Contains neither “cars” nor “trucks”.

To evaluate Search A, clearly the search “(cars OR trucks)” will hit on Documents 1, 2, and 3. So the negation of that search (which is Search A) will hit everything else, which is Document 4.

Evaluating Search B, the search “(NOT cars)” will hit on documents that do not contain “cars”, which is Documents 2 and 4. Similarly the search “(NOT trucks)” will hit on Documents 1 and 4. Applying the AND operator to these two searches (which is Search B) will hit on the documents that are common to these two searches, which is Document 4.

Please write a C++ program to De Morgan's Law via document search.

You can use four text files as document 1, 2 3 and 4.

Using this Assignment, read a document and create frequency map. Take the frequency map and display histogram for each word in the document.

Draw histogram in horizontal direction.

This (6) **********

my (4) ******

Truck (6) *********

In: Computer Science

Scenario: You are the assistant superintendant for a high-rise building contractor who specializes in governmental building...

Scenario: You are the assistant superintendant for a high-rise building contractor who specializes in governmental building contracts. Your company, based in Baltimore, MD, was just successful in winning a new job in NY City. This will be your first job in the big apple and your boss, the superintendent "Sam Super" is concerned about recent crane problems that he has been reading about.

He asks for your opinion about the crane safety and crane operations management.

You respond to Sam, wanting to make a good impression, that you will do some research and present him with a report on the topic. Same says "that's a good idea, college boy" and you agree to get to work on it. Knowing that Sam has a famously short attention span you decide to present your research in a concise one-page format.

Instruction:

  • Research the topic of crane safety and crane operations management as follows:
    • Google news articles available with a keyword of "crane accident"
    • Read several crane accident related articles
    • Summarize at least two articles with your opinion to create a good report for Sam
    • In the report, put references of the articles that you refer to.
  • Submit a one-page report as a Word file to Sam (the word count of your report should be no less than 400) in order to give him a current perspective on crane safety and issues
    • DO NOT cut and paste any portions of the articles into your report. Write the report in your own words based on your research of the articles.

In: Operations Management

CIS247C WEEK 2 LAB The following problem should be created as a project in Visual Studio,...

CIS247C WEEK 2 LAB

The following problem should be created as a project in Visual Studio, compiled and debugged. Copy your code into a Word document named with your last name included such as: CIS247_Lab2_Smith. Also include screen prints of your test runs. Be sure to run enough tests to show the full operation of your code. Submit this Word document and the project file (zipped).

The Zoo Class

This class describes a zoo including some general visitor information. We will code this class using the UML below. There is a video in the announcements on how to code a class from a UML diagram. There is also an example shown by the Exercise we complete together in the Week 2 class.

It is required to use a header file for your class definition that contains the private attributes and prototypes for the functions (no code in the header file!) Use a .cpp file for the code of the functions. Then create a separate .cpp file for the main function.

The file with the main function should have a documentation header:

/*

            Programmer Name: Your Name

            Program: Zoo Class

            Date: Current date

            Purpose: Demonstrate coding a simple class and creating objects from it.

*/

Coding the Zoo Class

Create a header file named: Zoo.h and a .cpp file named: Zoo.cpp. The easiest way to do this is to use the “Add Class” function of Visual Studio.

In the header file, put your class definition, following the UML as a guide. In the private access section, declare your variables. In the public access section, list prototypes (no code) for the two constructors, setters and getters and the other functions shown.

Zoo

-zooName : string   //example: Brookfield Zoo

-zooLocation : string     //city, state

-yearlyVisitors : int

-adultAdmissionCost : double

+Zoo()   //default constructor should zero numbers and set strings to “unknown”

+Zoo(name : string, place : string, visitors: int, cost : double)

+getName() : string

+getLoc() : string

+getVisitors() : int

+getAdmission() : double

+setName(name : string) : void

+setLoc(place : string) : void

+setVisitors(visitors : int) : void

+setAdmission(cost : double) : void

+printInfo() : void    //prints the name, location, visitors and adult admission cost

In the Zoo.cpp file, put the code for all the functions. Remember to put the class name and scope resolution operator in front of all function names.

Example setter:

void Zoo::setVisitors(int visitors) {yearlyVisitors = visitors;}

Example getter:

int Zoo:getVisitors() {return yearlyVisitors;}

In the .cpp file for the main function, be sure to add this to your includes:

#include “Zoo.h”

Here is some high level pseudocode for your main function:

main

            declare 2 string variables for the name and location

            declare int variable for the number of visitors

            declare double variable for the adult admission cost

            declare a Zoo object with no parentheses (uses default constructor)

            set a name for the Zoo (name of your choice such as “Brookfield Zoo”)

            set a location for the Zoo in the format: city, state (example: “Chicago, IL”)

            set the yearly number of visitors (any amount)

            set the adult admission cost (any amount)

            //use proper money formatting for the following

            use the printInfo() method to print the Zoo object’s information

            //Preparing for the second Zoo object

            //Suggestion: use getline(cin, variable) for the strings instead of cin

            Ask the user for a zoo name and input name into local variable declared above

            Ask the user for the zoo location and input the location into local variable

            Ask the user for the zoo yearly number of visitors and input into local variable

            Ask the user for the adult admission cost and input into local variable

            //Using the constructor with parameters to create an object

            declare a Zoo object and pass the four local variables in the parentheses

            use the printInfo() method to print the Zoo object’s information

end main function

SUBMITTING YOUR PROGRAM

When you are done testing your program, check that you have used proper documentation. Then copy and paste your code from Visual Studio into a Word document. Be sure to copy all three files. Take a screenshot of the console window with your program output. Paste this into the same document.

Save your Word document as: CIS247_Week2Lab_YourLastName.

Submit your Word document and also the properly zipped project folder.

C++ language

In: Computer Science

implement the above in c++, you will write a test program named create_and_test_hash.cc . Your programs...

implement the above in c++, you will write a test program named create_and_test_hash.cc . Your programs should run from the terminal like so:
./create_and_test_hash <words file name> <query words file name> <flag> <flag> should be “quadratic” for quadratic probing, “linear” for linear probing, and “double” for double hashing. For example, you can write on the terminal:
./create_and_test_hash words.txt query_words.txt quadratic You can use the provided makefile in order to compile and test your code. Resources have been posted on how to use makefiles. For double hashing, the format will be slightly different, namely as follows:
./create_and_test_hash words.txt query_words.txt double <R VALUE> The R value should be used in your implementation of the double hashing technique discussed in class and described in the textbook: hash2 (x) = R – (x mod R). Q1. Part 1 (15 points) Modify the code provided, for quadratic and linear probing and test create_and_test_hash. Do NOT write any functionality inside the main() function within create_and_test_hash.cc. Write all functionality inside the testWrapperFunction() within that file. We will be using our own main, directly calling testWrapperFunction().This wrapper function is passed all the command line arguments as you would normally have in a main. You will print the values mentioned in part A above, followed by queried words, whether they are found, and how many probes it took to determine so. Exact deliverables and output format are described at the end of the file. Q1. Part 2 (20 points) Write code to implement double_hashing.h, and test using create_and_test_hash. This will be a variation on quadratic probing. The difference will lie in the function FindPos(), that has to now provide probes using a different strategy. As the second hash function, use the one discussed in class and found in the textbook hash2 (x) = R – (x mod R). We will test your code with our own R values. Further, please specify which R values you used for testing your program inside your README. Remember to NOT have any functionality inside the main() of create_and_test_hash.cc
You will print the current R value, the values mentioned in part A above, followed by queried words, whether they are found, and how many probes it took to determine so. Exact deliverables and output format are described at the end of the file. Q1. Part 3 (35 points) Now you are ready to implement a spell checker by using a linear or quadratic or double hashing algorithm. Given a document, your program should output all of the correctly spelled words, labeled as such, and all of the misspelled words. For each misspelled word you should provide a list of candidate corrections from the dictionary, that can be formed by applying one of the following rules to the misspelled word: a) Adding one character in any possible position b) Removing one character from the word c) Swapping adjacent characters in the word Your program should run as follows: ./spell_check <document file> <dictionary file>

You will be provided with a small document named document1_short.txt, document_1.txt, and a dictionary file with approximately 100k words named wordsEN.txt. As an example, your spell checker should correct the following mistakes. comlete -> complete (case a) deciasion -> decision (case b) lwa -> law (case c)

Correct any word that does not exist in the dictionary file provided, (even if it is correct in the English language). Some hints: 1. Note that the dictionary we provide is a subset of the actual English dictionary, as long as your spell check is logical you will get the grade. For instance, the letter “i” is not in the dictionary and the correction could be “in”, “if” or even “hi”. This is an acceptable output. 2. Also, if “Editor’s” is corrected to “editors” that is ok. (case B, remove character) 3. We suggest all punctuation at the beginning and end be removed and for all words convert the letters to lower case (for e.g. Hello! is replaced with hello, before the spell checking itself).

Do NOT write any functionality inside the main() function within spell_check.cc. Write all functionality inside the testSpellingWrapper() within that file. We will be using our own main, directly calling testSpellingWrapper(). This wrapper function is passed all the command line arguments as you would normally have in a main

In: Computer Science