ECET 370 Week 2 Lab 2
July 6, 2015 | By FCF7D97D75E |
For more course tutorials visit www.uoptutorial.com General Instructions Exercises 1, 2, and 3 use the programs in DocSharinglabeled “User-defined array list." Exercise 4 uses the programs in DocSharinglabeled “Using java.util.ArrayList." Exercise 1: Review of array-based lists Create a project using the classes in the DocSharing area labeled “User-defined array list." Compile it, run it, and review the code that is given carefully. This code tests the ArrayList class provided in the lecture. Exercise 2: A user-defined array list Modify the class ArrayList given in the lecture by adding to it the functions listed below for Exercise 2. In each case, the appropriate error message should be generated if an invalid condition occurs. For example, an error message should be generated when trying to insert an item in a given location in the list and the location is out of range. a. ArrayList(int size): create a constructor that sets the size of the array list to the value passed in size (note that the class variable SIZE cannot be final anymore). b. int length(): create this function to determine the number of items in the list (accessor function). c. intgetSize(): create this function to determine the size of the list (accessor function). d. void clear(): create this function to remove all of the items from the list. After this operation, the length of the list is zero. e. void replace(int location, int item): create this function to replace the item in the list at the position specified by location. The item should be replaced with item. f. void insert(int location, int item): create this function to add an item to the list at the position specified by location. g. void remove(int item): create this function to delete an item from the list. All occurrences of item in the list should be removed. h. int get(int location): create a function that returns the element at location. i. public ArrayList copy(): create a function that makes a deep copy to another ArrayList object. Exercise 3: Using an array-based list Using the class ArrayList completed in the previous exercise, write a program that uses it to store 100 random numbers. Consider that each of these random numbers is an integer in the interval [0, 200]. Write the program in such a way that there are no number duplicates. Exercise 4: Review of the library class java.util.ArrayList Create a project using the classes in the DocSharing area labeled “Using java.util.ArrayList." Compile it, run it, and review the code that is given carefully. This code is the complete program given in our lecture that tests the library class java.util.ArrayList. Exercise 5: Using the library class java.util.ArrayList Rewrite Exercise 3 (above) using the class java.util.ArrayList to store the 100 random numbers.
More from FCF7D97D75E
For more course tutorials visit www.uoptutorial.com Final Paper Complete a 5-6 page final paper that completely answers the following: Economists generally agree that high budget deficits today will reduce the growth rate of the economy in the future. Why? Do the reasons for the high budget deficit matter? In other words, does it matter whether the deficit is caused by lower taxes, increased defense spending, more job-training programs, and so on? In your analysis, what role do fiscal and monetary policies have to lead to higher or lower budget deficits? How do budget deficits affect overall long-term economic growth and the debt that the U.S. has to contend with? Writing the Final Paper The Final Paper: • Must be 5 to 6 double-spaced pages in length and formatted according to APA style as outlined in your approved style guide. • Must have a cover page that includes: • Title of paper • Student’s name • Course name and number • Instructor’s name • Date submitted Must include an introductory paragraph with a succinct thesis statement. Must address the topic of the paper with critical thought. Must conclude with a restatement of the thesis and a conclusion paragraph. Must use at least four scholarly resources. Must use APA style as outlined in your approved style guide to document all sources. Must include, on the final page, a Reference List that is completed according to APA style as outlined in your approved style guide.
For more course tutorials visit www.uoptutorial.com Week 5 DQ2 Output vs. Workers Between October 2004 and 2005, real GDP in the United States increased by 3.6 percent, while nonfarm payroll jobs increased by only 1.4 percent. How is it possible for output to increase without a proportional increase in the number of workers? What are the implications in our economy of more output being produced by less workers? Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 5 DQ1 Balanced Budgets Some states are required to balance their budgets. Is this measure stabilizing or destabilizing? Suppose all states were committed to a balanced budget philosophy and the economy moved into a recession. What effects would this philosophy have on the size of the federal deficit? Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 4 DQ2 Inflation On pg. 255 in your text, The Economics in Practice describes the increase in food prices around the world in 2008. Since food, in large measure, affects the real income of households, increasing prices will eventually push up wages and have an impact on the aggregate supply curve. Central banks were very worried about the prospects for inflation becoming generalized. To stop inflation, what would the Fed be likely to do? What are the consequences for the economy? Specifically, what would be the effects on employment and unemployment given the actions taken by the Fed? Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 4 DQ1 Wage Increases Your boss offers you a wage increase of 10 percent. Is it possible that you are worse off with the wage increase than you were before? Explain your answer using proper economic terms and analysis. Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Fed and Its Tools Given the role of the Fed in our economy, how can the Fed use the tools that it has to influence an economy that it is in a recession? The Fed has three tools to influence the direction of the economy; in your two to three page paper, make sure to address each of them and what the Fed should do to get the economy out of a recession.
For more course tutorials visit www.uoptutorial.com Week 3 DQ2 The Money Supply Why do you think the FED evaluates the money multiplier when making decisions with regard to the money supply? What function does the money supply serve in our economy to influence certain economic variables? Why does the FED like to fight inflation in our economy and is inflation a concern right now given our current economic situation? Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 3 DQ1 In Retrospect While many thought that the 2008 fiscal stimulus plan described in the feature on pg. 174 was a good idea, some did not. Some even thought that Congress didn’t go far enough. In retrospect, who was right? Did the economy experience a recession in 2008 or 2009? What happened to employment during the rest of 2008? What are some of the alternatives to a tax cut that might have been used? Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Government Fiscal Policy Between 2007 and 2009 theU.S.economy experienced a severe recession.Â Â In an effort to stimulate the economy, the federal government passed a stimulus package. Explain the federal governmentÂ’s use of fiscal policy (the stimulus) to promote growth and employment.Â Support your ideas with concepts found in the assigned reading. Include the following in your response: •Discuss some actions taken by the federal government and whether the recession would have been longer and the unemployment rate higher if the government had not acted by passing the stimulus package?Â •If left alone, do you believe the economy would have corrected itself as suggested by Classical economic theory?Â Explain. •Discuss the effect these policies had on increasing the size of the budget deficits and the national debt. Reference:Â Chapter 9, section 9.4: More Recent Tax Changes, and Chapter 10, section 10.2: Early 1990s and 2000s Recessions.Â
For more course tutorials visit www.uoptutorial.com Week 2 DQ2 With each of the following examples, please explain what happens to contributions to GDP and economic growth in each of the following statements: a. A woman who makes a living charging for investment advice on her Internet website marries one of her clients, to whom she now provides advice at no charge. b. A tennis player wins two top professional tournaments as an unpaid amateur, meaning the tournament sponsor does not have to pay out his share of prize money. c. A public utility installs new antipollution equipment in its smokestacks. Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 2 DQ1 The Local Job Force Visit the Bureau of Labor Statistics and click on the links for state employment and unemployment. Look at your home state and describe what changes have taken place in the workforce and unemployment rate. Has the labor force participation rate gone up or down? Provide an explanation for the rate change. Are your state’s experiences the same as the rest of the country? Provide an explanation of why your state’s experiences are the same or different from the rest of the country. Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 1 DQ2 NYC Rent The rent for apartments in New York City has been rising sharply. Demand for apartments in New York City has been rising sharply as well. This is hard to explain because the law of demand says that higher prices should lead to lower demand. Do you agree or disagree? How is this going to affect prices in the market for New York City? Make sure to provide appropriate economic terms in your answers. Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com Week 1 DQ1 Opportunity Costs One of the scarce resources that constrain our behavior is time. Each of us has only 24 hours in a day. How do you go about allocating your time in a given day among competing alternatives? How do you go about weighing the alternatives? How can you apply the concepts of opportunity cost to your decision to attend Ashford? Use the notion of opportunity cost in your answer. Respond to at least two of your classmates’ postings
For more course tutorials visit www.uoptutorial.com ECO 203 Week 1 DQ 1 Opportunity Costs ECO 203 Week 1 DQ 2 NYC Rent ECO 203 Week 2 DQ 1 The Local Job Force ECO 203 Week 2 DQ 2 GDP ECO 203 Week 3 DQ 1 In Retrospect ECO 203 Week 3 DQ 2 The Money Supply ECO 203 Week 3 Fed and Its Tools. ECO 203 Week 4 DQ 1 Wage Increases ECO 203 Week 4 DQ 2 Inflation ECO 203 Week 5 DQ 1 Balanced Budgets ECO 203 Week 5 DQ 2 Output vs. Workers ECO 203 Week 5 Final Paper The Future of the Economy
For more course tutorials visit www.uoptutorial.com Central Bank System Explain the role of the Federal Reserve System and the 12 Federal Reserve Banks. Discuss the Federal Open Market Committee (FOMC) and the Federal Funds Rate. What do they do to manage the economy and the money supply? How do they control inflation and deflation? Fully support your position in at least 200 words. Respond to at least three of your classmates’ postings.
For more course tutorials visit www.uoptutorial.com Basic Functions of Money What are the three basic functions of money? Describe how rapid inflation can undermine money’s ability to perform each of the three functions. Fully support your position in at least 200 words. Respond to at least three of your classmates’ postings.