1. The following table shows the data for Canada’s aggregate production function with constant return to scale and the output elasticity with respect to capital equal to 0.3.
|
Year |
GDP (billions of 2002 dollars) |
Capital Stock (billions of 2002 dollars) |
Employment (millions) |
|
1961 |
264.5 |
525.6 |
6.06 |
|
1971 |
437.7 |
824.7 |
8.08 |
|
1981 |
647.3 |
1277.4 |
11.31 |
|
1991 |
808.1 |
1715.1 |
12.86 |
|
2001 |
1120.1 |
2071.1 |
14.94 |
|
2010 |
1325 |
2668.7 |
17.04 |
a). Find the values of total factor productivity for the given years above.
I only used the Capital output elasticity(0.3) mentioned in the question here even though in my notes it mentions it being 0.7 in Canada
Y= (A)(K^αK*)(N^αN)
A= TFP, Y= GDP, K= Capital, N=Labor αK=Capital output elasticity, αN=Labor output elasticity
A= Y/(K^αK)(N^αN) THEREFORE
TFP(1961)= (264.5)/((525.6)^0.3(6.06)) = 6.65
TFP(1971)= (437.7)/((824.7)^0.3(8.08)) = 7.23
TFP(1981)= (647.3)/((1277.4)^0.3(11.31)) = 6.69
TFP(1991)= (808.1)/((1715.1)^0.3(12.86)) = 6.73
TFP(2001)= (1120.1)/((2071.1)^0.3(14.94)) = 7.59
TFP(2010)= (1325)/((2668.7)^0.3(17.04)) = 7.29
Just want to verify my numbers are correct here before moving forward?
b). Complete the following table by calculating the average annual growth rates (%) for GDP, capital stock, employment, and total factor productivity. While it is not necessary to show all your calculations, show the formulae you use, and also explain and illustrate how you obtain your answers.
|
Year |
GDP |
Capital Stock |
Employment |
TFP |
|
1961-1971 |
||||
|
1971-1981 |
||||
|
1981-1991 |
||||
|
1991-2001 |
||||
|
2001-2010 |
In: Economics
Lab Assignment
Part B - Recurrence Intervals
Data from the chart below was collected at the USGS site and includes the 20 largest discharge events for Sweetwater Creek at station 02337000 from January 1, 2008 through May 1, 2015, excluding the dramatic 2009 flood (we will learn more about that later). In order to create a flood-frequency graph, you must first calculate the recurrence interval (one is calculated below as an example). A recurrence interval refers to the average time period within which a given flood event will be equaled or exceeded once. To calculate it, first evaluate the rank of the flood, with a “1” going to the highest discharge event and a “20” going to the lowest discharge event. Calculate the recurrence interval using the following equation:
RI = (n+1) ÷ m
where, RI = Recurrence Interval (years)
n = number of years of records (in this case, 8)
|
m = rank of flood. Peak Discharge Date |
Discharge (cubic ft/sec = cfs) |
Rank |
Recurrence Interval (years) |
|
08/27/2008 |
5,140 |
||
|
03/02/2009 |
2,360 |
||
|
10/13/2009 |
3,290 |
||
|
11/12/2009 |
6,120 |
1 |
9 |
|
12/03/2009 |
2,860 |
||
|
12/10/2009 |
2,170 |
||
|
12/19/2009 |
3,830 |
||
|
12/26/2009 |
2,650 |
||
|
01/25/2010 |
2,500 |
||
|
02/06/2010 |
3,680 |
||
|
03/12/2010 |
3,600 |
||
|
03/10/2011 |
2,350 |
||
|
04/17/2011 |
3,100 |
||
|
02/24/2013 |
2,060 |
||
|
02/27/2013 |
2,190 |
||
|
05/06/2013 |
3,610 |
||
|
12/23/2013 |
3,790 |
||
|
04/08/2014 |
4,170 |
||
|
01/05/2015 |
3,970 |
||
|
04/20/2015 |
2,940 |
In: Advanced Math
I am having a hard time writing these SQL queries. Please specify the following queries in SQL on the database schema shown in the figure below.
| Name | StudentNumber | Class | Major |
| Smith | 17 | 1 | CS |
| Brown | 8 | 2 | CS |
| Kathy | 15 | 1 | EE |
| CourseName | CourseNumber | CreditHours | Department |
| Intro to Computer Science | CSE110 | 4 | CS |
| Data Structures | CSE205 | 4 | CS |
| Discrete Mathematics | MAT240 | 3 | MATH |
| Databases | CSE380 | 3 | CS |
| Analog Circuits | EE260 | 3 | EE |
| SectionIdentifier | CourseNumber | Semester | Year | Instructor |
| 85 | MAT240 | Fall | 2010 | King |
| 92 | CSE110 | Fall | 2010 | Chang |
| 102 | CSE205 | Spring | 2011 | King |
| 112 | MAT240 | Fall | 2011 | Chang |
| 119 | CSE110 | Fall | 2011 | Anderson |
| 135 | CSE380 | Fall | 2011 | Stone |
| 146 | EE260 | Fall | 2011 | James |
| StudentNumber | SectionIdentifier | Grade |
| 17 | 112 | B |
| 17 | 119 | C |
| 8 | 85 | A |
| 8 | 92 | A |
| 8 | 102 | B |
| 8 | 135 | A |
| 15 | 146 | A |
| CourseNumber | PreRequisiteNumber |
| CSE380 | CSE205 |
| CSE380 | MAT240 |
| CSE205 | CSE110 |
| EE260 | MAT240 |
1) Retrieve the course names of all courses with the number of credit hours as 4
2) Retrieve the names of all courses and their respective departments taught by professor Chang in 2010 and 2011
3) For each section taught by Professor King, retrieve the course number, semester, year, and the number of students who took the section
4) Retrieve the name and transcript of each freshman student (Class=1) majoring in EE. Transcript includes course name, course number, credit hours, semester, year, and grade for each course completed by the student
In: Computer Science
JAVA
Please put detailed comments as well explaining your program.
I'm in a beginning programming class, and so please use more basic techniques such as if else statements, switch operators, and for loops if needed.
http://imgur.com/a/xx9Yc
Pseudocode for the main method:
Print the headings
Print the directions
Prompt for the month
If the month is an integer (Hint: Use the Scanner class hasNextInt method.)
Input the integer for the month
Get the string for the month (Use your method)
Otherwise
Input the string for the month
Get the integer for the month (Use your method)
Prompt for the day
Input the day
Prompt for the year
Input the year
Get the holiday
Print the output
THE PROBLEM:
You must use switch statements for some part of the homework.
Write a program that inputs a month, day, and year from the user and outputs the corresponding date in the following two standard date formats:
6/12/2005 June 12, 2005
Also your program must print the name of any holiday associated with the date.
For example:
3/17/2010 March 17, 2010 St. Patrick’s Day
Your program should ask the user how many times the user wants to run the code and then you need to use a for loop to repeat the run that many times.
REQUIREMENTS:
You must use good programming style.
The user can enter the month either as a numeric value or a String. i.e. the user could enter a 5 or May.
You may assume the data that the user enters is valid data.
Your program must print a report similar to that shown in the sample output on the last page of this handout.
You must solve this problem by implementing and using the following methods:
printDirections
void method that prints a message to the user that explains what the program will do and how the month data can be entered. (See the sample output above.)
getMonthString
method that has 1 parameter, the month as an integer (1..12).
This method returns the corresponding name of the month as a String.
getMonthNumber
method that has 1 parameter, the name of the month in a String.
This method returns the corresponding integer value for that month name.
HINT: Before you read the data for the month, use the Scanner class hasNextInt method to determine what kind of data the user entered for the month. Using hasNextInt you can determine if the user is entering an integer for the month or not.
getHoliday
This method has 2 int type parameters for month and day.
The method returns a String that is the name of a holiday that is associated with the date represented by the parameters. If there is no holiday associated with that date, then the method returns an empty String (“”).
Use nested switch statements to implement this method. Use one switch statement for the months. Inside the case for each month, use a switch statement that has a case for each day in that month that is a holiday. Inside each of those day cases, set the holiday string to the name of the holiday.
NOTE: You can also include holidays for your birthday, anniversary, or whatever …
isEaster
This method has 3 int type parameters for month, day and year.
This method returns true if the date represented by the 3 parameters is Easter, otherwise it returns false.
To implement this method: use the following formula to figure out the month and the day of easter for the given year.
goldenNumber = (year % 19) + 1;
a = (24 + 19*(goldenNumber - 1)) % 30; b = a - a/28;
c = (year + year/4 + b - 13) % 7; d = b - c;
easterMonth = 3 + (d + 40)/44;
easterDay = d + 28 - 31*(easterMonth/4);
To use this method, you will have to add a third parameter to the getHoliday method for the year, and then inside the getHoliday method, after the switch statements, call this method.
NOTE: If the holiday string is already longer than 0, this day is already associated with another holiday,
(For example, maybe “Grandma’s Birthday”, then getHoliday should return “Easter and Grandma’s Birthday”.
To test the isEaster method, make April 4 “Grandma’s Birthday” and test this method using 4/4/2010. Also test it for Easter in a year where Easter is not on April 4.
Here is a list of holidays that your need needs to generate the appropriate output:
1/1 "New Year's Day";
1/18 "Martin Luther King Jr. Day";
2/2 "Ground Hog Day";
2/12 "Abraham Lincoln's Birthday";
2/14 "St. Valeninte's Day";
2/22 "George Washington's Birthday";
3/17 "St. Patrick's Day"; 4/1 "April Fool's Day";
4/4 "Grandma's Birthday";
4/22 "Earth Day";
4/30 "Arbor Day";
5/1 "May Day";
5/5 "Cinco de Mayo";
7/4 "Independence Day";
8/1 "International Friendship Day";
10/1 "Columbus Day";
10/31 "Halloween";
11/11 "Vereran's Day";
12/25 "Christmas";
12/31 "New Year's Eve";
?? "Easter";
Sample outputs
|
CSC 15 – Chapter 4 – [Your Name] This program will ask you for a month, day, and year and will print the corresponding date in two standard date formats. You may enter the month as: * a numeric value (1..12) or as * an unabbreviated month name (January or February etc....) How many times do you want to run the program: 3 Enter the month: 10 Enter the day: 31 Enter the year: 2010 The Date is: 10/31/2010 October 31, 2010 Halloween Enter the month: 1 Enter the day: 1 Enter the year: 2014 The Date is: 1/1/2014 January 1, 2014 New Year's Day Enter the month: 4 Enter the day: 4 Enter the year: 2010 The Date is: 4/4/2010 April 4, 2010 Easter and Grandma's Birthday |
Pseudocode for the main method:
Print the headings
Print the directions
Prompt for the month
If the month is an integer (Hint: Use the Scanner class hasNextInt method.)
Input the integer for the month
Get the string for the month (Use your method)
Otherwise
Input the string for the month
Get the integer for the month (Use your method)
Prompt for the day
Input the day
Prompt for the year
Input the year
Get the holiday
Print the output
In: Computer Science
Find \( \int \int_SF.Nds \) , that is find the flux of F across S. If S is closed , use the positive (outward) orientation.
\( F(x,y,z)=(2x,2y,z);S \) is the part of the paraboloid \( z=4-x^2-y^2 \) above the xy-plane ; N point upward.
In: Computer Science
We can make a simple model of the human vocal tract as an open-closed tube extending from the opening of the mouth to the diaphragm
Q: What is the length of this tube if its fundamental frequency equals a typical speech frequency of 240 Hz ? The speed of sound in the warm air is 350 m/s.
In: Physics
The Australian share market has risen considerably since the S&P/ASX200 index closed at 4546 on March 23. Using the content covered in the subject, do you believe that now is a good time to invest in a diversified portfolio of Australian shares, such as the S&P/ASX200 index? Why or why not?
In: Accounting
Kc = 4.15 x 10-2 at 533°C for PCl5(g) ↔ PCl3(g) + Cl2(g). A closed 2.00 L vessel initially contians 0.100 mol PCl5. Calculate the total pressure in the vessel (in atm to 2 decimal places) at 533°C when equilibrium is achieved.
In: Chemistry
12 . NH2CO2NH4(s) when heated to 450 K undergoes the following reaction to produce a system which reaches equilibrium: NH2CO2NH4(s) <--> 2 NH3(g) + CO2(g)
The total pressure in the closed container under these conditions is found to be 0.843 atm. Calculate a value for the equilibrium constant, Kp.
In: Chemistry
Describe the structure of the Universe, and how we know that it is expanding. Describe the Open and Closed Big Bang theories of the Universe, and the Inflationary model, and the differences between them. Discuss the current version of the Big Bang theory, and its implications for the future of the Universe. Discuss the theory of "dark" matter as it relates to the structure of the Universe.
In: Physics