exam1_solution
12 Pages

exam1_solution

Course Number: CS 170, Fall 2009

College/University: Emory

Word Count: 1386

Rating:

Document Preview

CS170 Exam 1 February 24, 2009 Instructions: This exam is governed by the Emory Honor Code. This exam is closed book and closed notes. You will have the full class period (75 minutes). The point values are indicated beside each problem. You should assume that any code fragment that appears in this exam is embedded in a correct program. Name (print): ___solution__________________ This table is for grading,...

Unformatted Document Excerpt
Coursehero >> Georgia >> Emory >> CS 170

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.

Exam CS170 1 February 24, 2009 Instructions: This exam is governed by the Emory Honor Code. This exam is closed book and closed notes. You will have the full class period (75 minutes). The point values are indicated beside each problem. You should assume that any code fragment that appears in this exam is embedded in a correct program. Name (print): ___solution__________________ This table is for grading, please leave it blank. Problems # of Questions Points Score Multiple Choice Short Answers Bonus Total 18 5 1 27 36 64 2 102 Multiple Choice Questions (2 points each) Choose the best answer for each question. 1. The _____C_______ locates and executes program instructions, carries out arithmetic operations, and fetches data from storage and input devices. A) primary storage B) secondary storage C) CPU D) Java compiler 2. ____D_________ translates high-level language program into machine language program. A) CPU B) Memeory C) The operating system D) Java compiler 3. The JDK command to compile a Java source file Test.java is _____A___________. A) javac Test.java B) javac Test C) java Test.java D) java Test 4. What is the printout of the following code: ____A____________. double x = 5.5; int y = (int) x; System.out.println("x is " + x + " and y is " + y); A) x is 5.5 and y is 5 B) x is x and y is y C) x is 5.5 and y is 6 D) The above code will cause an error 5. Whats the value of x after the following code fragment? ____D_________ int x = 5; x *= x; int y = x++; A) 5 B) 6 C) 25 D) 26 Note: int y = x++; is equivalent to: int y = x; x++; 6. What happens if we try compiling a syntactically-correct .java file which contains no main method? ___D__________ A) It will cause a compiler error B) It will cause a run-time error C) It will throw an exception D) It will work fine Note: it will work fine to compile a .java file with no main method, however, it will cause a runtime error when try running the resulting .class file. 7. Given s1, s2, s3 declared below, which of the following statements correctly computes their average? ___C__________ int s1 = 80; int s2 = 100; int s3 = 80; A) double ave = s1 + s2 + s3 / 3.0; B) double ave = (s1 + s2 + s3 ) / 3; C) double ave = ((s1 + s2) + s3 ) / 3.0; D) double ave = s1 / 3 + s2 / 3 + s3 / 3; 8. Which of the following Java statements will not cause a syntax error? ___C__________ A) int x = 3; x / 2 = 1; B) int x; 1 = x % 2; C) int x = 3; x = x; D) int x; int y = x; 9. Which of the following are all fundamental data types in Java? ____C_________ A) Double, Integer, Char, String B) double, int, char, string C) double, int, short, long D) Double, Integer, Short, Long 10. If a and b are ints such that b is not 0, what is the value of the following expression? ___D_______ a-(a/b)*b A) 0 B) a C) a-b D) a%b Note: a/b performs an integer division 11. Given the declarations below, which of the following statements need an explicit cast in order to compile? ___C__________ int i1=10, i2=20; double d1=1.5, d2=2; A) i1 = i1/i2; B) d1 = d1/d2; C) i1 = i1/d2; D) d1 = Math.sqrt(d2) 12. What is the output of the following fragment? ____C_______ for (int i = 0; i < 15; i++) { if (i % 4 == 1) System.out.print(i + " "); } A) 1 3 5 7 9 11 13 B) 1 3 5 7 9 11 13 15 C) 1 5 9 13 D) 1 4 8 12 13. Analyze the following code: _____A_________ Code 1: boolean even; if (number % 2 == 0) even = true; else even = false; Code 2: boolean even = (number % 2 == 0); A) Both Code 1 and Code 2 are correct, but Code 2 is better B) Code 1 has syntax errors C) Code 2 has syntax errors D) Both Code 1 and Code 2 has syntax errors 14. Suppose x = 1, y = -1, and z = 1. What is the printout of the following statement? (hint: please indent the statement correctly first.) _______A_________ if (x > 0) if (y > 0) System.out.println("x > 0 and y > 0"); else if (z > 0) System.out.println("x < 0 and z > 0"); A) x < 0 and z > 0 B) x > 0 and y > 0 C) x < 0 and z < 0 D) no printout Note: else if is matched with the closest if which is the second if 15. Which of the following should be declared as a void method? _______D________ A) Write a method that returns a random integer from 1 to 100 B) Write a method that checks whether a number is positive C) Write a method that converts an uppercase letter to lowercase D) Write a method that prints integers 1 from to 100 16. What is the number of iterations in the following loop: _____D______ for (int i = 1; i < n; i++) { // iteration } A) 2*n B) n C) n + 1 D) n - 1 17.(int)(Math.random() * (65535 + 1)) returns a random number (assume the following ranges are inclusive) ____A_______. A) between 0 and 65535 B) between 1 and 65535 C) between 0 and 65536 D) between 1 and 65536 18. What is sum after the following loop terminates? ___A_______ int sum = 0; int item = 0; do { item++; sum += item; if (sum > 4) break; } while (item < 5); A) 6 B) 5 C) 8 D) 7 item = 1, sum = 1 item = 2, sum = 3 item = 3, sum = 6, break II. Short Answers 1. (10 points) Suppose you have 6 1/2 gallons of milk and want to store them in milk jars that can hold up to 0.75 gallons each. You want to know ahead of time, how many completely filled jars you will have. The following program has been written for that purpose. What is wrong with it? Why? How can you fix it? public class MilkJarCalculator { public static void main(String args[]) { double milk = 6.5; // gallons double jarCapacity = 0.75; // gallons int completelyFilledJars = milk / jarCapacity; System.out.println(completelyFilledJars); } } It will have a compiler error. milk / jarCapacity will return a double value, it is illegal to assign a double value to an int variable (narrowing conversion). The following fixes the problem by converting the division result to int explicitly: int completelyFilledJars = (int) (milk/jarCapacity); Note that the following is not a correct fix as casting operator will be evaluated first, so milk will be converted to an int, since jarCapacity is still double, the division result is still double. int completelyFilledJars = (int) milk/jarCapacity; Consider the program below for question 2 and 3. public class GreatestCommonDivisor { public static void main(String[] args) { // Generate two random integers int n1 = (int) (Math.random()*100); int n2 = (int) (Math.random()*100); // Print out the greatest common divisor System.out.println(gcd(n1, n2)); } /** return the greatest common advisor (gcd) of two integers */ public static int gcd(int n1, int n2) { int gcd = 1; // Initial gcd is 1 int k = 2; // Possible gcd while (k <= Math.max(n1,n2) ) { if (n1 % k == 0 && n2 % k == 0) gcd = k; // Update gcd k++; } return gcd; // Return gcd } } (10 points) 2. Identify all the method names that are defined in the code above. For each of methods identify return types and formal parameters. Method name main gcd return type void int formal parameters String[] args int n1, int n2 (10 points) 3. Rewrite the gcd method using for loop instead of while loop. public static int gcd(int n1, int n2) { int gcd = 1; // for (int k=2; k if (n1 % k == gcd = k; // } Initial gcd is 1 <= Math.max(n1,n2); k++ ) { 0 && n2 % k == 0) Update gcd return gcd; // Return gcd } (14 points) 4. Write a method that computes the mean of all numbers between a given range. The method signature is as follows. It should take two integers as parameters (a and b) and should return a double value. The returned value is the mean of all numbers that are greater or equal to a and less or equal to b. You can assume a < b. For instance, mean(7, 9) should return 8 (the mean of 7, 8, 9 is 8); mean (1, 4) should return 2.5 (the mean of 1, 2, 3, and 4 is 2.5). public static double mean(int a, int b) public static double mean(int a, int b){ int sum = 0; for (int i=a; i<=b; i++) sum += i; double m = (double)sum/(b-a+1); return m; } Note: The casting operator is needed in order to perform a double division double m = (double)sum/(b-a+1); Alternative: public static double mean(int a, int b){ double sum = 0; for (int i=a; i<=b; i++) sum += i; double m = sum/(b-a+1); return m; } (20 points) 5. Write a method that returns the sum of all digits in an integer. The method signature is as follows. You can assume number > 0. For instance, sum(1234) should return 10 and sum(12345) should return 15. public static int sum(int number) public static int sum(int number) { int remainder = number; int sum = 0; while (remainder > 0) { int digit = remainder % 10; remainder = remainder / 10; sum += digit; } return sum; } III. Optional (extra 2 points) Any comments and suggestions about the class so far (lectures, labs, homeworks ) that would help me improve the class would be appreciated! End of Exam

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:

