17 Pages

Linked Lists b

Course: CPE 212, Spring 2007
School: University of Alabama...
Rating:
 
 
 
 
 

Word Count: 1471

Document Preview

212 Fundamentals UAH CPE of Software Engineering Agenda Class 11 Linked Lists 2 Linked Lists Application Key Concepts UAH CPE 212 Today Last Time First Fundamental Structure, Linked Lists This Time Bagged Again UAH CPE 212 Linked List For Bag #ifndef LINK1_H #define LINK1_H #include <stdlib.h> // Provides size_t struct Node { typedef double Item; Item data; Node *link; }; //...

Register Now

Unformatted Document Excerpt

Coursehero >> Alabama >> University of Alabama in Huntsville >> CPE 212

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.
212 Fundamentals UAH CPE of Software Engineering Agenda Class 11 Linked Lists 2 Linked Lists Application Key Concepts UAH CPE 212 Today Last Time First Fundamental Structure, Linked Lists This Time Bagged Again UAH CPE 212 Linked List For Bag #ifndef LINK1_H #define LINK1_H #include <stdlib.h> // Provides size_t struct Node { typedef double Item; Item data; Node *link; }; // FUNCTIONS for the linked list toolkit size_t list_length(Node* head_ptr); void list_head_insert(Node*& head_ptr, const Node::Item& entry); void list_insert(Node* previous_ptr, const Node::Item& entry); Node* list_search(Node* head_ptr, const Node::Item& target); Node* list_locate(Node* head_ptr, size_t position); void list_head_remove(Node*& head_ptr); void list_remove(Node* previous_ptr); void list_clear(Node*& head_ptr); void list_copy(Node* source_ptr, Node*& head_ptr, Node*& tail_ptr); void list_piece(Node* start_ptr, Node* end_ptr, Node*& head_ptr, Node*& tail_ptr); #endif UAH CPE 212 Bag 3 #ifndef BAG_H #define BAG_H #include <stdlib.h> // Provides size_t and NULL #include "link1.h" // Provides Node struct class Bag { public: // TYPEDEF typedef Node::Item Item; // CONSTRUCTORS and DESTRUCTOR Bag( ); Bag(const Bag& source); ~Bag( ); // MODIFICATION functions void insert(const Item& entry); void remove(const Item& target); void operator +=(const Bag& addend); void operator =(const Bag& source); // CONSTANT functions size_t size( ) const { return many_nodes; } size_t occurrences(const Item& target) const; Item grab( ) const; private: Node *head_ptr; // Head pointer for the list of items size_t many_nodes; // Number of nodes on the list }; //End of Class Bag // NONMEMBER functions for the Bag Bag operator +(const Bag& b1, const Bag& b2); #endif UAH CPE 212 Bag 3 2 // FILE: bag3.cxx // CLASS implemented: Bag (see bag3.h for documentation) // INVARIANT for the Bag ADT: // 1. The items in the Bag are stored on a linked list; // 2. The head pointer of the list is stored in the member variable head_ptr; // 3. The total number of items in the list is stored in the member variable // many_nodes. #include <assert.h> // Provides assert #include <stdlib.h> // Provides NULL, rand, size_t #include "link1.h" // Provides Node and the ten linked list functions #include "bag3.h" Bag::Bag( ) // Library facilities used: stdlib.h { head_ptr = NULL; many_nodes = 0; } Bag::Bag(const Bag& source) // Library facilities used: link1.h { Node *tail_ptr; // Needed for argument of list_copy list_copy(source.head_ptr, head_ptr, tail_ptr); many_nodes = source.many_nodes; } Bag::~Bag( ) // Library facilities used: link1.h { list_clear(head_ptr); many_nodes = 0; } UAH CPE 212 Bag 3 3 void Bag::operator =(const Bag& source) // Library facilities used: link1.h { Node *tail_ptr; // Needed for argument to list_copy if (source.head_ptr == head_ptr) return; list_clear(head_ptr); many_nodes = 0; list_copy(source.head_ptr, head_ptr, tail_ptr); many_nodes = source.many_nodes; } void Bag::remove(const Item& target) // Library facilities used: link1.h, stdlib.h { Node *target_ptr; target_ptr = list_search(head_ptr, target); if (target == NULL) return; // target isn't in the Bag, so no work to do target_ptr->data = head_ptr->data; list_head_remove(head_ptr); many_nodes--; } UAH CPE 212 Bag 3 4 void Bag::insert(const Item& entry) // Library facilities used: link1.h { list_head_insert(head_ptr, entry); many_nodes++; } void Bag::operator +=(const Bag& addend) // Library facilities used: stdlib.h { Node *copy_head_ptr; Node *copy_tail_ptr; if (addend.many_nodes > 0) { list_copy(addend.head_ptr, copy_head_ptr, copy_tail_ptr); copy_tail_ptr->link = head_ptr; head_ptr = copy_head_ptr; many_nodes += addend.many_nodes; } } Bag::Item Bag::grab( ) const // Library facilities used: assert.h, stdlib.h, link1.h { size_t i; Node *cursor; assert(size( ) > 0); i = (rand( ) % size( )) + 1; cursor = list_locate(head_ptr, i); return cursor->data; } UAH CPE 212 Bag 3 5 size_t Bag::occurrences(const Item& target) const // Library facilities used: stdlib.h, link1.h { size_t answer; Node *cursor; answer = 0; cursor = list_search(head_ptr, target); while (cursor != NULL) { // Each time that cursor is not NULL, we have another occurrence of // target, so we add one to answer, and move cursor to the next // occurrence of the target. answer++; cursor = cursor->link; cursor = list_search(cursor, target); } return answer; } Bag operator +(const Bag& b1, const Bag& b2) { Bag answer; answer += b1; answer += b2; return answer; } UAH CPE 212 Bag 3 6 #ifndef LINK1_H #define LINK1_H #include <stdlib.h> // Provides size_t struct Node { typedef double Item; Item data; Node *link; // }; FUNCTIONS for the linked list toolkit size_t list_length(Node* head_ptr); void list_head_insert(Node*& head_ptr, const Node::Item& entry); void list_insert(Node* previous_ptr, const Node::Item& entry); Node* list_search(Node* head_ptr, const Node::Item& target); Node* list_locate(Node* head_ptr, size_t position); void list_head_remove(Node*& head_ptr); void list_remove(Node* previous_ptr); void list_clear(Node*& head_ptr); void list_copy(Node* source_ptr, Node*& head_ptr, Node*& tail_ptr); void list_piece(Node* start_ptr, Node* end_ptr, Node*& head_ptr, Node*& tail_ptr); #endif UAH CPE 212 #include <assert.h> #include <stdlib.h> #include "link1.h" Bag 3 7 // Provides assert // Provides NULL and size_t size_t list_length(Node* head_ptr) // Library facilities used: stdlib.h { Node *cursor; size_t answer; answer = 0; for (cursor = head_ptr; cursor != NULL; cursor = cursor->link) answer++; return answer; } void list_head_insert(Node*& head_ptr, const Node::Item& entry) { Node *insert_ptr; insert_ptr = new Node; insert_ptr->data = entry; insert_ptr->link = head_ptr; head_ptr = insert_ptr; } UAH CPE 212 Bag 3 8 void list_insert(Node* previous_ptr, const Node::Item& entry) { Node *insert_ptr; insert_ptr = new Node; insert_ptr->data = entry; insert_ptr->link = previous_ptr->link; previous_ptr->link = insert_ptr; } Node* list_search(Node* head_ptr, const Node::Item& target) { Node *cursor; for (cursor = head_ptr; cursor != NULL; cursor = cursor->link) if (target == cursor->data) return cursor; return NULL; } Node* list_locate(Node* head_ptr, size_t position) { Node *cursor; size_t i; assert (0 < position); cursor = head_ptr; for (i = 1; (i < position) && (cursor != NULL); i++) cursor = cursor->link; return cursor; } UAH CPE 212 Bag 3 9 void list_head_remove(Node*& head_ptr) { Node *remove_ptr; remove_ptr = head_ptr; head_ptr = head_ptr->link; delete remove_ptr; } void list_remove(Node* previous_ptr) { Node *remove_ptr; remove_ptr = previous_ptr->link; previous_ptr->link = remove_ptr->link; delete remove_ptr; } void list_clear(Node*& head_ptr) // Library facilities used: stdlib.h { while (head_ptr != NULL) list_head_remove(head_ptr); } UAH CPE 212 Bag 3 10 void list_copy(Node* source_ptr, Node*& head_ptr, Node*& tail_ptr) // Library facilities used: stdlib.h { head_ptr = NULL; tail_ptr = NULL; // Handle the case of the empty list if (source_ptr == NULL) return; // Make the head node for the newly created list, and put data in it list_head_insert(head_ptr, source_ptr->data); tail_ptr = head_ptr; // Copy the rest of the nodes one at a time, adding at the tail of new list for (source_ptr = source_ptr->link; source_ptr != NULL; source_ptr = source_ptr->link) { list_insert(tail_ptr, source_ptr->data); tail_ptr = tail_ptr->link; } } UAH CPE 212 Bag 3 11 void list_piece(Node* start_ptr, Node* end_ptr, Node*& head_ptr, Node*& tail_ptr) // Library facilities used: stdlib.h { head_ptr = NULL; tail_ptr = NULL; // Handle the case of the empty list if (start_ptr == NULL) return; // Make the head node for the newly created list, and put data in it list_head_insert(head_ptr, start_ptr->data); tail_ptr = head_ptr; if (start_ptr == end_ptr) return; // Copy the rest of the nodes one at a time, adding at the tail of new list for (start_ptr = start_ptr->link; start_ptr != NULL; start_ptr = start_ptr->link) { list_insert(tail_ptr, start_ptr->data); tail_ptr = tail_ptr->link; if (start_ptr == end_ptr) return; } } UAH CPE 212 int main( ) { Bag ages; Using The Bag get_ages(ages); check_ages(ages); cout << "May your family live long and prosper." << endl; return EXIT_SUCCESS; } void get_ages(Bag& ages) { int user_input; // An age from the user's family cout << "Type the ages in your family. "; cout << "Type a negative number when you are done:" << endl; cin >> user_input; while (user_input >= 0) { ages.insert(user_input); cin >> user_input; } } UAH CPE 212 Using The Bag 2 void check_ages(Bag& ages) { int user_input; // An age from the user's family cout << "Type those ages again. Press return after each age:" << endl; while (ages.size( ) > 0) { cin >> user_input; if (ages.occurrences(user_input) == 0) cout << "No, that age does not occur!" << endl; else { cout << "Yes, I've got that age and will remove it." << endl; ages.remove(user_input); } } } UAH CPE 212 Key Concepts Implemented: Default Constructor Copy Constructor Assignment Operator Destructor Beware dereferencing the NULL pointer Verify NON-NULL pointer after a new operation
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:

