Questions
Consider wage rates and migration flows from the low-wage South to the high-wage North, describe one...

Consider wage rates and migration flows from the low-wage South to the high-wage North, describe one shift in conditions that, by itself, could have cause the set of changes to a drop in wage rates in both South and North, and additional migration from South to North. Explain the shift and your rationale in 2-3 sentences.

In: Economics

Mario, a hockey player, is skating due south at a speed of 6.35 m/s relative to...

Mario, a hockey player, is skating due south at a speed of 6.35 m/s relative to the ice. A teammate passes the puck to him. The puck has a speed of 8.09 m/s and is moving in a direction of 22.0 ° west of south, relative to the ice. What are (a) the magnitude and (b) direction (relative to due south) of the puck's velocity, as observed by Mario?

In: Physics

Suppose you walk 7.5m in a direction 20degrees west of north and then travel 17m in...

Suppose you walk 7.5m in a direction 20degrees west of north and then travel 17m in a direction 40degrees south of west. a) how far are you from your starting point in meters? b) what is the angle, in degrees, of the compass direction of a line connecting your starting point to your final position measured south of west? c) repeat a, but for the 2nd leg you walk 17m in a direction 40degrees north of east. d) repeat a, but now you first walk 7.5m in a direction 40degrees south of west and 17m in a direction 20degrees east of south

In: Physics

55% of the males in our Spring 2016 Stats class out of a sample of 161...

55% of the males in our Spring 2016 Stats class out of a sample of 161 males are from South Dakota. 52% of the females out of a sample of 157 are from South Dakota. Assume that the two samples were independent and representative samples. Construct and interpret a 99% large sample confidence interval for the difference in the proportion of males compared to females in our Stats class who are from South Dakota. Can we conclude that there is a significant difference in the proportion of males from females that are from South Dakota at the 99% level? Be sure to check the sample size first.

In: Statistics and Probability

A political science model determines voter turnout based on location of a district and if voter...

A political science model determines voter turnout based on location of a district and if voter ID laws exist in the district. A sampling of 40 districts nationwide were used.

(a) Voter Turnout = 46.3 – 3.4 * South; R2 = 12.0%

                                                   (t = -1.25)                                      

where the South dummy variable takes a value of 1 if the district is in a Southern state.

Interpret the intuition of the regression and how strong an inference that is made.

(b) An additional dummy is added to the regression: ID laws is 1 if an ID law exists in the district and 0 if it does not.     

            Voter Turnout = 42.0 – 2.2* ID law – 3.4 * South – 4.7*(ID law* South); R2 = 40.0%

                                                      (t = -2.00)     (t = -1.80)                (t = -2.50)

What is the purpose of study in this regression?

Compare states that are not Southern with ID laws to South states with ID laws.

In: Statistics and Probability

In a UNIX-like file system, a directory typically contains: A. filenames and i-nodes B. permission information,...

In a UNIX-like file system, a directory typically contains:

A.

filenames and i-nodes

B.

permission information, pointers to direct blocks

C.

filenames and ownership information

D.

filenames, i-nodes, major device numbers and minor device numbers

In: Computer Science

Program in Bash: Write a program using bash script that can read a file from the...

Program in Bash: Write a program using bash script that can read a file from the same directory, sort the nonrepeating integers from 0-9 from smallest to largest, and output the results on the same line. Do not use the sort function.

In: Computer Science

Program in Bash: Write a program using bash script that can read a file from the...

Program in Bash:

Write a program using bash script that can read a file from the same directory, sort the nonrepeating integers from 0-9 from smallest to largest, and output the results on the same line.

Do not use the sort function.

In: Computer Science

2-What is the effect on the budget constraint now in America during this corona virus crisis...

2-What is the effect on the budget constraint now in America during this corona virus crisis and what is the effect on the economy ?

i have to explain the budget constraint of america during this corona crisis and explain what effect it has on the economic now

In: Economics

WRITE IN PERL Creating a Perl Product Directory - A product "id" will be used to...

WRITE IN PERL

Creating a Perl Product Directory - A product "id" will be used to identify a product (the key) and the description will be stored as the value

  • The program should print a menu asking you to "add" an entry, "remove" an entry, "lookup" an entry, "list" all entries, and "quit" to end
  • The user will enter a number to select the menu item from above, 1, 2, 3, 4, or 5 respectively.
  1. Asks the user to enter a product ID, then asks them to enter a description... the product ID is stored as the key of a hash and the description is the value
  2. Asks the user to an ID, if that ID exists in the hash, that entry is deleted from the hash
  3. Asks the user to an ID, if that ID exists in the hash, that entry's value is printed (the description)
  4. Prints all the key/value pairs of the hash, each entry on a new line with with a colon or dash separating the ID from the description
  5. Exits the program
  • The program will continuously loop, that is, it will print the menu after each successful action... unless the user chooses 5 to quit, which will end the program. This can be achieved by either using a "while" loop or by using a subroutine that prints the menu after each successful action

Here is a template:

#!/usr/bin/perl
use warnings;

%products = (); # empty hash to store products in

sub getChoice(){
print("Welcome to the Product Directory\n");
print("1. Add a Product to Directory\n");
print("2. Remove a Product from Director\n");
print("3. Lookup a Product in Directory\n");
print("4. List all products\n");
print("5. Quit\n");
print("Enter your option: ")
chomp($choice = <STDIN>);
return $choice
}

$c = getChoice();
while($c ne "5"){
if($c eq "1"){
# Ask the user to enter input for a product's ID
# Ask the user to enter input for a product's description
# Add the item to the hash with the supplied ID as the key and description as the value
}
  
# Options 2 - 4
}

In: Computer Science