30 Pages

10_1425_web_Lec_34_GasProcessesHeatTransport

Course: PHYSICS 1425, Spring 2010
School: UVA
Rating:
 
 
 
 
 

Word Count: 1987

Document Preview

Processes Gas and Heat Transport Physics 1425 Lecture 34 Michael Fowler, UVa The First Law of Thermodynamics A closed system has a total internal energy Eint. This energy can be changed in two different ways: A. The system can do work W, or have work done on it, -W. B. Heat Q can flow into the system, or -Q flow out. The First Law is just total energy conservation: Eint = Q W Change in internal energy =...

Register Now

Unformatted Document Excerpt

Coursehero >> Virginia >> UVA >> PHYSICS 1425

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.
Processes Gas and Heat Transport Physics 1425 Lecture 34 Michael Fowler, UVa The First Law of Thermodynamics A closed system has a total internal energy Eint. This energy can be changed in two different ways: A. The system can do work W, or have work done on it, -W. B. Heat Q can flow into the system, or -Q flow out. The First Law is just total energy conservation: Eint = Q W Change in internal energy = heat in work done. States of an Ideal Gas Suppose we have n moles of an Z ideal gas in equilibrium in a P piston. The state of the gas can be defined by giving the state variables P, V. The gas state is a point in the (P, V) plane. V If heat is exchanged or work done, the gas state variables The temperature (and therefore internal energy) trace a path in the (P, V) plane. is constant along an If the gas moves along an isotherm, PV = const. isotherm PV = constant, its internal energy stays the same. The Gas Does Some Work The gas pressure P means the force a from the gas on the piston, of area A, is PA. This means that if the piston moves up a distance d, the work done by the gas, force x distance = PAd =PdV. The work done by the gas in expanding isothermally, along PV = nRT, is VB VB nRT VB = = = nRT ln W PdV dV V VA VA VA d Area A States of an Ideal Gas Note that the work done by the gas in isothermal expansion VB P Z A VB nRT VB = = = nRT ln W PdV dV V VA VA VA is just the area under the path and in fact this must be true of the work done along any path. The gas clearly does less work going from A to B on the red path. This means less heat is supplied to the gas along the red path! B VA VB V VA VB V P Clicker Question What is the true heat difference P Z between state A and state B? A. The heat needed to get from state A to state B along the isotherm. B. The heat supplied going along the red route. P C. The heat needed along a minimal heat transfer route, which may be different from either. D. The question doesnt make sense. A B VA VB V VA VB V Specific Heats of a Mole of Ideal Gas: CV If we heat up a gas by 1C at constant pressure, it will expand and do work, so we must supply more heat (to do this work) than if it is heated by 1C when kept at constant volume. Recall that the internal energy of a mole of gas is Eint = NAkT = RT. Therefore, the heat energy input to raise the temperature 1C at constant volume, the constant volume specific heat CV is just CV = R (R = 8.3 J/molK) Specific Heats of a Mole of Ideal Gas: CP The constant volume specific heat CV is just CV = R (R = 8.3 J/molK) For one mole of gas, PV = RT, so at constant pressure PV = RT = R for a temperature increase of 1C (or equivalently 1K). This equation also tells us the work done in expanding at constant pressure, PV = R for one degreeso an extra R Joules of energy must be supplied above that needed for CV, CP = CV + R = / R Molar Specific Heats of Real Gases For monatomic gases (He, Ne, Ar) at room temperature, the ideal gas values CV = R and CP = CV + R are good to three significant figures. BUT for diatomic gases, CV = (5/2)R, CP = CV + R! Visualize the diatomic molecules as little dumbbells flying around. When two collide, they can set each other spinning. It can be shown by applying Newtons laws to the collisions that on average the spinning motion will have equal energy with the translational motion: this is called the Equipartition of Energy (link!). Equipartition of Energy: Degrees of Freedom For the ideal monatomic gas, we say the atoms have three degrees of freedom, the three different directions x, y, z and the 2 2 2 total kinetic energy is 1 m ( vx + v y + vz ) . 2 The average atomic KE is kT per degree of freedom, for a total kT. The diatomic gas has specific heat 2.5kT: evidently there are two more degrees of freedom: obviously rotation about axes perpendicular to the line of the molecule. Bigger molecules have many more possibilities, like vibrational energy. An Equipartition Puzzle: Specific Heat of H2 as a Function of T Whats going on here? 3.5R 2.5R 1.5R 25 50 100 200 400 800 1600 3200K An Equipartition Puzzle: Specific Heat of H2 as a Function of T Whats going on here? Vibrational mode kicking in. 3.5R 2.5R Rotational modes getting their share. 1.5R At low temperatures, H2 acts like a monatomic gas. No thermal energy is going into the rotational modes, even though the molecules are colliding! 25 50 100 200 400 800 1600 3200K Puzzle Answered: the Quantum Theory Newtons Laws dont work here. This temperature dependence of the specific heat of real H2 gas can only be understood with quantum mechanics! It turns out that the angular momentum of a spinning object can only have values which are whole numbers times , where is Plancks constant/2, = 1.06 x 10-34 Jsec. The H2 molecule has such a tiny moment of inertia it takes quite a kick to spin it fast enough for the minimum allowed angular momentumso it doesnt get to spin at low temperatures. Molar Specific Heat of Solids Many simple solids, such as H elements, can be pictured as a lattice of balls connected by springs, a 3-D version of this: Each atom acts like an oscillator with three degrees of freedom, each degree has both KE and PE, suggesting a molar specific heat of 3R. This is just the Dulong Petit value, and works well for many elements except at low temperatures Molar Specific Heats of Copper and Diamond 3R 2R Amost all elements are like copper: 3R at room temperature. Whats so special about diamond? It took Einstein to figure it out R 0 200 400 600 800 1000 1200 1400K Einstein Solves the Puzzle Einstein assumed each atom basically was a 3D mass-on-a-spring oscillator. The difference with diamond is that its masses are quite small (carbon) and its springs are very strongdiamond is hard! This means the oscillators have very high frequency . Einstein suggested that like the rotators, these oscillators could only absorb energy in chunks, called quanta, and one chunk was the same as the rotators. That means higher frequency diamond oscillators could only absorb energy in bigger chunksso they froze out at low temperatures. Coppers oscillators freeze out toobut at lower T. Clicker Question At the liquid nitrogen boiling temperature (77K) the molar specific heat of copper is about half its room temperature value. What would you expect the molar specific heat of lead to be at that temperature? A. Less than copper B. The same as copper C. Higher than copper. Hint: think of the atom oscillators. Is lead hard? Is it heavy? Adiabatic Expansion of an Ideal Gas Adiabatic is Greek for nothing gets throughhere it means no heat gets into or out of the gas. Therefore, for one mole, dEint = CV dT = -PdV From PV = RT, RdT = PdV + VdP, putting that dT in the equation, and defining = CP/CV, we can show that VdP + PdV = 0, which integrates to PV = constant. Clicker Question Two identical cylinders contain the same volume V of ideal gas, initially at the same temperature and pressure. Gas A is then compressed adiabatically to V, and gas B is compressed isothermally to V. Which is now at the greater pressure? A. A B. B C. Theyre equal. Isotherms and Adiabats Adiabats are steeper a than isotherms because work done compressing the gas along the adiabat all goes into internal energythe gas heats up. Compressing along the isotherm, the gas continuously sheds heat. Isotherms and Adiabats for One Mole Pressure in Atmospheres 25 20 15 10 5 0 0 2 4 6 Volume in Liters 8 10 Heat Conduction Heat conduction through solids acts just like a fluid flowthats why the caloric theory worked so well. The flow of heat down a rod is proportional to the temperature gradient (like a river flowing downhill), proportional to the cross-section area of the rod (like water in a pipe) and varies from material to material depending on the thermal conductivity k, a property of the material. Heat Flow down a Rod For a rod of material with thermal conductivity k, length and cross-section area A, the heat flow Q in time t is given by: Q T1 T2 = kA t or differentially dQ dT = kA . dt dx Microscopic Picture of Heat Conduction If one end of a nonmetallic rod is heated, the atom near that end vibrate more vigorously and emit tiny sound waves, called phonons, that travel down the rod. These go at the speed of sound, but are easily scattered by impurities or lattice defects, so they actually diffuse down the rod, like molecules in a gas, and in comparable timesthey move at similar speeds to molecules and in many solids have mean free paths of tens or hundreds of atomic spacings. Heat Conduction in Metals Metals are shiny materials that conduct electricity well. Both these properties are due to the presence of large numbers of free electronselectrons not bound to individual atoms, but free to move through the material. (Well understand why that makes them shiny next semester.) The electrons are excellent conductors of heatthey move very fast and have long mean free paths. Metals typically conduct heat a hundred times better than nonmetals. Heat Insulators Heat insulators are solids that are in fact mostly airrockwall insulation has a density about 12% that of water, its just full of tiny holes filled with air, and air is a poor conductor of heatheat moves through the atmosphere by convection and radiation. These holes are too small for convection currents to get set up. Goosedown and polyurethane are even better heat insulators, but lack structural strength. Convection If a fluid is heated from below, like the atmosphere over hot ground, the less dense air moves upwards. If it contains moisture, this may eventually condense out as the temperature drops below the dew point, forming a cloud. Convection works upside down to cool a lake from the surface downwards as winter beginsBUT stops at 4C below that temperature the waters density decreases, and the cold stays on top. Radiation All bodies radiate thermal energy: this radiation is electromagnetic waves generated by the motion of electric charges oscillating with the heat vibrations in the solid. (This will be discussed much more next semester.) The intensity of radiation from a surface, in watts/sq m, depends on the surface material: its proportional to an experimentally determined coefficient of emissivity, called e or , varying from 0 to 1, 1 being the best possible radiator. = 1 is called a perfect black body. Solar Radiation The intensity of black body radiation varies with absolute temperature, I = T4 watts/m2 where Stefans constant = 5.67 x 10-8 watts/m2K4. The sun, at 5780K, radiates about 60 megawatts per square meter of surface. This reaches Earth at an intensity of 1.35kW/sq m (above the atmosphere), this is called the solar constant. Radiation Equilibrium You are currently radiating energy proportional to the fourth power of your temperature in kelvins. But so is everyone else, and the walls, etc., so you are also receiving radiant energy. If an object is left in a constant temperature room, it reaches that temperature and stays there. This means its ability to absorb radiant energy must exactly equal its emissivity. Before reaching equilibrium, the energy transfer rate per sq m of surface is (Tobj4 - Troom4).
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:

UVA - PHYSICS - 1425
The Second Law of Thermodynamics:Heat EnginesPhysics 1425 Lecture 35Michael Fowler, UVaThe First Law of Thermodynamics In any process, total energy is always conserved. Once it was fully realized that heat is just anotherform of energy, it was esta
UVA - PHYSICS - 1425
EntropyPhysics 1425 Lecture 36Michael Fowler, UVaFirst and Second Laws ofThermodynamics A quick review. First Law: total energy conserved in anyprocess: joules in = joules out Second Law: heat only flows one way, and wecant turn heat into just wo
Auburn - PHYS - 2200
Physics 1425: General Physics ISpring 2010Michael FowlerRoom 307, PhysicsHome PageTodays Topics Course arrangements, syllabus outline. Nature of science: observation andmeasurement. Accuracy, significant figures. Units, mass of water, estimation
Auburn - PHYS - 2200
A proposed Magnetized Dusty Plasma User FacilityE. Thomas, Jr. (Auburn Univ.), R. L. Merlino (Univ. Iowa), M. Rosenberg (UCSD)Previous experiments on magnetized dusty plasmasFeasibility of a magnetized dusty plasma facilityMPE superconducting magnet s
Auburn - PHYS - 2200
SOLUTIONSPHYS 2200 Introduction to Quantum Mechanics and RelativityEXAM 1Fall Semester, 2011Instructions:a) This exam is closed book and closed notes.b) You MUST show all of your work in order to obtain full credit on the problems.Part 1: Short Pro
Auburn - PHYS - 2200
Solutions to HW 1: Ch. 1 - 3, 4, 7, 8, 9, 20, 22, 25, 41 The problem uses the Lorentz transform approach. More explicitly, they have done the following: Earth frame: Plane frame: Dlyra = +2500 cy = x1
Auburn - PHYS - 2200
oo234x(m)(b) When 10 seconds have passed on the rocket's clock, only 6 seconds have passed onthe laboratory clock.Solutions to HW 1: Ch. 1 18, 23, 27, 43; Ch. 2 1, 4, 5, 81-18.(a)U'=0U~=0xyx'vx=UxU'x+v1 + vU.:O+V=-=VIc1+ 02
Auburn - PHYS - 2200
Solutions to HW 3: Ch. 2 12, 14, 17, 19, 24, 27, 40 -9Note: Error in text solution: 0.34 ng and 0.68 ng (n = nano = 10 ) NOT !
Ole Miss - SPAN - 102
Expresiones para la claseExpressions for the classLearn the following commands, so that you can react to them when they are used by your instructor:Comments and questions from the studentsCmo se dice en espaol?Cmo se escribe?Qu quiere decir?No enti
Ole Miss - SPAN - 102
Spanish 102 Exam 1 Study Guide - Captulo 5 - (35 points)* Please bring a purple scantron and # 2 pencils.*Receiving or giving aid on a test or an exam is cause for dismissal from the University ofMississippi. Any questions should be directed to your In
Ole Miss - SPAN - 102
STUDY GUIDE - ESPAOL 102 - EXAMEN 2 - Captulo 6 (33 points)* Please bring a purple scantron and # 2 pencils.*ACTIVIDAD A. LOS ALIMENTOS.Las descripciones de alimentos. John est en un restaurante mexicano pero no comprende elmen. Su amigo Miguel le des
Ole Miss - SPAN - 102
ESPAOL 102 - EXAMEN 3 - Captulo 7 - STUDY GUIDE* Please bring a purple scantron and # 2 pencils.*ACTIVIDAD A. Qu tiempo hace? Juana tiene que hacer un informe meteorolgico.Escucha lo que dice y selecciona la opcin correcta. (4 puntos)Modelo:You hear:
Ole Miss - SPAN - 102
ESPAOL 102 EXAMEN 4 Captulo 8 (27 puntos)* Please bring number a purple scantron sheet and number 2 pencils.*Receiving or giving aid on a test or an exam is cause for dismissal from the University ofMississippi. Any questions should be directed to your
Ole Miss - SPAN - 102
ESPAOL 102 STUDY GUIDE - EXAMEN FINAL (100 puntos)* Please do not forget your PURPLE scantron sheet and no. 2 pencils *Receiving or giving aid on a test or an exam is cause for dismissal from the University. Anyquestions should be directed to your inst
Ole Miss - SPAN - 101
Expresiones para la claseExpressions for the classLearn the following commands, so that you can react to them when they are used by your instructor:Comments and questions from the studentsCmo se dice en espaol?Cmo se escribe?Qu quiere decir?No enti
Ole Miss - SPAN - 101
SPANISH 101 STUDY GUIDE TEST 1 Captulo 1 (36 points)Please, bring a Purple Scantron No. 16485 and # 2 pencils.Receiving or giving aid on a test or an exam is cause for dismissal from the University ofMississippi. Any questions should be directed to you
Ole Miss - SPAN - 101
SPANISH 101 - STUDY GUIDE- EXAM 2 - Captulo 2 - (38 points)Please, bring a Purple Scantron No. 16485 and # 2 pencils.Receiving or giving aid on a test or an exam is cause for dismissal from the University ofMississippi. Any questions should be directed
Ole Miss - SPAN - 101
STUDY GUIDE- SPANISH 101 EXAMEN 3 - CHAPTER 3 (37 points)Please, bring a Purple Scantron No. 16485 and # 2 pencils.Receiving or giving aid on a test or an exam is cause for dismissal from the University. Anyquestions should be directed to your instruct
Ole Miss - SPAN - 101
Spanish 101 Study Guide - Exam 4 Chapter 4 (34 points)Please, bring a Purple Scantron No. 16485 and # 2 pencils.Receiving or giving aid on a test or an exam is cause for dismissal from the University of Mississippi. Anyquestions should be directed to y
Ole Miss - SPAN - 101
SPANISH 101- FINAL EXAM STUDY GUIDE - (100 points) - Fall 2011*Don't forget your purple scantron and # 2 pencil for the exam*ACTIVIDAD A. Arriba! Readings. (10 points)Choose the correct answer for each of the following questions related to the selected
Ole Miss - SPAN - 101
SPANISH 101 - ORAL EXAM - STUDY GUIDE Fall 2011TEMA 1: Mi primer da de clasesSituation: Students A and B pretend that today is the first day of class.Study pp. 5, 6, 7, 10, 11, 12, 13, 14, 21, 24, 25, 27, 28, 30, 43, 45, 50, 52, 59, 61, 62, 64, 67,79,
Ole Miss - SPAN - 101
The University of MississippiModern Languages DepartmentSpanish 101 Fall 2011Instructors name: John P. CampiglioE-mail: jpc@olemiss.eduOffice: 101 Old AthleticsPhone Number: (662) 915-1943Office hours: Tues./Thur. 1:00 - 2:15 pm, Fri. 3:00 - 4:00,
Auburn - BIOL - 7560
Reproductive Biology of theEndangered Shrub,Fremontodendron californicum subsp. decumbens,and its Conservation ImplicationsRobert BoydDepartment of Biological SciencesAuburn University 3 taxa recognized Species, orsubspeciesFremontodendroncalif
Auburn - BIOL - 7560
Ecology Letters, (2008) 11: 2434doi: 10.1111/j.1461-0248.2007.01123.xLETTERShared signals alarm calls from plants increaseapparency to herbivores and their enemies in natureRayko Halitschke,1 Johan A.Stenberg,2 Danny Kessler,3 AndreKessler1 and Ian
Auburn - BIOL - 7560
PollinationPollination Defn: transfer pollen from stamen to stigmaCarpel alsocalled pistil Sporic meiosis:Life Cycle Gametophytes make gametes BY MITOSIS Zygote grows into diploid sporophyte Sporophyte makes meiospores BY MEIOSIS Two bodies/one
Auburn - BIOL - 7560
Ecology, 90(9), 2009, pp. 23932404 2009 by the Ecological Society of AmericaCardenolides, induced responses, and interactions betweenabove- and belowground herbivores of milkweed (Asclepias spp.)SERGIO RASMANN,1 ANURAG A. AGRAWAL, SUSAN C. COOK,ANDA
Auburn - COMP - 2710
Lecture: Lab 3 - getColumnHow to convert a one-dimentional array into a two-dimentional array?Char plain[MAX_PLAIN];Char newPlain[MAX_ROW][MAX_COL];max_row = ceil(plain.length / key.length);for (i = 0; i < max_row*key.length; i+) cfw_j = i/key.lengt
Auburn - COMP - 2710
Auburn - COMP - 2710
Differences between Java and C+:Kind of *bleh* differences:1) C+ code is compiled, whereas Java bye-code is interpreted via the Java VirtualMachine-implications: C+ code is not transferable between machines and because of a lack ofstandardization, ma
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011About Me Undergraduate Student at Huazhong University of Scienceand Technology, (1996) Senior Design Project: Real-Time Disk Schedu
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011What will you get out of COMP2710? Analyze problems to determine systemrequirements Develop object-oriented software designs that m
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionProgramming EnvironmentC+ Basics 2: VariablesDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch (UCSD)Text Editors Choose a
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionC+ Basics 2: Variables and cin/coutDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch (UCSD)Declare a Variable A variable mu
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionHow to debug programsFlow of ControlDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011Some slides are adapted from notes by Dr. Walter Savitch (UCSD)Homework 1 A case study How to
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionLoopsFunction BasicsDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Loops 3 Types of loops in C+ while Most flex
Auburn - COMP - 2710
Quiz 1 - FeedbackCount:53Average: 6.5Median: 7.5Maximum: 10.0 (13 students)3-1Homework 1 - FeedbackCount: 53Average:18.5Median:19.0Maximum:20.0Minimum:0.03-2Code Review - Sample 1 hw1-sample1.cppDo you have any suggestionon how to improve
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionFile I/O (1)Dr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Introduction Streams Special objects Deliver program
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionArraysDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Learning Objectives Introduction to Arrays Declaring and ref
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionArraysDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Explain the Following Array ProgramWhat is theoutput?5-2Ar
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionMultidimensional ArrayFile I/O (cont.)Dr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Multidimensional Arrays Arra
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionFile I/O (cont.)Dr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Formatting Outputwith Stream Functions Recall chap
Auburn - COMP - 2710
Random Access to Files Sequential Access Most commonly used Random Access Rapid access to records Perhaps very large database Access "randomly" to any part of file Use fstream objects input and outputCopyright 2008 Pearson Addison-Wesley. All rig
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionUnit TestingDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Winard BrittDesigning Test Cases andTesting How can we demonstrate success?
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionCall-by-Value vs. Call-By-ReferenceDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Parameters and Arguments Confusi
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionCall-by-Value vs. Call-By-ReferenceDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Parameters and Arguments Confusi
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionStructuresDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Learning Objectives Structures Structure types Structur
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionPointersDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Pointer Introduction Pointer definition: Memory address of
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionReviewDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011ChaptersCh 1, 2, 3Ch 4.1 and 4.3Ch 5Ch 6.1Ch 10.1Ch 121-2C+ Variables C+ Identifiers Keywords/reserved words vs. Iden
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionUse Case AnalysisDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 20111-1Motivations Why use cases? Offer a disciplined way to develop asystem and deal with its complexity. They are
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionUse Case - ExmaplesDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 20111-1Generalization vs. ExtendA use case generalization shows that oneuse case is simply a special kind ofanothe
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionPointers (cont.)Dr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Pointer Review Pointer definition: Memory address
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionLinked Data StructuresDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch(UCSD)Introduction Linked list Constructed using p
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionObject-Oriented DevelopmentDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011Slides are adapted from notes by Robert C.Martin1-1Object Oriented Programming1-2First VersionAll de
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionSoftware Process Class DiagramDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011Three Main Steps in the DesignPhase1. Construct Data Flow DiagramFunctionsObject Names2. Construct
Auburn - COMP - 2710
Lecture: System Sequence DiagramClass diagrams represent static relationships. Why?What about modeling dynamic behavior?Interaction diagrams model how groups of objectcollaborate to perform some behaviorTypically captures the behavior of a single use
Auburn - COMP - 2710
COMP 2710 SoftwareConstructionClassesDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 2011These slides are adapted from notes by Dr. Walter Savitch1-1(UCSD)Class Definitions Defined similar to structures Example
Auburn - COMP - 2710
Introduction Introduction make is a UNIX utility for building projects that are comprised of make multiple source files make takes care of dependencies, and will rebuild the project if one make or more file is modified a file, usually named makefile, con
Auburn - COMP - 2710
Makefiles are easy.Approach 1: In fact, to build a simple program that doesn't depend on any libraries, youdon't even need a makefile. make(1) is smart enough to figure it all out itself. Forinstance, if you have a file "xzq0001_hw1.cpp" (Note: xzq0001
Auburn - COMP - 2710
COMP 2710 SyllabusTerm: Fall 2011Course: COMP 2710: Software ConstructionSchedule: MWF, 8:00 8:50 am, in Shelby Center 1124Instructor: Dr. Xiao Qin (xqin@auburn.edu)Office: 3101E Shelby CenterOffice Phone: 334-844-6327Office Hours: MWF, 8:50 am 9:5
Auburn - COMP - 2710
UNIXThe BasicsSource:http:/cis.kutztown.edu/~kta/Projects/Unix.pptWhat is Unix?Unix is just an operating system. Itprovides the same functionality as theoperating systems we all know and love.What makes Unix slightly morechallenging, is its lack o
Auburn - COMP - 3400
COMP 4300 Computer ArchitectureDay 1: Read Other PeoplesCodeDr. Xiao QinAuburn Universityhttp:/www.eng.auburn.edu/~xqinxqin@auburn.eduFall, 20101These slides are adapted from notes by Dr. Carlos Oliveirahttp:/coliveira.net/software/day-1-read-ot