Emory - CS - 170
CS170IntroductiontoComputerScience Midterm1 02/18/2009 Name: YouaretohonortheEmoryHonorCode.Thisisaclosedbookandclosed notesexam,andyouarenottouseanyotherresourcethanyourselfin completingthisexam.Youhave50minutestocompletethisexam.Thepoint
Emory - CS - 170
CS 170: Introduction to Computer Science I Emory University, Math/CS Dept.March 31, 2009Tenth Lab: StringsLab GoalsIn this lab we will modify one of our previous program to use String objects. You will practice how to use String methods.Gett
Emory - CS - 170
CS 170: Introduction to Computer Science I Emory University, Math/CS Dept.March 24, 2009Ninth Lab: Playing cardsLab GoalsIn this lab we will practice how to read and understand functionality of classes, which are already coded. We will impleme
Emory - CS - 170
CS 170: Introduction to Computer Science I Emory University, Math/CS Dept.April 7, 2009Eleventh Lab: Inheritance and overridingLab GoalsIn this lab we will write code for a simple inheritance hierarchy and invoke a polymorphic methods on vario
Emory - CS - 170
while Loop Flow Chartwhile (loop-continuation-condition) {int count = 0; while (count &lt; 100) { System.out.println(&quot;Welcome to Java!&quot;); count+; }count = 0;Chapter 4 Loops}/ loop-body; Statement(s);Loop Continuation Condition? true Statement(
Emory - CS - 170
CS170IntroductiontoComputerScience Midterm1 02/18/2009 Name: YouaretohonortheEmoryHonorCode.Thisisaclosedbookandclosed notesexam,andyouarenottouseanyotherresourcethanyourselfin completingthisexam.Youhave50minutestocompletethisexam.Thepoint
Iowa State - AERO - 361
MATLABThe Language of Technical ComputingComputation Visualization ProgrammingGetting Started with MATLABVersion 6How to Contact The MathWorks:www.mathworks.com comp.soft-sys.matlab support@mathworks.com suggest@mathworks.com bugs@mathwork
Allan Hancock College - RCHE - 0750
Modelling and Animation for GamesDESC9188Rob Saundersweb: http:/www.arch.usyd.edu.au/~rob e-mail: rob@arch.usyd.edu.au ofce: Room 274, Wilkinson BuildingStorytelling and NarrativeStories in GamesComputer games generally have some sort of sto
Allan Hancock College - DESC - 9177
To what extent is cyberspace really a space?Collaborative Virtual EnvironmentsThe technology of Collaborative Virtual Environments (CVEs) aims to transform todays computer networks into navigable and populated 3D spaces that support collaborative
Virgin Islands - ELEC - 484
ELEC 484 Assignment 2Design and implementation of wah-wah filter.A wah-way effect is created by a bandpass filter with variable centerfrequency and small bandwidth. The center frequency is controlled by alow frequency oscillator (LFO) with fr
Regis - CS - 361
this is a test. this is only a test. thank god it is only a test!1234567890987654321THIS IS A TEST. THIS IS ONLY A TEST. GOD HELP US IF IT ISN'T.
Columbia - ITC - 1121
Latin V1121: Intensive Elementary Course (Fall 2001) TRF 11:00am-12:15pm 518 Hamilton Hall Instructor: Jerise Fogel Teaching Assistant: Gary Wittman (include email) Office hours: Jeri-TR 9:00-10am and by appt., 601 Hamilton Gary-Fri 12:15pm 2pm and
Columbia - ITC - 3012
Catullus 51(meter: Sapphics) Ille mi par esse deo videtur, Ille, si fas est, superare divos, Qui sedens adversus identidem te Spectat et audit Dulce ridentem, misero quod omnis Eripit se
Columbia - ITC - 3012
Catullus 5(meter: hendecasyllabic [Phalaecean]) Vivamus, mea Lesbia, atque amemus Rumoresque senum severi-o-rum Omnes unius aestimemus assis. Soles occidere et redire possunt: Nobis cum semel occ
Columbia - ITC - 3012
Catullus 34(meter: glyconic stanzas) Di-a-nae sumus in fide Puellae et pueri integri: Dianam pueri integri Puellaeque canamus. O La-tonia, maximi Magna progenies Iovis, Quam mater prope Deliam De-p
Columbia - ITC - 3012
Catullus 34(meter: glyconic stanzas)Di-a-nae sumus in fide Puellae et pueri integri: Dianam pueri integri Puellaeque canamus. O La-tonia, maximi Magna progenies Iovis, Quam mater prope Deliam De-po-
Columbia - ITC - 3012
Catullus 5(meter: hendecasyllabic [Phalaecean]) Vivamus, mea Lesbia, atque amemus Rumoresque senum severi-o-rum Omnes unius aestimemus assis. Soles occidere et redire possunt: Nobis cum semel occidit brevis
Columbia - ITC - 3012
Catullus 51(meter: Sapphics) Ille mi par esse deo videtur, Ille, si fas est, superare divos, Qui sedens adversus identidem te Spectat et audit Dulce ridentem, misero quod omnis Eripit sensus
Columbia - ITC - 3012
Horace 1.11(meter: 5th Asclepiadean)Tu ne quaesieris (scire nefas), quem mihi, quem tibi finem di dederint, Leucono, nec Babylonios tentaris numeros. ut melius, quicquid erit, pati! seu plures hiemes, seu t
Columbia - ITC - 3012
Horace 1.5(meter: 4th Asclepiadean)Quis multa gracilis te puer in rosa perfusus liquidis urget odoribus grato, Pyrrha, sub antro? cui flavam religas comam simplex munditiis? heu quotiens fidem mutatosque deos flebit et aspera nigris aequora ventis
Columbia - ITC - 3012
Horace 3.13(meter: 4th Asclepiadean)O fons Bandusiae splendidi-or vitro dulci digne mero non sine floribus, cras donaberis haedo, cui frons turgida cornibus primis et Venerem et proelia destinat, frustra: nam gelidos infici-et tibi rubro sanguin
Columbia - ITC - 3012
Horace 3.23(meter: Alcaic)Caelo supinas si tuleris manus nascente luna, rustica Phidyle, si ture placa-ris et horna fruge Lares avidaque porca, nec pestilentem sentiet Africum fecunda vitis nec sterilem seges ro-bi-gi
Columbia - ITC - 3012
Horace 4.1(meter: 2nd Asclepiadean) Intermissa, Venus, diu rursus bella moves? parce, precor, precor. non sum, qualis eram bonae sub regno Cinarae. desine, dulcium mater saeva Cupidinum, 4circa lus
Columbia - ITC - 3012
Horace 4.7(meter: 1st Archilochean)Diffugere nives, redeunt iam gramina campis arboribusque comae, mutat terra vices et decrescentia ripas flumina praetereunt, Gratia cum Nymphis geminisque sororibus audet duc
N.C. State - MAE - 316
Homework 1 Solutions Grading: Problem 1.1, 1.4, 1.13, 1.15 : 2 points each. Part B and C : 1 point each.PART B. Problems with the 7/24 taper tool holder in high speed applications: Some important points: Due to centrifugal force the spindle ta
Georgia Tech - CS - 7450
ProductPie WeightCost/Slice($)Calories/sliceFat/sliceTypePizzaHutHandTossed311.5130591Domino'sDeepDish291.53382161PizzaHutPanPizza311.51338141Domino'sHandTossed211.932791LittleCaesarsPan!Pan!261.23309101LittleCaesa
Berkeley - EECS - 265
Practical Iterated Fill Synthesis for CMP Uniformity Yu Chen, Andrew B. Kahng, Gabriel Robins and Alexander Zelikovsky DepartmentUCLA Computer Science Dept., Los Angeles, CA 90095-1596 of Computer Science, University of Virginia, Charlottesville,
Chaminade University - CS - 499
The structure and function of complex networksM. E. J. NewmanDepartment of Physics, University of Michigan, Ann Arbor, MI 48109, U.S.A. and Santa Fe Institute, 1399 Hyde Park Road, Santa Fe, NM 87501, U.S.A.Inspired by empirical studies of network
Chaminade University - CS - 410
Chapter 11 Case Study 2: Windows 200011.1 History of windows 2000 11.2 Programming windows 2000 11.3 System structure 11.4 Processes and threads in windows 2000 11.5 Memory management 11.6 Input/output in windows 2000 11.7 The windows 2000 file syst
Chaminade University - CS - 410
Chapter 8 Multiple Processor Systems8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systemsMultiprocessor Systems Continuous need for faster computers shared memory model message passing multiprocessor wide area distributed systemMul
Wisconsin - CHE - 320
Notes for the 2nd revised edition of TRANSPORT PHENOMENA by Bird, Stewart, and LightfootThese notes, prepared in 2009, are intended for use by students and instructors to fill in the missing steps in some of the derivations in the text. Comments and
CSU Sacramento - EDTE - 286
286- Symphony homeSYMPHONYBy Dawn Futrell-Schilling, Mirna Jope, Kevin Woodard and Lisa YamasakiSymphony Value Theory Non-Technological Technological Standards Resources &quot;Symphony, as I call this aptitude, is the ability to put together the piece
Washington - GEO - 232
Geosci 232 Problem Set 2 Fall Quarter 2006October 17, 2006Getting basic data on planets The module planets.py contains a convenient handbook of basic data on Solar system planets and selected moons. If you import planets, then, for example, planets
Washington - GEO - 232
Geosci 232 Problem Set 3 Fall Quarter 2006October 27, 2006For information on how to plot a function, see the Python Examples section of the Python Support pages of the ClimateBook web site.1Clausius-Clapeyron:Methane on TitanTitan has a surfa
Washington - GEO - 232
Geosci 232 Problem Set 4 Fall Quarter 2006November 6, 2006Problem 0.1 This is a computer problem involving temperature-dependent specic heats. To do the problem, you will need to know the following programming techniques: (1) Dening and evaluating
Washington - GEO - 232
Geosci 232 Problem Set 5 Fall Quarter 2006November 12, 20065Problem Set: Black Body RadiationProblem 5.1 What is the total power radiated by a blackbody sphere of radius 1m having uniform temperature 300K , in the wavenumber range between 500c
Washington - GEO - 232
Geosci 232 Problem Set 6 Fall Quarter 2006November 20, 20066Problem Set: Radiation balance, Greenhouse Eect and Ice-Albedo feedbackProblem 6.1 Compute the equilibrium temperature at the subsolar point ofEuropa, which is in orbit around Jupit
Washington - GEO - 232
Workbook Problem and Exercise SolutionsOctober 24, 200711.1Problem Set 1 SolutionsProblem ? solutionForce is pressure times area. The pressure, in Pascals, is 105 P a. The area is 4 (10)2 . Thus, the force is 4 (10)2 105 , or about 1.25
Washington - GEO - 232
Workbook Problem and Exercise SolutionsNovember 6, 200711.1Problem Set 2 SolutionsProblem 2.1 SolutionFirst we compute the number of Moles of O2 in the air above a square meter of ocean. (Note that since we work in mks units, we will always
Washington - GEO - 232
Problem Set 2February 11, 2001Problem 1 : At a particular frequency the emissivity and absorbtivity of a substance are equal (Kirchoff's law). In our case we drop the frequency dependence within the IR range and take both emissivity and the absorbt
Washington - GEO - 232
Workbook Problem and Exercise SolutionsNovember 15, 200711.1Problem Set 3 SolutionsProblem 3.1 SolutionWe use the simplied exponential form of the Clausius-Clapeyron relation, with constants of integration based on the triple point for Metha
Washington - GEO - 232
Workbook Problem and Exercise SolutionsNovember 27, 200711.1Problem Set 4 SolutionsProblem 4.1 SolutionFor T = 250K the slope is .259, which is slightly less than the dry adiabat slope of .286. The slope is close to the dry adibat because th
Washington - GEO - 232
Workbook Problem and Exercise SolutionsNovember 29, 200711.1Problem Set 5 SolutionsProblem 5.1 SolutionTotal power: (37 + 273.15)4 A, or 1311W . This is far in excess of the daily calorie requirements because we dont radiate heat into a vacu
Washington - GEO - 232
Geosci 232 WQ '98 Answer Sheet: Solar absorption problem2. Destabilization of radiative equilibrium by a layer that absorbs solar radiationIn the notes, we showed that if 4R/Cp &gt; 1, then radiative equilibrium for an atmosphere with constant ( so
Washington - GEO - 232
Geosci 232 Problem Set 1 Spring Quarter 2005April 3, 2005Assigned Reading: Before doing the thermodynamics exercises, you should read Section 2.1 of the Workbook, on the subject of obtaining physical constants in Python using the phys module. Try o
Washington - GEO - 232
Geosci 232 Problem Set 2 Spring Quarter 2005April 14, 20051Analysis of temperature sounding dataFrom the Workbook, do the Data Labs 2.3.1 &quot;Analysis of Tropical Earth Soundings&quot; and 2.3.3 &quot;Analysis of planetary soundings.&quot;2The dry adiabatic
Washington - GEO - 232
Geosci 232 Problem Set 3 Spring Quarter 2005April 28, 20051Moist Adiabatic SlopeUsing the formula for the slope of the saturated moist adiabat for a condensible/noncondensible mixture, compute d ln(T )/d ln(pa ) for a mixture of water vapor an
Washington - GEO - 232
Geosci 232 Problem Set 4 Spring Quarter 2005May 10, 20051Astronaut in an escape podAn astronaut is sitting in a spherical escape pod with radius r. The temperature of the surface of the pod is uniform, and equal to the air temperature inside t
Washington - GEO - 232
Geosci 232 Problem Set 5 Spring Quarter 2005May 19, 20051Effect of solar absorption on the upper atmosphereIn this problem, we model the upper atmosphere as an isothermal layer with small infrared emissivity e. In the derivation of the skin te
Washington - GEO - 232
Geosci 232 Problem Set 6 Spring Quarter 2005May 30, 20051Basic insolation calculations(a) Make a graph of the latitude of the Sun vs. time of year for planets in a circular orbit having obliquities of 10o , 20o , 45o and 900 . (b) Chicago, IL
Washington - GEO - 232
Geosci 232 WQ '98 Problem Set 1 - Thermodynamics Review1. Jupiter's lapse rate and scale height The Galileo probe returned the first direct in situ measurements of the temperature profile of Jupiter's troposphere. It reported a temperature of 128K a
Washington - GEO - 232
Geosci 232 WQ '99 Problem Set 2 Black Body Radiation and Climate1 . Temperature of an astronaut in the dark of space An astronaut is floating in space behind the Earth, so that she is not illuminated by the Sun. The typical resting power output of a
Washington - GEO - 232
Geosci 232 WQ '99 Problem Set 31. Destabilization of radiative equilibrium by a layer with strong infrared emissivityIn the notes, we showed that if 4R/Cp &gt; 1, then radiative equilibrium for an atmosphere with constant ( so = (/g)(ps-p) ) was de
Washington - GEO - 232
Geosci 232 WQ '99 Problem Set 41. Exercises using the solar radiation formula(a) For a planet with obliquity of /2 radians , compute the annual average solar flux at the pole and at the equator. For such a planet, where would ice tend to form firs
Washington - GEO - 232
Geosci 232 WQ 2000 Problem Set 2 Black Body Radiation and Climate1 . Temperature of a cylindrical space station What is the temperature of a cylindrical space station of length h and radius r, if it is oriented with its axis perpendicular to its orb
Washington - GEO - 232
Geosci 232 WQ 2001 Problem Set 1 Black Body Basics1. Quantum theory and the blackbody spectrumIn suitable nondimensional units, the total energy content of a box containing electromagnetic radiation isE = n jnm where the summation extends over
Washington - GEO - 232
Geosci 232 WQ 2001 Problem Set 21 . Effect of solar absorption on surface and atmosphere temperature In this problem, you are asked to reconsider the greenhouse effect of an isothermal atmosphere, allowing for Solar absorption within the atmosphere.
Washington - GEO - 232
Geosci 232 WQ 2001 Problem Set 3Effect of solar absorption on the Stratosphere In class we discussed the temperature structure of a radiative-equilibrium grey gas atmosphere which was absorbing in the IR, but transparent to solar wavelength radiatio
Washington - GEO - 232
Geosci 232 WQ 2001 Problem Set 31. Destabilization of radiative equilibrium by a layer with strong infrared emissivityIn the notes, we showed that if 4R/Cp &gt; 1, then radiative equilibrium for an atmosphere with constant ( so = (/g)(ps-p) ) was d
Washington - GEO - 232
Geosci 232 WQ 2001 Problem Set 51. A simplified radiative-convective modelIn this problem we consider a simplified atmosphere which nevertheless has a stratosphere/troposphere structure. It is like the standard grey-gas radiative/convective model,
Washington - GEO - 232
Geosci 232 Problem Set 1January 21, 2003Many of the problems here are simple enough that they can be done with a spreadsheet or calculator, but you are urged to use Python so as to build familiarity with the language. Note: To make life easier, I h