University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 10 List ADT The List Key ConceptsUAHCPE 212Last TimeTemplates Function Templates Class Templates Capture Behavior Syntax IssuesUAHCPE 212This Time Example: The
University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 5 Classes and Operator Overloads More on Classes Operator Overloading Key ConceptsUAHCPE 212Last Time Concept of a class Common attributesBasic class definitions and util
University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 5 Pointers and Dynamic MemoryPointers and Dynamic memory Key ConceptsUAHCPE 212Help ResourcesFirst Read Text Ask questions in class emailNext Schedule extra instruct
University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 14 Queues 2 Priority Queues Key ConceptsUAHCPE 212TodayLast Time Queue Concept Queue Implementations Queue ApplicationThis Time Priority QueueUAHCPE 212Priority
University of Alabama in Huntsville - CPE - 212
UAHCPE 212 PurposeProject 1 Understand constructing your own class.Background With this project you must design your own class and manipulate the class for the calculations and selection of the winner.Tasks Perform programming assignme
University of Alabama in Huntsville - CPE - 212
UAHCPE 212 Project 2Purpose Understand ADTs. Measuring performance.Background The class lectures cover a number of ADTs and implementations. This projects gives the student the opportunity to create their own ADT class.Tasks Develop a q
University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 13 Queues Queues Key ConceptsUAHCPE 212TodayLast Time Stacks LIFO, push, popThis Time Queue Concept Queue Implementations Queue ApplicationUAHCPE 212Queues Abst
University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 15 Recursion Recursion Key ConceptsUAHCPE 212Today Last Time Priority QueuesThis Time RecursionUAHCPE 212Recursion Procedure calls itself Recursion: Divide and C
University of Alabama in Huntsville - CPE - 212
The University of Alabama in Huntsville ECE Department Spring 2008 CPE 212 Fundamentals of Software Engineering Revision A INSTRUCTOR INFORMATION: Time: M/W 3:55 5:15 p.m. Location: EB 207 Name: Dr. David Skipper Email: skipper@ece.uah.edu Office: TH
University of Alabama in Huntsville - CPE - 212
UAHCPE 212Fundamentals of Software Engineering Agenda Class 12 Stacks Stacks Key ConceptsUAHCPE 212Today Last Time Linked ListsThis Time StacksUAHCPE 212 Stacks Abstract ConceptCan have heterogeneous or homogeneous stack
University of Alabama in Huntsville - CPE - 212
UAHCPE 212#include &lt;climits&gt; #include &lt;ctime&gt; #include &lt;iostream&gt; using namespace std;Timerint main() { const int Extra=1000; /Machine is too fast, add extra work int MyInts[USHRT_MAX]; /Static array of ints bool DisplayIt=false; /Show filled a
UC Irvine - PSB - P9
Biology and Behavior Ch 2: How does the brain work?Independent reading The neuron and the nuerotransmitters 39-44 3rd edition 37-41 2nd editionThe Human Nervous System What parts of the brain are important to psychologists? Topics: Spinal
UCSB - PSYCH - 1
1. Chapter 13 Social Psychology a. Prisoner's dilemma i. In your own words choose between a cooperative act and a competitive act that benefits yourself but not others ii. Example narc and go free, friend gets 20 years, both narc and get 5 years e
UC Irvine - PSB - P9
Chapter 3Sensation &amp; PerceptionIndependent ReadingUnusual Perceptual Experiences Page 105 in 3rd editionSensationSenses pick up sensory stimuli (visual, auditorial, and other info and transmit it to the brain. Topics to be covered: Touc
UC Irvine - PSB - P9
Chapter 4Consciousness: Part IIndependent ReadingWhat's up with the different states of consciousness? What is Consciousness? Page 116-117 (3rd edition) Note: this section does NOT EXIST in the 2 nd edition!Borrow from a friend Read in ou
UCSB - PSYCH - 1
Psychology 1 Introduction to PsychologyWinter Quarter, 2008Reading Guide for Chapters 13.1-13.3, 13.5, 9: pp. 476-508, 518-527, 332-359 Week 9 * This sheet is pretty comprehensive, but you'll notice some terms missing as you read. I chose not to
UCSB - PSYCH - 1
Psychology 1 Introduction to PsychologyReading Guide for Chapters 8.1-8.2 and 5 pp. 284 315, 163 199 Week 7 * This sheet is pretty comprehensive, but you'll notice some terms missing as you read. I chose not to emphasize these topics however you
UCSB - PSYCH - 1
Psychology 1 Introduction to PsychologyWinter Quarter, 2008Reading Guide for Chapters 14 pp. 528564 Week 10 This sheet is pretty comprehensive, but you'll notice some terms missing as you read. I chose not to emphasize these topics however you a
UCSB - PSYCH - 1
Psychology 1 Introduction to PsychologyWinter Quarter, 2008Reading Guide for Chapters 5.1, 12.1-2, 14.3 pp. 150-162, 414-425, 434-464M, 509-517 1.Week 82.Chapter 11.3 Sexual Motivation a. Kinsey Survey i. Main findings in your own words
Clemson - ACCT - 312
Intangible Assets Result from legal or contractual rights, do not have physical substanceAccounting for IntangiblesRecorded at cost Those that are amortized are reported on a company's balance sheet at their book value (cost accumulated amortizat
Clemson - FIN - 308
Notes for Finance 308 Test 1Chapter 1: introductionWhy Study Financial markets? They help effectively allocate capital to the best possible risk versus return (allocational efficiency) They facilitate the transfer of funds from SSUs to DSUs keepin
Clemson - ACCT - 312
Accounting Cycle: 1. Something happens (transaction) 2. Analyze transaction a. do we have something we can record, b. what are the accts involved, c. do we have something really going on here 3. Record Journal Entry 4. Post to general ledger 5. prepa
Clemson - ACCT - 312
Accounting Chapter 16Capital Stock and Stockholder's Rights Right to share in profits when dividend is declared Right to elect directors and to establish corporate policies Right (Preemptive right) to maintain proportionate interest in corporation b
Clemson - FIN - 307
Missed notes from 1/14 Real Estate Finance 1/16/08 The value associated with real estate starts with: User markets Capital markets Governments A lot of what is going on today has to do with the government not particularly paying attention/monitoring
Clemson - FIN - 307
Missed notes from 1/14 Real Estate Finance 1/16/08 The value associated with real estate starts with: User markets Capital markets Governments A lot of what is going on today has to do with the government not particularly paying attention/monitoring
Clemson - ACCT - 312
Acct Notes November 30, 2007 -market value of stocks is higher than value recorded on company's books -because of value of management, initially undervalued, significant investments in real estate, -If you buy 30% of a company's stock, you pay more t
Clemson - FIN - 312
Tim CarrollCost Equipment Land Sales Operating Expenses Salvage Value Tax Rate Req Rate Year Sales Costs Depreciation Taxable Taxes Net Income + Deprec Cash Flow Equipment Land Total Value of Land When Bought $150,000 Crates$ 20,000.00 $ 150,000.
Clemson - FIN - 308
Bonner's Husquvarna Specialty LawnCare Products has hired you as their accountant. While reviewing the adjusting entries they made for 12/31/2006 (the 2006 books have been closed), you found the following entry: 12/31/2006 allowance to reduce invento
Clemson - ACCT - 312
Accounting Cycle: 1. Something happens (transaction) 2. Analyze transaction a. do we have something we can record, b. what are the accts involved, c. do we have something really going on here 3. Record Journal Entry 4. Post to general ledger 5. prepa
Iowa State - TSM - 363
Iowa State - TSM - 363
Iowa State - TSM - 363
Agricultural and Biosystems Engineering Dept. Iowa State University11/16/06 SKWTSM 363 - Exam 31 - 8 ! x 11 formula sheet (both sides) h Multiple Choice: 2 points each (40%) 1) To use a thermostat to control a heater, connect to common and close
Iowa State - TSM - 363
Agricultural and Biosystems Engineering Dept. Iowa State UniversityTSM 363 - Exam 2Part 1 - Formula sheet (8 %&quot; x 1I&quot;, one-side, anything) Multiple Choice and Short Answer:.2 points each (40%) 1) Materials which are good insulators a) have many fr
UCSD - MMW - 33
5-10-06 732/Poiters(Tours) - thought that France would be Muslim if Muslims won the war - Big loss for the Muslims 100 years after the Prophets death - Spain was Muslim Muslim empire grew faster than Rome and fell apart faster than Rome - Empire bro
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #1Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex.1 (2 points), Ex.5 (2 points), Ex. 8 (2 points). 4 points were added for the presence of the remaining 5 exercises. Ex.9 was n
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #2Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex.1 (2 points), Ex.4 (2 points), Ex. 6 (2 points), and Ex. 7 (2 points). 0.5 points were added for the presence of each of the r
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #4Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex.2 (2 points), Ex.3 (2 points), Ex. 5 (2 points), and Ex. 8 (2 points). 0.5 points were added for the presence of each of the r
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #3Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex.1 (2.5 points), Ex.3 (2.5 points), Ex. 6 (2.5 points). 0.5 points were added for the presence of each of the remaining 5 exerc
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #5Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex.3 (3 points), Ex.6 (3 points), Ex. 4 (2.5 points), and 0.5 points were added for the presence of each of the remaining 3 exerc
Rochester - ECO - 230
ECO 230 Economic Statistics Homework #6 Due date: Tuesday, March 6thMarianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex.4 (2 points), Ex.6 (2 points), Ex. 8 (3 points), and 0.7 points were subtracted for the absence of each of the
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #7Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Total points: 10. Graded exercises: Exercise 2 (1.5 points),3 (1.5 points), 7(2 points), and 8(3 points). Half point was added fo
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #8 Total points: 10. Exercise 1. Newbold, Carlson and Thorne, Problem 6.75, p.227.Marianna Kudlyak Spring 2007Exercise 2. Newbold, Carlson and Thorne, Problem 6.91, p.228.Exercise 3. The amount
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #9Marianna Kudlyak Spring 2007Graded exercises: Exercise 1 (2 points),2 (2 points), 4 (2 points), and 5 (2 points). One point for the presence of each of the remaining 2 exercises. Exercise 1. Ne
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #10Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Exercise 1 (2 points),3 (2 points), 4 (2 points), and 7 (2 points). Half point for the presence of each of the remaining 3 exerc
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #11Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex. 1 (2pts), Ex5(3pts), and Ex6 (3pts). 0.5pts for the presence of each of the remaining 4 exercises (Ex.8 was not graded). Exe
Rochester - ECO - 230
ECO 230 Economic Statistics Answer Key to Homework #12Marianna Kudlyak Spring 2007Total points: 10. Graded exercises: Ex. 1 (2pts), Ex. 6(2pts), Ex. 7 (2pts) and Ex. 8 (2pts). 0.7pts for the presence of each of the remaining 3 exercises. Exercise
Rochester - ECO - 230
ECO 230 Economic StatisticsMarianna Kudlyak Spring 2007Answer Key to Homework #13 Total points: 10. Graded exercises: Ex. 1 (3pts), Ex. 6(2.5pts), Ex. 7 (2.5pts); 0.5pts for the presence of each of the remaining 4 exercises. Exercise 1. Newbold,
Rochester - MTH - 201
HOMEWORK #1 MTH 201, FALL 2007 DUE: WEDNESDAY, SEPTEMBER 19, IN-CLASS AT THE BEGINNING OF CLASS The following problems are numbered the same in both the 6th and 7th edition of Ross's textbook. Chapter 1, Problems: 13, 22; Chapter 1, Theoretical Exe
Rochester - ECO - 230
ECO 230 Economic StatisticsMarianna Kudlyak Spring 2007MIDTERM EXAM I You have 1 hour and 15 minutes to complete this exam.Write your answers as clearly and concisely as possible. You may use the calculator the instructor has provided for you t
Rochester - ECO - 230
Rochester - ECO - 208w
University of Illinois MBA ProgramJohn P. ConleyMBA 405B Problem set 1Due: Monday, April 08, 2002, 5:00pm 1. There are three passengers on a ship sailing across the Atlantic who are carrying large sums of money. Suppose passenger A has $1000, pa
Rochester - ECO - 108
Economics 108 Landsburg Homework #5 week of 10/16/06 RECOMMENDED READING: Chapter 10. 1. The Nabisco cookie factory emits wonderful aromas that enhance the lives of everyone walking past. Use a graph to illustrate the private marginal value of Nabisc
Rochester - ECO - 108
Economics 108 Landsburg Homework #6 week of 10/23/06 RECOMMENDED READING: p. 292-295. 1. The R.H. Snippet company creates pollution every time it produces a snippet. The demand curve for the company's products is flat. The social and private marginal
Rochester - ECO - 108
Economics 108 Landsburg Homework #8 week of 11/6/06 RECOMMENDED READING: Chapter 15. 1. Waldo's Lunch Counter is the only restaurant in Whoville. Which of the following circumstances might affect the price of a hamburger at Waldo's? a) The price of m
Rochester - ECO - 108
Economics 108 Landsburg Homework #7 week of 10/30/06 1. Gus the cab driver rents a cab and pays for gas. Suppose the rental price of cabs falls. What happens to the price and quantity of cab rides that Gus offers? a) Answer in the short run. b) Answe
Rochester - ECO - 108
Economics 108 Landsburg Homework #9 week of 11/27/06 RECOMMENDED READING: www.landsburg.com/108reading1.pdf 1. In Lower Slobbovia, there are three people, two firms, and no government (hence no taxes!). Apples, pears and oranges all sell for $1 apiec
Rochester - ECO - 207h
ECO 207h Honors Intermediate Micro Homework 1 Due: Friday 2 February 20072.1 Suppose U (x, y) = 4x2 + 3y 2 . 1. Calculate U/x, U/y. 2. Evaluate these partial derivatives at x = 1, y = 2. 3. Write the total differential for U . 4. Calculate dy/dx for
Rochester - ECO - 230
Economic Statistics ECO230 Fall 2006Lecture 1(a)1. IntroductionStatistics for Business and Economics, 6e 2007 Pearson Education, Inc.Outline 1. What is statistics?2. Decision making in uncertain environment 3. Data (sample and population
Rochester - ECO - 230
Economic Statistics ECO230 Fall 2006Lecture 1(b)2. Describing Data: GraphicalStatistics for Business and Economics, 6e 2007 Pearson Education, Inc.Chap 2-1Types of DataDataCategoricalExamples: NumericalMarital Status Are you regi
Rochester - MTH - 171Q
MATH 171Q HONORS CALCULUS Steve Gonek Fall 2006 Assignment 3Due Monday, October 2I. Chapter 3 II. Chapter 4 3ii, 9, 16. 1iv, 1vi, 10i, 10ii, 17i, 17ii, 17v.III. I would be remiss if I did not instill in you a proper regard for the Cauchy-Schwarz i
Rochester - MTH - 171Q
MATH 171Q HONORS CALCULUS Steve Gonek Fall 2006 Assignment 2Due Monday, September 25I. Chapter 1 II. Chapter 2 11ii, 11iv, 12iv, 12v, 12vi, 18 a, b, e 1, 3a, b, d, e(i), e(ii), 5, 12, 19III. Prove or disprove: If n is a natural number, then N = 41