Course Hero - We put you ahead of the curve!
You have requested the below document.

Chapter 02 Old Dominion CS 150
Sign up now to view this document for free!
  • Title: Chapter 02
  • Type: Notes
  • School: Old Dominion
  • Course: CS 150
  • Term: Spring

Coursehero >> Virginia >> Old Dominion >> CS 150
Course Hero has millions of student submitted documents similar to the one below including study guides, homework solutions, papers, and exam answer keys.

Programming: C++ From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives In this chapter you will: Become familiar with the basic components of a C++ program, including functions, special symbols, and identifiers Explore simple data types and examine the string data type Discover how to use arithmetic operators Objectives (continued) Examine how a program evaluates arithmetic expressions Become familiar with the string Type Learn what an assignment statement is and what it does Discover how to input data into memory using input statements Become familiar with the use of increment and decrement operators Objectives (continued) Examine ways to output results using output statements Learn how to use preprocessor directives and why they are necessary Explore how to properly structure a program, including using comments to document a program Learn how to write a C++ program Introduction Computer program: sequence of statements designed to accomplish some task Programming: planning/creating a program Syntax: rules that specify which statements (instructions) are legal Programming language: a set of rules, symbols, and special words Semantic rule: meaning of the instruction C++ Programs A C++ program is a collection of one or more subprograms, called functions A subprogram or a function is a collection of statements that, when activated (executed), accomplishes something Every C++ program has a function called main The smallest individual unit of a program written in any language is called a token Symbols Special symbols + * / . ; ? , <= != == >= Symbols (continued) Word symbols - Reserved words, or keywords - Include: int float double char void return Identifiers Consist of letters, digits, and the underscore character (_) Must begin with a letter or underscore C++ is case sensitive Some predefined identifiers are cout and cin Unlike reserved words, predefined identifiers may be redefined, but it is not a good idea Legal and Illegal Identifiers The following are legal identifiers in C++: - first - conversion - payRate Data Types Data Type: set of values together with a set of operations is called a data type C++ data can be classified into three categories: - Simple data type - Structured data type - Pointers Simple Data Types Three categories of simple data - Integral: integers (numbers without a decimal) - Floating-point: decimal numbers - Enumeration type: user-defined data type int Data Type Examples: -6728 0 78 Positive integers do not have to have a + sign in front of them No commas are used within an integer Commas are used for separating items in a list bool Data Type bool type - Has two values, true and false - Manipulate logical (Boolean) expressions true and false are called logical values bool, true, and false are reserved words char Data Type The smallest integral data type Used for characters: letters, digits, and special symbols Each character is enclosed in single quotes Some of the values belonging to char data type are: 'A', 'a', '0', '*', '+', '$', '&' A blank space is a character and is written ' ', with a space left between the single quotes Floating-Point Data Types C++ uses scientific notation to represent real numbers (floating-point notation) Floating-Point Data Types (continued) float: represents any real number - Range: -3.4E+38 to 3.4E+38 Memory allocated for the float type is 4 bytes double: represents any real number - Range: -1.7E+308 to 1.7E+308 Memory allocated for double type is 8 bytes On most newer compilers, data types double and long double are same Floating-Point Data Types (continued) Maximum number of significant digits (decimal places) for float values is 6 or 7 Float values are called single precision Maximum number of significant digits for double is 15 Double values are called double precision Precision: maximum number of significant digits Arithmetic Operators C++ Operators + addition subtraction * multiplication / division % remainder (mod operator) +, -, *, and / can be used with integral and floating- point data types Unary operator - has only one operand Binary Operator - has two operands Order of Precedence All operations inside of () are evaluated first *, /, and % are at the same level of precedence and are evaluated next + and have the same level of precedence and are evaluated last When operators are on the same level - Performed from left to right Expressions If all operands are integers - Expression is called an integral expression If all operands are floating-point - Expression is called a floating-point expression An integral expression yields integral result A floating-point expression yields a floatingpoint result Mixed Expressions Mixed expression: - Has operands of different data types - Contains integers and floating-point Examples of mixed expressions: 2 + 3.5 6 / 4 + 3.9 5.4 * 2 13.6 + 18 / 2 Evaluating Mixed Expressions If operator has same types of operands - Evaluated according to the type of the operands If operator has both types of operands - Integer is changed to floating-point - Operator is evaluated - Result is floating-point Evaluating Mixed Expressions (continued) Entire expression is evaluated according to precedence rules - Multiplication, division, and modulus are evaluated before addition and subtraction - Operators having same level of precedence are evaluated from left to right - Grouping is allowed for clarity Type Conversion (Casting) Implicit type coercion: when value of one type is automatically changed to another type Cast operator provides explicit type conversion Use the following form: - static_cast<dataTypeName>(expression) string Data Type Programmer-defined type supplied in standard library Sequence of zero or more characters Enclosed in double quotation marks Null: a string with no characters Each character has relative position in string Position of first character is 0, the position of the second is 1, and so on Length: number of characters in string Input Data must be loaded into main memory before it can be manipulated Storing data in memory is a two-step process: 1. Instruct the computer to allocate memory 2. Include statements to put data into allocated memory Allocating Memory Named Constant: memory location whose content can't change during execution The syntax to declare a named constant is: In C++, const is a reserved word Variable: memory location whose content may change during execution Assignment Statement The assignment statement takes the form: variable = expression; Expression is evaluated and its value is assigned to the variable on the left side In C++ = is called the assignment operator A C++ statement such as: i = i + 2; evaluates whatever is in i, adds two to it, and assigns the new value to the memory location i Declaring & Initializing Variables Variables can be initialized when declared: int first=13, second=10; char ch=' '; double x=12.6, y=123.456; first and second are int variables with the values 13 and 10, respectively ch is a char variable whose value is empty x and y are double variables with 12.6 and 123.456, respectively Input (Read) Statement cin is used with >> to gather input cin >> variable >> variable. . .; The extraction operator is >> For example, if miles is a double variable cin >> miles; - Causes computer to get a value of type double - Places it in the memory cell miles Input Statement (continued) Using more than one variable in cin allows more than one value to be read at a time For example, if feet and inches are variables of type int a statement such as: cin >> feet >> inches; - Inputs two integers from the keyboard - Places them in locations feet and inches respectively Example 2-17 #include <iostream> #include <string> using namespace std; int main() { string firstName; string lastName; int age; double weight; cout << "Enter first name, last name, age, " << "and weight, separated by spaces." << endl; cin >> firstName >> lastName; cin >> age >> weight; cout << "Name: " << firstName << " " << lastName << endl; cout << "Age: " << age << endl; cout << "Weight: " << weight << endl; return 0; } //Line //Line //Line //Line 1 2 3 4 //Line 5 //Line 6 //Line 7 //Line //Line //Line //Line 8 9 10 11 Sample Run: Enter first name, last name, age, and weight, separated by spaces. Sheila Mann 23 120.5 Name: Sheila Mann Age: 23 Weight: 120.5 Increment & Decrement Operators Increment operator: increment variable by 1 Decrement operator: decrement variable by 1 Pre-increment: ++variable Post-increment: variable++ Pre-decrement: --variable Post-decrement: variable-- Increment & Decrement Operators (continued) ++count; or count++; increments the value of count by 1 --count; or count--; decrements the value of count by If x = 5; and y = ++x; - After the second statement both x and y are 6 If x = 5; and y = x++; - After the second statement y is 5 and x is 6 Output The syntax of cout and << is: cout<< expression or manipulator << expression or manipulator << ...; Called an output (cout) statement The << operator is called the insertion operator or the stream insertion operator Expression evaluated and its value is printed at the current cursor position on the screen Output (continued) Manipulator: alters output endl: the simplest manipulator - Causes cursor to move to beginning of the next line Output Example Output of the C++ statement cout << a; is meaningful if a has a value For example, the sequence of C++ statements, a = 45; cout << a; produces an output of 45 The New Line Character The new line character is '\n' this Without character the output is printed on one line Tells the output to go to the next line When \n is encountered in a string - Cursor is positioned at the beginning of next line A \n may appear anywhere in the string Examples Without the new line character: cout << "Hello there."; cout << "My name is James."; - Would output: Hello there.My name is James. With the new line character: cout << "Hello there.\n"; cout << "My name is James."; - Would output Hello there. My name is James. Preprocessor Directives C++ has a small number of operations Many functions and symbols needed to run a C++ program are provided as collection of libraries Every library has a name and is referred to by a header file Preprocessor directives are commands supplied to the preprocessor All preprocessor commands begin with # No semicolon at the end of these commands Preprocessor Directive Syntax Syntax to include a header file #include <headerFileName> Causes the preprocessor to include the header file iostream in the program The syntax is: #include <iostream> Header Files In older versions of C++ - Header files had the file extension .h ANSI C++ removes this extension The descriptions of the functions needed to perform I/O are contained in iostream The syntax is: #include <iostream> Using cin and cout in a Program and namespace cin and cout are declared in the header file iostream, but within a namespace named std To use cin and cout in a program, use the following two statements: #include <iostream> using namespace std; Using the string Data Type in a Program To use the string type, you need to access its definition from the header file string Include the following preprocessor directive: #include <string> Creating a C++ Program C++ program has two parts: 1. Preprocessor directives 2. The program Preprocessor directives and program statements constitute C++ source code Source code must be saved in a file with the file extension .cpp Creating a C++ Program (continued) Compiler generates the object code - Saved in a file with file extension .obj Executable code is produced and saved in a file with the file extension .exe. Declaration Statements int a, b, c; double x, y; - Variables can be declared anywhere in the program, but they must be declared before they can be used Executable Statements have three forms: a = 4; //assignment statement cin >> b; //input statement cout << a << " " << b << endl; //output statement Example 2-28 #include <iostream> using namespace std; const int NUMBER = 12; int main() { int firstNum; int secondNum; firstNum = 18; cout << "Line 9: firstNum = " << firstNum << endl; cout << "Line 10: Enter an integer: "; cin >> secondNum; cout << endl; cout << "Line 13: secondNum = " << secondNum << endl; firstNum = firstNum + NUMBER + 2 * secondNum; cout << "Line 15: The new value of " << "firstNum = " << firstNum << endl; return 0; } //Line 1 //Line //Line //Line //Line //Line //Line //Line 2 3 4 5 6 7 8 //Line //Line //Line //Line 9 10 11 12 //Line 13 //Line 14 //Line 15 //Line 16 Sample Run: Line 9: firstNum = 18 Line 10: Enter an integer: 15 Line 13: secondNum = 15 Line 15: The new value of firstNum = 60 Program Style and Form The Program Part - Every C++ program has a function main - Basic parts of function main are: The heading The body of the function The heading part has the following form typeOfFunction main(argument list) Syntax Errors in syntax are found in compilation int x; int y double z; y = w + x; //Line //Line //Line //Line 1 2: syntax error 3 4: syntax error Use of Blanks Use of Blanks - One or more blanks separate input numbers - Blanks are also used to separate reserved words and identifiers from each other and other symbols Blanks between identifiers in the second statement are meaningless: int a,b,c; int a, b, c; In the statement: inta,b,c; no blank between the t and a changes the reserved word int and the identifier a into a new identifier, inta. Semicolons, Brackets, & Commas Commas separate items in a list All C++ statements end with a semicolon Semicolon is also called a statement terminator { and } are not C++ statements Semantics Possible to remove all syntax errors in a program and still not have it run Even if it runs, it may still not do what you meant it to do For example, 2 + 3 * 5 and (2 + 3) * 5 are both syntactically correct expressions, but have different meanings Form and Style Consider two ways of declaring variables: - Method 1 int feet, inch; double x, y; - Method 2 int a,b;double x,y; Both are correct, however, the second is hard to read Documentation Comments can be used to document code - Single line comments begin with // anywhere in the line - Multiple line comments are enclosed between /* and */ Name identifiers with meaningful names Run-together-words can be handled either by using CAPS for the beginning of each new word or an underscore before the new word Assignment Statements C++ has special assignment statements called compound assignment +=, -=, *=, /=, and %= Example: x *= y; Programming Example Write a program that takes as input a given length expressed in feet and inches - Convert and output the length in centimeters Input: Length in feet and inches Output: Equivalent length in centimeters Lengths are given in feet and inches Program computes the equivalent length in centimeters One inch is equal to 2.54 centimeters Programming Example (continued) Convert the length in feet and inches to all inches: - Multiply the number of feet by 12 - Add given inches Use the conversion formula (1 inch = 2.54 centimeters) to find the equivalent length in centimeters Programming Example (continued) The algorithm is as follows: - Get the length in feet and inches - Convert the length into total inches - Convert total inches into centimeters - Output centimeters Variables and Constants Variables int feet; //variable to hold given feet int inches; //variable to hold given inches int totalInches; //variable to hold total inches double centimeters; //variable to hold length in //centimeters Named Constant const double conversion = 2.54; const int inchesPerFoot = 12; Main Algorithm Prompt user for input Get data Echo the input (output the input) Find length in inches Output length in inches Convert length to centimeters Output length in centimeters Putting It Together Program begins with comments System resources will be used for I/O Use input statements to get data and output statements to print results Data comes from keyboard and the output will display on the screen The first statement of the program, after comments, is preprocessor directive to include header file iostream Putting It Together (continued) Two types of memory locations for data manipulation: - Named constants - Variables Named constants are usually put before main so they can be used throughout program This program has only one function (main), which will contain all the code The program needs variables to manipulate data, which are declared in main Body of the Function The body of the function main has the following form: int main () { declare variables statements return 0; } Writing a Complete Program Begin the program with comments for documentation Include header files Declare named constants, if any Write the definition of the function main //******************************************************** // Program Convert Measurements: This program converts // measurements in feet and inches into centimeters using // the formula that 1 inch is equal to 2.54 centimeters. //******************************************************** //header file #include <iostream> using namespace std; //named constants const double CENTIMETERS_PER_INCH = 2.54; const int INCHES_PER_FOOT = 12; int main () { //declare variables int feet, inches; int totalInches; double centimeter; //Statements: Step 1 - Step 7 cout << "Enter two integers, one for feet and " << "one for inches: "; //Step 1 cin >> feet >> inches; //Step 2 cout << endl; cout << endl; cout << "The numbers you entered are " << feet << " for feet and " << inches << " for inches. " << endl; //Step 3 totalInches = INCHES_PER_FOOT * feet + inches; //Step 4 cout << "The total number of inches = " << totalInches << endl; //Step 5 centimeter = CENTIMETERS_PER_INCH * totalInches;//Step 6 cout << "The number of centimeters = " << centimeter << endl; //Step 7 return 0; } Sample Run Enter two integers, one for feet, one for inches: 15 7 The numbers you entered are 15 for feet and 7 for inches. The total number of inches = 187 The number of centimeters = 474.98 Summary C++ program: collection of functions where each program has a function called main Identifier consists of letters, digits, and underscores, and begins with letter or underscore The arithmetic operators in C++ are addition (+), subtraction (-),multiplication (*), division (/), and modulus (%) Arithmetic expressions are evaluated using the precedence associativity rules Summary (continued) All operands in an integral expression are integers and all operands in a floating-point expression are decimal numbers Mixed expression: contains both integers and decimal numbers Use the cast operator to explicitly convert values from one data type to another A named constant is initialized when declared All variables must be declared before used Summary (continued) Use cin and stream extraction operator >> to input from the standard input device Use cout and stream insertion operator << to output to the standard output device Preprocessor commands are processed before the program goes through the compiler A file containing a C++ program usually ends with the extension .cpp

