17 Pages

mankiw_7e_chap02

Course: ECON 305, Spring 2011
School: Maryland
Rating:
 
 
 
 
 

Word Count: 1742

Document Preview

Chapter In 2, you will learn: In the meaning and measurement of the most important macroeconomic statistics: Gross Domestic Product (GDP) The Consumer Price Index (CPI) The unemployment rate Gross Domestic Product: Expenditure and Income Two definitions: Total expenditure on domestically-produced final goods and services. Total income earned by domestically-located factors of production. Expenditure...

Register Now

Unformatted Document Excerpt

Coursehero >> Maryland >> Maryland >> ECON 305

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Chapter In 2, you will learn: In the meaning and measurement of the most important macroeconomic statistics: Gross Domestic Product (GDP) The Consumer Price Index (CPI) The unemployment rate Gross Domestic Product: Expenditure and Income Two definitions: Total expenditure on domestically-produced final goods and services. Total income earned by domestically-located factors of production. Expenditure equals income because Expenditure equals income because every dollar spent by a buyer every dollar spent by a buyer becomes income to the seller. becomes income to the seller. The Circular Flow Income ($) Labor Households Firms Goods Expenditure ($) Value added Value added: The value of output minus the value of the intermediate goods used to produce that output NOW YOU TRY: A farmer grows a bushel of wheat and sells it to a miller for $1.00. The miller turns the wheat into flour and sells it to a baker for $3.00. The baker uses the flour to make a loaf of bread and sells it to an engineer for $6.00. The engineer eats the bread. Compute value added at each stage of production and GDP Final goods, value added, and GDP GDP = value of final goods produced = sum of value added at all stages of production. The value of the final goods already includes the value of the intermediate goods, so including intermediate and final goods in GDP would be double-counting. The expenditure components of GDP consumption, C investment, I government spending, G net exports, NX An important identity: Y = C + I + G + NX value of total output aggregate expenditure Consumption (C) definition: The value of all goods and services bought by households. Includes: durable goods last a long time e.g., cars, home appliances nondurable goods last a short time e.g., food, clothing services work done for consumers e.g., dry cleaning, air travel U.S. consumption, 2008 $ billions Consumption $ 10,057.9 % of GDP 70.5% Durables 1,023.2 7.2 Nondurables 2,965.1 20.8 Services 6,069.6 42.6 Investment (I) Spending on goods bought for future use (i.e., capital goods) Includes: Business fixed investment Spending on plant and equipment Residential fixed investment Spending by consumers and landlords on housing units Inventory investment The change in the value of all firms inventories U.S. Investment, 2008 $ billions Investment Business fixed $1,993.5 % of GDP 14.0% 1,552.8 10.9 Residential 487.7 3.4 Inventory 47.0 0.3 Investment vs. Capital Note: Investment is spending on new capital. Example (assuming no depreciation): 1/1/2009: economy has $500b worth of capital during 2009: investment = $60b 1/1/2010: economy will have $560b worth of capital Stocks vs. Flows Flow Stock A stock is a quantity measured at a point in time. E.g., The U.S. capital stock was $26 trillion on January 1, 2009. A flow is a quantity measured per unit of time. E.g., U.S. investment was $2.5 trillion during 2009. Stocks vs. Flows - examples stock flow a person s wealth a person s annual saving # of people with college degrees # of new college graduates this year the govt debt the govt budget deficit NOW YOU TRY: Stock or Flow? the balance on your credit card statement how much you study economics outside of class the size of your compact disc collection the inflation rate the unemployment rate Government spending (G) G includes all government spending on goods and services. G excludes transfer payments (e.g., unemployment insurance payments), because they do not represent spending on goods and services. U.S. Government Spending, 2008 $ billions % of GDP Govt spending $2,882.4 20.2% - Federal 1,071.9 7.5 Non-defense 337.0 2.4 Defense 734.9 5.2 1,810.4 12.7 - State & local Net Exports: NX = EX IM def: the value of total exports (EX) minus the value of total imports (IM) Question Suppose a firm: produces $10 million worth of final goods only sells $9 million worth Does this violate the expenditure = output identity? Why output = expenditure Unsold output goes into inventory, and is counted as inventory investment whether or not the inventory buildup was intentional. In effect, we are assuming that firms purchase their unsold output. GDP: An important and versatile concept We have now seen that GDP measures: total income total output total expenditure the sum of value- added at all stages in the production of final goods GNP vs. GDP Gross National Product (GNP): Total income earned by the nations factors of production, regardless of where located Gross Domestic Product (GDP): Total income earned by domestically-located factors of production, regardless of nationality GNP GDP = factor payments from abroad minus factor payments to abroad Examples of factor payments: wages, profits, rent, interest & dividends on assets NOW YOU TRY: Discussion Question which would you want to be bigger, GDP or GNP? Why? GNP vs. GDP in select countries, 2007 Country Philippines Japan China GNP GDP GNP GDP (% of GDP) $157,087 $144,062 9.0% $4,530,191 $4,384,255 3.3% 0.8% $3,229,841 $3,205,507 $13,827,201 $13,751,400 0.6% $1,318,304 $1,329,885 0.9% South Africa $274,141 $283,007 3.1% New Zealand $125,936 $135,667 7.2% $98,625 $107,297 8.1% United States Canada Peru GNP and GDP in millions of current U.S. dollars Real vs. nominal GDP GDP is the value of all final goods and services produced. nominal GDP measures these values using current prices. real GDP measure these values using the prices of a base year. NOW YOU TRY: Real & Nominal GDP 2006 2007 2008 P Q P Q P Q good A $30 900 $31 1,000 $36 1,050 good B $100 192 $102 200 $100 205 Compute nominal GDP in each year. Compute real GDP in each year using 2006 as the base year. NOW YOU TRY: Answers nominal GDP multiply Ps & Qs from same year 2006: $46,200 = $30 900 + $100 192 2007: $51,400 2008: $58,300 real GDP multiply each years Qs by 2006 Ps 2006: $46,200 2007: $52,000 $50,000 2008: = $30 1050 + $100 205 Real GDP controls for inflation Changes in nominal GDP can be due to: changes in prices. changes in quantities of output produced. Changes in real GDP can only be due to changes in quantities, because real GDP is constructed using constant base-year prices. U.S. Nominal and Real GDP, 1960-2009 Real GDP (in 2000 dollars) Nominal GDP GDP Deflator Inflation rate: the percentage increase in the overall level of prices One measure of the price level: GDP deflator Definition: GDP deflator = 100 Nominal GDP Real GDP NOW YOU TRY: GDP deflator and inflation rate Nom. GDP Real GDP 2006 $46,200 51,400 50,000 2008 58,300 Inflation rate $46,200 2007 GDP deflator 52,000 n.a. Use your previous answers to compute the GDP deflator in each year. Use GDP deflator to compute the inflation rate from 2006 to 2007, and from 2007 to 2008. NOW YOU TRY: Answers Nominal GDP Real GDP GDP deflator Inflation rate 2006 $46,200 $46,200 100.0 n.a. 2007 51,400 50,000 102.8 2.8% 2008 58,300 52,000 112.1 9.1% Two arithmetic tricks for working with percentage changes 1. For any variables X and Y, percentage change in (X Y ) percentage change in X + percentage change in Y EX: If your hourly wage rises 5% and you work 7% more hours, then your wage income rises approximately 12%. Two arithmetic tricks for working with percentage changes 2. percentage change in (X/Y ) percentage change in X percentage change in Y EX: GDP deflator = 100 NGDP/RGDP. If NGDP rises 9% and RGDP rises 4%, then the inflation rate is approximately 5%. Chain-Weighted Real GDP Over time, relative prices change, so the base year should be updated periodically. In essence, chain-weighted real GDP updates the base year every year, so it is more accurate than constant-price GDP. Your textbook usually uses constant-price real GDP, because: the two measures are highly correlated. constant-price real GDP is easier to compute. Consumer Price Index (CPI) A measure of the overall level of prices Published by the Bureau of Labor Statistics (BLS) Uses: tracks changes in the typical households cost of living adjusts many contracts for inflation (COLAs) allows comparisons of dollar amounts over time How the BLS constructs the CPI 1. Survey consumers to determine composition of the typical consumers basket of goods 2. Every month, collect data on prices of all items in the basket; compute cost of basket 3. CPI in any month equals 100 Cost of basket in that month Cost of basket in base period The composition of the CPIs basket Food and bev. 17.4% Housing Apparel 6.2% 5.6% 3.0% 3.1% 3.8% 3.5% Transportation Medical care Recreation 15.1% Education Communication Other goods and services 42.4% Why the CPI may overstate inflation Substitution bias: The CPI uses fixed weights, so it cannot reflect consumers ability to substitute toward goods whose relative prices have fallen. Introduction of new goods: The introduction of new goods makes consumers better off and, in effect, increases the real value of the dollar. But it does not reduce the CPI, because the CPI uses fixed weights. Unmeasured changes in quality: Quality improvements increase the value of the dollar, but are often not fully measured. The size of the CPIs bias In 1995, a Senate-appointed panel of experts estimated that the CPI overstates inflation by about 1.1% per year. So the BLS made adjustments to reduce the bias. Now, the CPIs bias is probably under 1% per year. NOW YOU TRY: Discussion Questions 1. If your grandmother receives Social Security, how is she affected by the CPIs bias? 2. Where does the government get the money to pay COLAs to Social Security recipients? 3. If you pay income and Social Security taxes, how does the CPIs bias affect you? 4. Is the government giving your grandmother too much of a COLA? 5. How does your grandmothers basket differ from the CPIs? Does this affect your answer to Q4? CPI vs. GDP Deflator Prices of capital goods: included in GDP deflator (if produced domestically) excluded from CPI Prices of imported consumer goods: included in CPI excluded from GDP deflator The basket of goods: CPI: fixed GDP deflator: changes every year Two measures of inflation in the U.S. Percentage change from 12 months earlier CPI GDP deflator Categories of the population employed working at a paid job unemployed not employed but looking for a job labor force the amount of labor available for producing goods and services Sum of all employed plus unemployed persons not in the labor force not employed, not looking for work Two important labor force concepts unemployment rate percentage of the labor force that is unemployed labor force participation rate the fraction of the adult population that participates in the labor force NOW YOU TRY: Computing labor statistics U.S. adult population by group, May 2009 Number employed = Number unemployed = 140.57 million 14.51 million Adult population = 235.45 million Use the above data to calculate the labor force the number of people not in the labor force the labor force participation rate the unemployment rate NOW YOU TRY: Answers data: E = 140.57, U = 14.51, POP = 235.45 labor force L = E +U = 140.57 + 14.51 = 155.08 not in labor force NILF = POP L = 235.45 155.08 = 80.37 unemployment rate U/L x 100% = (14.51/155.08) x 100% = 9.4% labor force participation rate L/POP x 100% = (155.08/ 235.45) x 100% = 65.9% http://www.bls.gov/news.release/pdf/empsit.pdf The establishment survey The BLS obtains a second measure of employment by surveying businesses, asking how many workers are on their payrolls. Neither measure is perfect, and they occasionally diverge due to: treatment of self-employed persons new firms not counted in establishment survey technical issues involving population inferences from sample data Percentage change from 12 months earlier Two measures of employment growth
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Maryland - ECON - 305
Crisis EconomicsN. Gregory MankiwTo u nder sta nd t he c h a llenge government economists havefaced over the past year and a half, it is useful to imagine the case ofa physician trying to treat an ill patient. The patient presents herself interrible
Maryland - ECON - 305
Chapter 3 - The Long-run ModelNational Income:W here it Comes From and Where itGoes (in the long-run)GoesIn this chapter, you will learn: what determines the economys totaloutput/income in the long-run. how the prices of the factors of production
Maryland - ECON - 305
In Chapter 4, you will learn:In The classical theory of inflation causes effects social costs Classical assumes prices are flexible &markets clear Applies to the long runThe connection betweenmoney and prices Inflation rate = the percentage inc
Maryland - ECON - 305
Chapter 6UnemploymentUnemploymentIn this chapter, you will learn:about the natural rate of unemployment: what it means what causes it understanding its behavior in the real worldNatural rate of unemployment Natural rate of unemployment:The avera
Maryland - ECON - 305
Chapter 9Introduction to EconomicFluctuationsFluctuationsIn this chapter, you will learn:facts about the business cyclehow the short run differs from the long runan introduction to aggregate demandan introduction to aggregate supply in theshort r
Maryland - ECON - 305
10Aggregate Demand I:AggregateBuilding the IS-LM ModelBuildingISIn this chapter, you will learn: the IS curve, and its relation to: the Keynesian cross the LM curve, and its relation to: the theory of liquidity preference how the IS-LM model de
Maryland - ECON - 305
10Aggregate Demand I:AggregateBuilding the IS-LM ModelBuildingISIn this chapter, you will learn: the IS curve, and its relation to: the Keynesian cross the LM curve, and its relation to: the theory of liquidity preference how the IS-LM model de
Maryland - ECON - 305
Chapter 11Aggregate Demand II:AggregateApplying the IS-LM ModelApplyingISContext Chapter 9 introduced the model of aggregatedemand and supply. Chapter 10 developed the IS-LM model,the basis of the aggregate demand curve.Equilibrium in the IS -L
Maryland - ECON - 305
13Aggregate Supply and theShort-run Tradeoff BetweenInflation and UnemploymentIn this chapter, you will learn three models of aggregate supply in whichoutput depends positively on the price level inthe short run (only 2 presented in the book) abou
Maryland - ECON - 305
Economics 305Dr. NeriSpring 2011Problem Set No. 1 due at the beginning of lecture on Thursday February 10.E-mail submissions will not be accepted. Late submissions will have points deducted.Please put you name IN INK on the top of all papers submitte
Maryland - ECON - 305
Economics 305Dr. NeriFall 2010Problem Set No. 1 due at the beginning of lecture on Tuesday February 22. E-mail submissions will notbe accepted. Late submissions will have points deducted. Please put you name IN INK on the top of allpapers submitted.
Maryland - ECON - 305
Economics 305Dr. NeriProblem Set No. 3 due in class on April 7, 2011Late papers will not be accepted1. Mankiw, Chapter 9, Problems and Applications (p285 7th edition, p277 6th edition,p256 5th edition), Question No. 1. (Question about banks pay inter
Maryland - ECON - 305
Economics 305Dr. NeriProblem Set No. 5 due in class on Tuesday May 3, 2011I WILL POST THE PAGES FROM MANKIWQuestion No. 1Mankiw, Chapter 13. Problems and Applications, No. 2, 7th Edition (do not do the sacrifice ratio).This question 3 in the 6th Edi
Maryland - ECON - 305
Economics 305Spring 2011Dr. NeriProblem Set No. 4 due in class on Tuesday April 26.Late submissions and e-mail submissions will not be accepted.1. Assume the economy is at full employment and the Fed increases the rate of growth in themoney supply (
Maryland - ECON - 305
Economics 305Spring 2011Dr. NeriProblem Set No. 4 due in class on Tuesday April 26.Late submissions and e-mail submissions will not be accepted.1. Assume the economy is at full employment and the Fed increases the rate of growth in themoney supply (
Maryland - ECON - 305
Economics 305Dr. NeriProblem Sets No. 6 due in class on Thursday May 101) Prepare short descriptions of the Life-Cycle and Permanent Income Hypotheses.2) What is meant by the phrase "consumption smoothing" and why is it a key element onthe Life-Cycle
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer Security, Fall 2011BACKGROUND KNOWLEDGE (10 minutes only)The purpose of this quiz is to test your background knowledge in Computer Security. The next weekyou should be able to answer all questions correctly.This quiz
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 1, Fall 2011 (5 minutes only)WITH SOLUTIONSThis quiz concerns the basic requirements for Computer Security.1. The basic Security requirements for Trusted Systems are discussed in a publication of the US D
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 2, Fall 2011 (5 minutes only)WITH SOLUTIONSThis quiz concerns the protection mechanisms used in general purpose Operating Systems.1. What is the Fundamental Dilemma of Computer Security.Functionality or
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer Security, Fall 2011WITH ANSWERSQUIZ 3 (5 minutes only)This quiz concerns the protection mechanisms used in general purpose Operating Systems.1. Entity authentication is based on:(a) Something the entityknows(b) Som
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 4, Fall 2011 (5 minutes only)This quiz concerns the protection mechanisms used in general purpose Operating Systems.1. Protecting the password le: To validate passwords the system compares the passwordent
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 5, Fall 2011 (5 minutes only) WITH ANSWERSThis quiz concerns Cyber-Physical Systems.1. What do the initialsORNL stand for?Oak Ridge National Laboratory.2. A Cyber-Physical System is a hybrid system that
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 6, Fall 2011 (5 minutes only) with answersThis quiz concerns some of the basics of Cryptography.1. Kerchos assumption is that the adversary knows:(a) All the details of the system including the secret key
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 7, Fall 2011 (5 minutes only) Not to be gradedThis quiz concerns some of the basics of Cryptography.1. Cryptographic protocols are intended to let agents communicate security over an insecurenetwork. Is t
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 8, Fall 2011 (5 minutes only) with answersThis quiz concerns cipher systems.1. Ceasars cipher is a substitution cipher in which each one of the 26 letters of the alphabetis substituted by a letter obtaine
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 9, Fall 2011 (5 minutes only) with answersThis quiz concerns cipher systems.1. A cryptographic hash function h has the following properties:(a) h is a one way (or preimage resistant) function. What does t
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 10, Fall 2011 (5 minutes only) with answersThis quiz concerns access control.1. Complete the sentences.(a) What is an Access Control matrix?Answer. A matrix whose rows are indexed by the subjects s and c
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 12, Fall 2010 (5 minutes only) answersThis quiz concerns Access Control models.1. The Bell-LaPadula model employs access control matrices to model discretionaryaccess policies of the Orange Book.2. An ac
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 13, Fall 2011 with answers (5 minutes only)1. The BLP model is based on, (TRUE or FALSE) an Information ow model: TRUE an integrity model: FALSE a privacy model: TRUE some other model: FALSE2. The Bell
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 14, Fall 2011 (5 minutes only) with answers1. The BLP model states policies for changing access rights or the creation/deletion ofsubjects or objects. FALSE2. The HRU model states policies for changing ac
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 15-16-17, Fall 2011 (30 minutes) with answers1. The basic Bell-LaPadula model. Choose from: alter, subject, read, object, write.In the diagram below put labels: one above the solid line, one below it, and
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 16, Fall 2011 with answers1. The Biba model attaches labels to objects and subjects. What are these called?Answer: integrity labels.2. In the Biba model there is no procedure for verifying actions.3. In
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityQUIZ 18, Fall 2011 (5 minutes only) with answers1. The ve Layers of an IT system are:(a)Applications(b)Services(c)Operating System(d)OS kernel(e)Hardware2. Complete:The Reference monitor issubjects
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityHome Assignment 1, Fall 2011 SOLUTIONSDue date: Sept 13, 2011This concerns the basic requirements for Computer Security.Examples taken from Matt Bishops Introduction to Computer Security, Addison-Wesley.1. Cl
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityHome Assignment 2, Fall 2011 ANSWERSThis concerns the basic requirements for Computer Security.Examples taken from: Matt Bishops Introduction to Computer Security, Addison-Wesley.1. The aphorism security throu
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityHome Assignment 3, Fall 2011 WITH ANSWERSDue date: 9:30am, September 27, 2011 (at the beginning of class)This concerns the basic requirements for Authentiaction and Access Control.1. The police and the public
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityHome Assignment 4, Fall 2011 WITH ANSWERSThis concerns the basic requirements for Authentication and Cryptography.1. Passwords are entered by users and checked by computers. Thus there has to be some communicat
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityHome Assignment 5, Fall 2011 with answersDue: Tue 9:30pm, 10/11/2011This concerns access control structures.Examples taken from: Dieter Gollmann, Computer Security, John Wiley.1. You are given two bits to cap
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer Security with answersHome Assignment 7, Fall 2011Due: Tue 9:30pm, 11/1/2010This concerns Security models.Examples taken from: Dieter Gollmann, Computer Security, 2nd Edition, John Wiley.1. What does tranquility mean
Fayetteville State University - CIS - 4360
CIS 4360 Introduction to Computer SecurityHome Assignment 8, Fall 2011, with answersDue: Thu 9:30pm, 11/10/2011This concerns Security models.Some of the questions refer to a Practice Sheet, which is at the end of this assignment.1. The Biba model att
Fayetteville State University - CDA - 3100
Homework Assignment #1 Number RepresentationsThe purpose of this assignment is to let you be familiar and become comfortable with binaryrepresentations which are used heavily in computer organization. Problem 1 (30 points, 10 points each) Convert th
Fayetteville State University - CDA - 3100
Homework Assignment #2 MIPS InstructionsCDA 3100, Computer Organization ISubmission: A hard copy required. Problem 1 (30 points) Exercise 2.4.1(p. 182).The following problems deal with translating from C to MIPS. Assume that the variablesf,g,h,i,
Fayetteville State University - CDA - 3100
Assignment #5 Digital Logic Design I Combinational LogicCDA 3100, Computer Organization I Problem 1 (40 points) Design a circuit that takes three bits X2, X1, X0, as input, and output onebit O as output. O is 1 if and only if 1<=X<=3 when X=(X2, X1,
Fayetteville State University - CDA - 3100
Assignment #6 Digital Logic Design II Sequential LogicCDA 3100, Computer Organization I Problem 1 (50 points) Design a circuit that has an input clk, and an output Q which has threebits. At the rising edge of the clk, the unsigned binary number repr
Fayetteville State University - CIS - 5930
HPC Final Exam - Fall 2007(Please print)Name:Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 pointsin total for this exam.1. What does SPMD stand for? (5 points)2. What is the difference between task partit
Fayetteville State University - CIS - 5930
HPC Midterm Exam - Fall 2008(Please print)Name:Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 pointsin total for this exam.1. Amdahls law determines the speedup SP = P/(1 + (P 1)f ) of a parallel applicatio
Fayetteville State University - COP - 5621
COP5621 Compiler Construction Exam 1 - Spring 2007(Please print) Name: Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 points in total for this exam. 1. Why are forward declarations needed in Pascal programs (or
Fayetteville State University - COP - 5621
COP5621 Compiler Construction Exam 2 - Spring 2007(Please print) Name: Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 points in total for this exam. 1. Which of the following terms describes a parsing error rec
Fayetteville State University - COP - 5621
COP5621 Compiler Construction Exam 3 - Spring 2007(Please print) Name: Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 points in total for this exam. 1. What is the name of the evaluation method where the evalua
Fayetteville State University - COP - 5621
Fayetteville State University - CDA - 3100
1. Find the decimal representation of the following binary numbers (regarded as unsignedintegers)(a) 110010(b) 101100(c) 111101[50, 44, 61]2. Find the binary representation in 6 bits of the following decimal integers:(a) 28(b) 45(c) 62[011100, 1
Fayetteville State University - CDA - 3100
1. Find the single precision floating number representation of the following decimal numbers:(a) 1.125(b) 6.53125(c) -5.546875[answer.] (a ) From the last problem, we know that the binary scientific representation of 1.125is 1.001. So, sign bit is 0,
Fayetteville State University - CDA - 3100
1. Ask the students to write code to find the location of the maximum element in an array with10 positive elements. Try to explain the basic concepts of memory access, shift, loop andbranch to them.One of the possible implementations is follows:# find
Fayetteville State University - CDA - 3100
In this recitation, please mainly help the students in understanding MIPS functions. Help themwith jal, jr first, then help them with the stack. Explain the basic concepts to them.Then ask the students to write code to implement a function to find the n
Fayetteville State University - CDA - 3100
This week, please mainly help the students with how to run codes with SPIM.1. Use any editor to write the source file.2. Run PCSpim or QtSpim, load the source file.3. F10 to step through the code.Please make sure that every student is able to run SPIM
Fayetteville State University - CDA - 3100
This week, please still try to make sure that every student is able to run SPIM and knows how todebug with it. In there are additional time, please ask them to write a complete program inwhich two floating point arrays, arry0 and arry1 are given, each w
Fayetteville State University - CDA - 3100
In the lecture I will discuss how to write the basic main loop for an embedded controller. Basedon the TV.asm given in the lecture downloadable from the slides, write a process_input functionthat responds to `m, `h, `q (ascii code 109, 104, 112, respect
Fayetteville State University - CDA - 3100
In this recitation, please help the students with the K-map. This is a very good link I found on theweb about the K-map:http:/www.ee.surrey.ac.uk/Projects/Labview/minimisation/karrules.htmlso please go over this with the students first. Then, ask them
Fayetteville State University - CDA - 3100
In this recitation, you may help the students with some more advanced combinatorial circuitdesign:1. You may ask them to design a 4-bit encoder, which takes four bit inputs and output two bits.If the input bits are 1xxx, the output is 11. If the input
Fayetteville State University - CDA - 3100
In this recitation, the goal is to let the students get familiar with both sequential circuit designand Verilog. You may first help the students with their problems with the Verilog simulator. Allstudents are supposed to be able to run the simulator, an
Fayetteville State University - CDA - 3100
Design a circuit that has two inputs, clk and X, and produces one output O. X may change everyclock cycle, and the change happens at the falling edge. The circuit samples the input at everyrising edge of the clock. If the input is 1, consider as read a