Find millions of documents here - Study Guides, Homework Solutions, Papers, Exam Answer Keys and more. Course Hero has millions of course related materials that will enable you to learn better, faster and get an A in all your courses.
Below is a small sample set of documents:

03.History of Education Kidd update
Path: Old Dominion >> ECI >> 301 Fall, 2007

Description: How do you pronounce this word: \"Ghoti\" ? History Quiz Can you answer these next six questions and pass the test? We\'ve decided that 2/6 is a passing score. #1 1. Columbus sailed the ocean blue in 1492. How long was it from the time he last saw lan...
Renaissance
Path: Old Dominion >> MUSC >> 264A Spring, 2008
Description: The Renaissance (1450-1600AD) I am not pleased with the Courtier if he be not also a musician, and besides his understanding and cunning [in singing] upon the book, have skill in like manner on sundry instruments.\" \" -Baldassare Castiglione Music a...
02.Philosophy
Path: Old Dominion >> ECI >> 301 Fall, 2007
Description: A Little Morning Music? Part II: What in the World are Dwight Allen\'s treasures? The Whale Crier\'s kelp horn was first heard in Hermanus, South Africa, in August 1992. It is his mission to alert hundreds of shore-based whale watchers to the where...
00.IntroPart2
Path: Old Dominion >> ECI >> 301 Fall, 2007
Description: ECI 301 The details. Time is running out. Visit Dr. Allen in Ed 166-12 before he disappears from sight Find out: What\'s with the penguins? Who are these ladies? Where did he get that silly straw? What is he giving his wife? Where can I get a w...
12. Multicultural Implications
Path: Old Dominion >> ECI >> 301 Spring, 2008
Description: 1 of 13 Multicultural Implications 2 of 13 Four thrusts of multicultural education teaching of values increased impact of diverse cultures on the mainstream 3 of 13 Four thrusts of multicultural education (cont.) support for alternative and...
01. Philosophy
Path: Old Dominion >> ECI >> 301 Spring, 2008
Description: 1 of 14 Philosophical Foundations 2 of 14 All Teachers have a Philosophy of Education For some it is systematic and conscious For most it is unstated and erratic 3 of 14 The Value of an Intentional Philosophy Understanding why responses diffe...
chapter03
Path: Old Dominion >> CS >> 150 Spring, 2008
Description: C+ Programming: From Problem Analysis to Program Design, Third Edition Chapter 3: Input/Output Objectives In this chapter you will: Learn what a stream is and examine input and output streams Explore how to read data from the standard input device...
chapter01
Path: Old Dominion >> CS >> 150 Spring, 2008
Description: C+ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages Objectives In this chapter you will: Learn about different types of computers Explore the hardware and software c...
Test 2 Notes
Path: Texas >> GOV >> 310L Spring, 2008
Description: Presidential Elections Government 310L Professor Andrew Karch I. Presidential nominations A. American primary system is unusual for its length and participatory nature Convention delegates pledged to particular candidates are chosen in primary elec...
syallabus2008
Path: UCSD >> CHEM >> 13 Spring, 2008
Description: CHEM 13 Chemistry of Life Syllabus (Spring 2008) Instructor: Prof. Simpson Joseph Office: Room 4102, Urey Hall Phone: 822-2957 E-mail: sjoseph@chem.ucsd.edu Office Hours: Thursday 2:00 to 5:00 PM (First come/First served) Scope of this course: The ob...
bios213lecture 14
Path: N. Illinois >> BIOS >> 231 Spring, 2008
Description: Antimicrobial Drugs Chemotherapy The use of drugs to treat a disease Antimicrobial drugs Interfere with the growth of microbes within a host Antibiotic Substance produced by a microbe that, in small amounts,inhibits another microbe Selective to...
bios 213 lecture 11
Path: N. Illinois >> BIOS >> 231 Spring, 2008
Description: Specific Defenses of the Host: The Immune Response Innate (nonspecific) Defenses against any pathogen Immunity Specific antibody and lymphocyte response to an antigen Antigen (Ag) A substances that causes the body to produce specific antibodies o...
bios 213 lecture 12
Path: N. Illinois >> BIOS >> 231 Spring, 2008
Description: Disorders Associated with the Immune System Infection and immunosuppression are failures of the immune system. Superantigens cause release of cytokines that cause adverse host responses. Allergies and transplant rejection are harmful immune reacti...
chapter2
Path: University of Alberta >> STAT >> 151 Fall, 2007
Description: CHAPTER 2: DISPLAYING AND DESCRIBING DATA 2.1 Variables Consider a class of 30 students: . . Gender (male, female) Hair color (blond, brown, black,.) Height (in feet, inches) Weight (in pounds) Age (in years) Variable any characteristic of a pers...
Test 2 Geography 20502
Path: LSU >> GEOG >> 2050 Spring, 2008
Description: Test 2 Geography 2050 Geog 2-08-08 Solar Radiation is the primary heat source for the Atmosphere, it\'s the primary fuel for it and our weather We must balance between. Insolation is incoming solar radiation Absorption of terrestrial radiation by atmo...
chapter3
Path: University of Alberta >> STAT >> 151 Fall, 2007
Description: CHAPTER 3: EXPLORING RELATIONSHIPS 3.1 Response and Explanatory Variables What is the nature of the relationship? Which variable influences which? X Y (X influences Y) X = explanatory variable, Y = response variable. Age Pet ownership Blood Pressure...
Java_Tutorial
Path: Brandeis >> COSI >> 31a Spring, 2008
Description: Java, Linux, Emacs Tutorial COSI 31A 01/24/2008 Outline Simple java program Loops and statements Classes and objects Strings, Arrays, Vectors Inheritance Interfaces and Abstract classes Exceptions Linux commands Emacs 1 Java First Java ...
04. Equity Kidd version
Path: Old Dominion >> ECI >> 301 Fall, 2007
Description: What would you do? Ashley is a wiz at math. She \"gets\" everything instantly. It usually takes her only five minutes to do her math homework. Nick, on the other hand, struggles with math. He labors over math problems, sometimes for hours. Should...
case study
Path: LSU >> BLAW >> 3201 Spring, 2008
Description: case study chapter 7 State Farm Mutual automobile insurance v Campbell the question is whether, in the circumstances we shall recount, an award of 145 million in punitive damages where full compensatory damages are 1 million, is excessive an in viola...
hw2
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 1.3 18. 20. a. b. 52. Section 2.1 8. ...
chapter4
Path: University of Alberta >> STAT >> 151 Fall, 2007
Description: CHAPTER 4: PRODUCING DATA 4.1 Introduction How to verify the following statements? 1. 2. Pet owners are less likely to die of coronary heart disease. Regular large doses of vitamin C reduce the chance of getting a common cold. Response variable a v...
Geography
Path: LSU >> GEOG >> 2050 Spring, 2008
Description: Geography The science of geography Geography o The science that studies the relationships among natural systems, geographic areas, society, cultural activities, and the interdependence of all these over space Spatial- the nature and character of phy...
05. Accountability Kidd version
Path: Old Dominion >> ECI >> 301 Fall, 2007
Description: What do you think? Mrs. Bright is getting a huge bonus ($5,000) this year. Her fourth graders moved from an initial 3.1 grade eqivalency score in math at the start of the year to 5.0 at the end. Mr. Bummer works in another school across town. H...
series_solution1_examples_p2
Path: New Mexico >> CHNE >> 525 Fall, 2008
Description: 2 Series Solutions to Linear Ordinary Differential Equations II Examples: Solutions about an Ordinary Point yx c0 1 1 3 x 3 2 1 6 5 3 2 x6 c1 x 1 4 x 4 3 1 x7 7 6 4 3 This gives two solutions 1 3 1 1 y1 x 1 x x6 x9 3 2 6 5 3 2 9 8 6 5 3 2 1 ...
hw3
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 2.1 6. 20. 22. Section 2.4 4. 6. ...
chapter5
Path: University of Alberta >> STAT >> 151 Fall, 2007
Description: CHAPTER 5: PROBABILITY 5.1 What is probability? Random experiment results in one of a number of possible outcomes. The outcome that occurs cannot be predicted with certainty. Examples: Tossing a coin, rolling a die. Sample Space (S) - the list of a...
power_series_ode_solution1
Path: New Mexico >> CHNE >> 525 Fall, 2008
Description: Series Solutions to Linear Ordinary Differential Equations I Power Series Solution for the Harmonic Oscillator Equation : ODE: Transform independent variable Transform derivatives d2y dx 2 2 y 0 x dy dy d dx d dx d2y dx 2 d2y dx 2 dy d d dx 2 ...
hw6
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 5.1 10. and are perpendicular when . So, Section 5.2 2. 6. 16. ...
hw8
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 6.2 2. 6. 12. 14. ...
hw1a
Path: Brandeis >> COSI >> 30a Spring, 2008
Description: Michael Sipser Introduction To The Theory Of Computation 2nd Edition Chapter 0 (0.3) a. b. c. d. e. f. (0.5) (0.6) 1 2 3 4 5 (0.8) 6 7 6 7 6 1 2 3 4 5 6 7 8 9 10 10 10 10 10 10 7 8 9 10 6 7 7 8 8 9 9 8 7 6 10 6 6 6 6 6 a. b. c. d. e. 1 4 (0.10...
hw4
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 2.3 4. 6. 16. 20. ...
hw1
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 1.2 2. 4. 6. 8. ...
hw5
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 3.3 2. Redundant vectors: Basis of image: Basis of kernel: 4. Redundant vectors: none Basis of image: Basis of kernel: 6. Redundant vectors: Basis of image: Basis of kernel: 8. R...
hw7
Path: Brandeis >> MATH >> 15a Spring, 2008
Description: Otto Bretscher Linear Algebra with Applications 3rd Edition Section 6.1 10. By Sarrus\'s rule, is invertible. 24. is not invertible when , which is when . 32. By Fact 6.1.6, 44. For an matrix , : For any : For any matrix . , , , so . , so Th...
05series_solution2_frobenius_examples
Path: New Mexico >> CHNE >> 525 Fall, 2008
Description: Series Solutions to Linear Ordinary Differential Equations III Examples: Frobenius\' Solution about Regular Singular Points Text Example 2, pp. 253, 3rd ed Text Example 2, pp. xxx, 2nd ed ODE: 3xy\' \' y\' y 0 1 1 Standard form: y\' \' y\' y 0 3x 3x 1 Px 3x...
frobenius_p3
Path: New Mexico >> CHNE >> 525 Fall, 2008
Description: Series Solutions to Linear Ordinary Differential Equations III 3 Method of Frobenius Note: The indicial equation yields tow values for r. These are labeled r1 and r2 . By convention we take r1 to be the larger root r1 r2 . We get some information abo...
chapter1
Path: University of Alberta >> STAT >> 151 Fall, 2007
Description: CHAPTER 1: INTRODUCTION 1.1 What is Statistics? Questions to explore: 1. What is the population of Canada? What is the population of Alberta? Canada: 31,612,897, Alberta: 3,306, 359 (2006). Census (every member of the population counted). Also data c...
ProblemSet-6-2005
Path: New Mexico >> CHNE >> 524 Fall, 2008
Description: NE-524 Interaction of radiation with Matter Problem Set #6 (Complete by 11/20/2005) 1) Aluminum bronze, an alloy containing 90% Cu and 10% Al by weight has a density of 7.6 g/cc. What are the linear and mass attenuation coefficients? ( Cu = 9.91 and ...
frobenius
Path: New Mexico >> CHNE >> 525 Fall, 2008
Description: Series Solutions to Linear Ordinary Differential Equations III Method of Frobenius ODE for a 2nd order linear differential equation with a regular singular point x x 0 2 y \' \' x x 0 p x y\' q x y 0 This requires p(x) and q(x) are analytic at x x 0 Me...
ProblemSet-4-2005
Path: New Mexico >> CHNE >> 524 Fall, 2008
Description: NE-524 Interaction of radiation with Matter Problem Set #4 (Complete by 11/6/2005) 1) Give 1 gram of At-218 (T1/2 = 1.5 seconds), and assuming that all the alphas (E=6.694 MeV) interact with an Aluminum absorber in 0.1 seconds, how much energy is dep...
ProblemSet-5-2005
Path: New Mexico >> CHNE >> 524 Fall, 2008
Description: NE-524 Interaction of radiation with Matter Problem Set #5 (Complete by 11/13/2005) 1) A beam of 0.52 MeV electrons pass into a large reservoir of He at 3 atm pressure, 20 oC (electrons are totally absorbed). a) What is the range of the electrons? b)...
04terminology_ideal_rocket07
Path: New Mexico >> CHNE >> 515 Fall, 2006
Description: Rocket Terminology Total Impulse: The integral of thrust over time tb IT 0 Fdt where t b is the burn time. I T Ft b Constant thrust Specific Impulse: Total impulse divided by the weight of propellant burned tb Fdt Is g0 0 0 tb m dt Constant thr...
02fluid_eqns07part1
Path: New Mexico >> CHNE >> 515 Fall, 2006
Description: FLUID MODELS: Part 1 Basic Equations Consider a control volume of volume V fixed in space. Fluid is free to cross the surface of the volume. A surface element is denoted as dA and a unit normal vector outward from the surface is ^ denoted by n . u ...
03fluid_eqns07part2
Path: New Mexico >> CHNE >> 515 Fall, 2006
Description: FLUID MODELS: Part 2 Reduced Equations Splitting the energy equation: We can use the momentum equation and the continuity equation to write the energy equation in a shorter form. First take the dot product of u with the Du u p differential form o...
01rocket_eqn_momentum07
Path: New Mexico >> CHNE >> 515 Fall, 2006
Description: Thrust Equation - Momentum Transfer Consider a vehicle made up of mass m m moving at velocity v at time t. At time t t mass m has been ejected from the vehicle with a relative velocity v 2 so that m has a velocity v v 2 . The velocity of mass ...
05quasi1d_thrust_eqn_cv07
Path: New Mexico >> CHNE >> 515 Fall, 2006
Description: Steady Quasi-One Dimensional Flow Consider the control volume shown below. We will consider steady quasi-one-dimensional flow through the volume. Material enters the control volume at the inlet of area A1 with velocity v1 at pressure p1 , mass densit...
ENES102 hw 1
Path: Maryland >> ENES >> 102 Spring, 2008
Description: Problem 1.2: Problem 1.3: Problem 1.14: - Problem 1.16: Problem 1.21(a,f): -- Problem 1.22: Problem 1.27: Problem 1.28(a,d): ...
History_80_fullsyllabus[1]
Path: UCSB >> HIST >> 80 Spring, 2008
Description: History 80: East Asian Civilization Spring Quarter 2008 T-TH 9:30-10:45, Buchanan Hall, 1910 Sections as assigned. Instructor: Anthony Barbieri-Low HSSB 4225 805-893-4065 (no msg.) barbieri-low@history.ucsb.edu Office Hours: Tues. 12:30-2:30 TA\'s: ...
ENES102 hw 2
Path: Maryland >> ENES >> 102 Spring, 2008
Description: Problem 2.16: Problem 2.17: Problem 2.18: - Problem 2.19: Problem 2.21: Problem 2.22: Problem 2.25: Problem 2.26: Problem 2.33: - Problem 2.34: Problem 2.37(a): Problem 2.37(b): Problem 2.38(a): Problem 2.39(b): Problem 2.39(d): Prob...
ENES102 hw 3
Path: Maryland >> ENES >> 102 Spring, 2008
Description: Problem 3.6: Problem 3.7: Problem 3.9: Alternate Method: Problem 3.10: Problem 3.11: Problem 3.16: Problem 3.18: Problem 3.18 - Alternate Method: Problem 3.19: Problem 3.19 - Alternate Method: Problem 3.21: Problem 3.22: Problem 3.23: P...
ENES102 hw 6
Path: Maryland >> ENES >> 102 Spring, 2008
Description: Problem 6.8: Problem 6.10: Problem 6.12: Problem 6.13: Problem 6.13: (con\'t) Problem 6.17: Problem 6.20: Problem 6.23: Problem 6.23: (con\'t) Problem 6.25: Problem 6.26: Problem 6.27: Problem 6.30: Problem 6.31: Problem 6.35: ...
ENES102 hw 4
Path: Maryland >> ENES >> 102 Spring, 2008
Description: Problem 4.1: Problem 4.4: Problem 4.6: Problem 4.7: Problem 4.9: Problem 4.13: Problem 4.18: -- Problem 4.19: Problem 4.22: Problem 4.25: Problem 4.27: Problem 4.27: (con\'t) Problem 4.28: Problem 4.31: Problem 4.32: Problem 4.35: Pro...
CSDL1P1
Path: Syracuse >> CSD >> 315/615 Spring, 2008
Description: Anatomy 615 Index cards: Why did you enroll in this course? What do you expect to gain from this course? What are your concerns about the course? 1 CSD 315 ...
06. Obsolescence Kidd Version
Path: Old Dominion >> ECI >> 301 Fall, 2007
Description: Are dinosaurs cold-blooded or warm? What did you learn in school? From books? Dinosaur ectothermy (cold-bloodedness) remained a prevalent view until Robert T. \"Bob\" Bakker, an early proponent of dinosaur endothermy (warmbloodedness), published...
history80Essay1[1]
Path: UCSB >> HIST >> 80 Spring, 2008
Description: History 80: East Asian Civilization Spring 2008 Essay no. 1: DUE IN LECTURE: TUESDAY, APRIL 22, 2008 Your first essay will be an exercise in creative historical fiction, drawing from the lecture on the Warring States\' philosophers and from the passag...
Principles_of_Statistics_-_Exam_1
Path: CUNY City >> ECONOMICS >> 290 Spring, 2007
Description: Principles of Statistics First Examination Fall 2007 Name: Date: Instructions: Answer ALL the questions in the blue book. There is no need to write an explanation for the true or false questions or for the multiple-choice questions. For the problems...
212624
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
CSDL1P2
Path: Syracuse >> CSD >> 315/615 Spring, 2008
Description: Anatomy Of Respiration Respiration Respiration Inspiration Inhalation Breathing in Brings oxygen to the body\'s cells Expiration Exhalation Breathing out Eliminates waste products 1 Boyle\'s Law Pressure =force distributed over area P=F/A An incre...
Principles_of_Statistics_-_Exam_2
Path: CUNY City >> ECONOMICS >> 290 Spring, 2007
Description: Principles of Statistics Second Examination Fall 2007 Name: Date: Instructions: Answer ALL the questions in the blue book. There is no need to write an explanation for the true or false questions or for the multiple-choice questions. For the problem...
212655
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
PStats_-_H3_-_GH
Path: CUNY City >> ECONOMICS >> 290 Spring, 2007
Description: Homework PRINCIPLES OF STATISTICS 3 Spring 2008, Homework 3 Name 1: Name 2: Name 3: Name 4: Name 5: Instructions This homework consists of 5 questions. You must provide interpretations of your answers, not just calculations. The homework is due ...
212717
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
212852
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
PStats_-_H4_-_GH
Path: CUNY City >> ECONOMICS >> 290 Spring, 2007
Description: Homework PRINCIPLES OF STATISTICS 4 Spring 2008, Homework 4 Name 1: Name 2: Name 3: Name 4: Name 5: Instructions This homework consists of 7 questions. You must provide interpretations of your answers, not just calculations. The homework is due ...
103EX2-practice_ans
Path: CUNY City >> CHEM >> 103 Spring, 2007
Description: THE CITY COLLEGE Department of Chemistry Chemistry 103 ANSWERS TO PRACTICE EXAMINATION II Work problems out to the correct number of significant figures! 1. (8 pts) a) In the SI system , the derived units for pressure in Pascals are kg/m .s2 . b) Ch...
212808
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
213541
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
212744
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
212830
Path: Texas >> BIO >> 325 Spring, 2008
Description: ...
urban anthro study guide 2
Path: Bucknell >> EDUC >> 243 Winter, 2008
Description: Urban Anthro. STUDY GUIDE 2 Urbanism- UL (61-63) Definitions of City How does a person define the concept of a city? Where exactly is the line drawn between city, suburb, and rural areas? Personal reference is a subjective way to define a city. Where...

Course Hero is not sponsored or endorsed by any college or university.