# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

1 Page

Course: CSC 2430, Fall 2009
School: Seattle Pacific
Rating:

#### Document Preview

median double (int A[MAX], int num_elements) { int i; sort(A); //call for the array A to be sorted if (num_elements 2 % == 0) // is even { i = num_elements / 2; return ( (A[i]+A[i-1])/2.0); } else return (A[num_elements/2]); }

Register Now

#### Unformatted Document Excerpt

Coursehero >> Washington >> Seattle Pacific >> CSC 2430

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.
median double (int A[MAX], int num_elements) { int i; sort(A); //call for the array A to be sorted if (num_elements 2 % == 0) // is even { i = num_elements / 2; return ( (A[i]+A[i-1])/2...

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:

Seattle Pacific - CSC - 2430
add to *.h:void ScalarMult (double scalar);add to *.cppvoid ScalarMult (double scalar){ for (int i=0; i &lt; Degree() + 1; i+)P[i] *= scalar; / assuming the polynomial is stored in array P}
Seattle Pacific - CSC - 2430
void ArrayMult (double a[10], double b[10], double c[10]){ int i; for (i=0; i&lt;10; i+)c[i] = a[i] * b[i];}
Seattle Pacific - CSC - 2430
ADT Timeclassprivate data: integer Hour, Minutepublic methods: Timeclass(); Timeclass(integer Hour, integer Minute); SetTime(integer Our, integer Min){ Hour = Our; Minute = Min;} IncreaseTime (integer Min){ Minu
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #1 Due: October 2, 2003 The purpose of this assignment is to jog your memory in working with arrays and functions and to give you practice working with the .NET C+ compiler.If x' denotes the mean (average) of a sequence of numbe
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #2 Due: October 7, 2003 The purpose of this assignment is to give you some practice using strings. Please do both the program and answer the question posed. Write a program that asks the user to input the name of a month and then
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #3 Due: October 14, 2003The purpose of this assignment is to give you some practice using 2-dimensional arrays. The code that you write to solve this problem will be used as part of Assignment #4 so be sure to keep a copy of it!
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #4 Due: October 16, 2003The purpose of this assignment is to give you some practice using 2-dimensional arrays. The code for this problem is an extension of the code you wrote for Assignment #3.To the code that you wrote for A
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #5 ADT Triangles Due: Tuesday, November 4, 2003A &quot;Triangle&quot; ADT(based on Bronson Chapter 7 Review Exercise 7.7)Design and implement an ADT that represents a triangle. The data for the ADT must include the thr
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #6 STL Stack and Queue Due: Thursday, November 13, 2003For this assignment I am going to ask you to become more familiar with the Standard Template Library by altering the code for the STL Stack and the STL Que
Seattle Pacific - CSC - 2430
Name_KEY_ CSC 2430 Fall 2003 Exam #1 October 23, 2003 (3:30 5:00PM) Instructions: Please answer in the space provided. State any assumptions that you make about any problems. Please do not feel that you must fill all available space. The number of p
Georgia Tech - CS - 3240
CS 3240: Languages and ComputationDecidable LanguagesDecidabilityA language is decidable if some Turing machine decides it Not all languages are decidable How to show a language is decidable? Write a decider that decides itAccepts w i
Georgia Tech - CS - 3240
Seattle Pacific - CSC - 2430
double a[4][5], b[4][5], c[4][5];void mat_sub(double a[4][5], b[4][5], c[4][5]){int i, j;for (i=0; i&lt;4; i+) for (j=0; j&lt;5; j+)c[i][j] = a[i][j] b[i][j];}
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #1 Due: January 12, 2007 The purpose of this assignment is to jog your memory in working with arrays and functions and to give you practice working with the .NET C+ compiler.If x' denotes the mean (average) of a sequence of numb
Seattle Pacific - CSC - 2430
CSC 2430 Winter 2004 Assignment #10 Due: Monday March 15, 2004Write a program that creates two files of 2500 random integers generated using the C+ random number generator. One of the files that will be created will be a binary file and the other a
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #2 Due: Monday January 22, 2007The purpose of this assignment is to give you some practice using 2-dimensional arrays.Write a program that contains 3 functions. The main function will declare a 2dimensional array of integers w
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #3 ADT Triangles Due: Wednesday, January 31, 2007A &quot;Triangle&quot; ADT(based on Bronson Chapter 7 Review Exercise 7.7)Design and implement an ADT that represents a triangle. The data for the ADT must include the t
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #4 Linear Singly Linked Lists Due: Wednesday, February 14, 2007Design and implement a linear singly linked list. The data portion of each node will consist of Name (which you may decide to split into FirstName
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #4 Due: January 21, 2004The purpose of this assignment is to give you some practice using 2-dimensional arrays. The code for this problem is an extension of the code you wrote for Assignment #3.To the code that you wrote for A
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #5 STL Stack and Queue Due: Friday, March 2, 2007For this assignment I am going to ask you to become more familiar with the Standard Template Library by altering the code for the STL Stack and the STL Queue pro
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #7 STL Stack and Queue Due: Friday, February 20, 2004For this assignment I am going to ask you to become more familiar with the Standard Template Library by altering the code for the STL Stack and the STL Queue
Seattle Pacific - CSC - 2430
CSC 2430 Winter 2004 Assignment #8 Due: Friday February 27, 2004And the first one now Will later be last For the times they are a-changin' Bob Dylan, &quot;The Times They are A-Changin&quot; 1963In keeping with the spirit expressed in Dylan's song (which i
Seattle Pacific - CSC - 2430
CSC 2430 Winter 2004 Assignment #9 Due: Wednesday March 10, 20041) This problem involves the consequences of the Big Oh notation in terms of computational complexity. Write a program to generate a table of values of N from 10 to 100 by tens and fro
Seattle Pacific - CSC - 2430
Name_Key_ CSC 2430 Winter 2004 Exam #1 January 30, 2004 (11:00AM 12:20PM) Instructions: Please answer in the space provided. State any assumptions that you make about any problems. Please do not feel that you must fill all available space. The numbe
Seattle Pacific - CSC - 2430
Name_KEY_ CSC 2430 Fall 2003 Final Exam December 9, 2003 (3:30 5:30PM) Instructions: Please answer in the space provided. State any assumptions that you make about any problems. Please do not feel that you must fill all available space but you may u
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #1 Due: January 7, 2004 The purpose of this assignment is to jog your memory in working with arrays and functions and to give you practice working with the .NET C+ compiler.If x' denotes the mean (average) of a sequence of numbe
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #2 Due: January 9, 2004 The purpose of this assignment is to give you some practice using strings. Please do both the program and answer the question posed. Write a program that asks the user to input the name of a month and then
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #3 Due: January 16, 2004The purpose of this assignment is to give you some practice using 2-dimensional arrays. The code that you write to solve this problem will be used as part of Assignment #4 so be sure to keep a copy of it!
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #4 Due: January 21, 2004The purpose of this assignment is to give you some practice using 2-dimensional arrays. The code for this problem is an extension of the code you wrote for Assignment #3.To the code that you wrote for A
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #5 ADT Triangles Due: Wednesday, January 28, 2004A &quot;Triangle&quot; ADT(based on Bronson Chapter 7 Review Exercise 7.7)Design and implement an ADT that represents a triangle. The data for the ADT must include the t
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #6 Linear Singly Linked Lists Due: Wednesday, February 11, 2004Design and implement a linear singly linked list. The data portion of each node will consist of Name (which you may decide to split into FirstName
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #1 Due: April 4, 2007 The purpose of this assignment is to jog your memory in working with arrays and functions and to give you practice working with the .NET C+ compiler.If x' denotes the mean (average) of a sequence of numbers
Seattle Pacific - CSC - 2430
CSC 2430 Assignment #2 Due: Wednesday April 11, 2007The purpose of this assignment is to give you some practice using 2-dimensional arrays.Write a program that contains 3 functions. The main function will declare a 2dimensional array of integers
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #3 ADT Triangles Due: Friday, April 20, 2007A &quot;Triangle&quot; ADT(based on Bronson Chapter 7 Review Exercise 7.7)Design and implement an ADT that represents a triangle. The data for the ADT must include the three
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #4 Linear Singly Linked Lists Due: Friday, May 4, 2007Design and implement a linear singly linked list. The data portion of each node will consist of Name (which you may decide to split into FirstName and LastN
Seattle Pacific - CSC - 2430
CSC 2430 Data Structures 1 Homework #5 STL Stack and Queue Due: Wednesday, May 23, 2007For this assignment I am going to ask you to become more familiar with the Standard Template Library by altering the code for the STL Stack and the STL Queue p
Seattle Pacific - CSC - 2430
Brief C+ ReviewComments/ Comment to end-of-line *//* Bracketed Comments still OKDifferent forms of comments `nest': /* a = 15; / Embedded comment . b = 20; */Defining VariablesC: All variable definitions must occur at beginning of a block.
Seattle Pacific - CSC - 2430
CSC 2430 Spring 2007 Take-Home Exam #2 Due: May 25, 2007 11:00 AM via emailInstructions: 1) This exam must be completed entirely on your own. If you have any questions, please do not hesitate to email or call the Professor but you may NOT, under any
Seattle Pacific - CSC - 2430
Name_ CSC 2430 Winter 2004 Final Exam March 15, 2003 (10:30AM 12:30PM) Instructions: Please answer in the space provided. State any assumptions that you make about any problems. Please do not feel that you must fill all available space but you may u
Seattle Pacific - CSC - 2430
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|30 Jul 2002 19:05:08 -0000 vti_extenderversion:SR|5.0.2.2623 vti_backlinkinfo:VX|csc2430/fall02/2430info.html
Seattle Pacific - CSC - 2430
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|25 Aug 2003 18:21:58 -0000 vti_extenderversion:SR|5.0.2.2623 vti_author:SR|ACCOUNTS\pprins vti_modifiedby:SR|ACCOUNTS\pprins vti_timecreated:TR|30 Jul 2002 19:05:08 -0000 vti_title:SR|Computer Science D
Lycoming - M - 350
Interest SolverEquation of Value0 = 0 j= 0
Lycoming - M - 350
Sections 1.1, 1.2, 1.3, 1.4 If one unit (one dollar) is invested at time t = 0, the accumulation function a(t) gives the accumulated value at time t 0. a(0) = 1 a(t) is (usually) increasing. a(t) is often continuous, although in some applications, i
Lycoming - M - 350
Sections 1.5, 1.6 Consider the accumulation function a(t) = (1 + i)t for integer t 0. Interest accruing according to this function is called compound interest. We call i the rate of compound interest. Observe that this constant rate of compound inte
Lycoming - M - 350
Recall: The effective rate of interest i is the amount of money that one unit (one dollar) invested at the beginning of a (the first) period will earn during the period, with interest being paid at the end of the (first) period. That is, i = a(1) a(
San Diego State - PROJECT - 344
Key Words CO2: The gas produced when animals and people breathe out, when carbon is burned in air, or when animal or vegetable substances decay. Deforestation: It is the cutting or burning down of all the trees in an area. Fossil Fuel: A fuel such as
Lycoming - M - 350
Sections 1.9, 1.10, 1.11 Effective and nominal rates of interest and discount each measure interest over some interval of time. The measure of the intensity of interest at a particular moment of time is called the force of interest. For a given amoun
Lycoming - M - 350
Sections 2.1, 2.2, 2.3, 2.4, 2.5 Before the technological advances which made it easy to calculate exponential and logarithmic functions, approximations were available. Today, such approximations are useful primarily for &quot;quick&quot; calculations when a c
San Diego State - PROJECT - 344
Audience Description My target audience for this project is people in general (both male and female) and graphic designers. Since I have been studying graphic design, I will suggest to the graphic designers who use numerous papers in their daily live
San Diego State - PROJECT - 344
Project OverviewEnvironment Destruction from Our Paper Lives As a graphic designer, people need to consider about the issue of environmental destruction by using a lot of papers. In my future, I expect that there are many situations that I will des
Lycoming - M - 350
Sections 3.5, 3.9 A perpetuity is an annuity whose term is infinite (i.e., an annuity whose payments continue forever). The present value of a perpetuity-immediate is 1 v 1 a = v + v2 + v3 + . = v - = - = - | 1v iv i Similarly, the present value of
Lycoming - M - 350
Sections 5.1, 5.2, 5.3 Discounted cash flow analysis is a generalization of annuities with any pattern of payments and/or withdrawals. We shall assume that deposits (contributions) into, and withdrawals (returns) from, an investment occur at equally
Lycoming - M - 350
Sections 5.4, 5.5 We now consider transactions where each payment may be reinvested at a rate which may or may not be equal to the original investment rate. Consider an investment of 1 for n periods at rate i where the interest is reinvested at rate
Lycoming - M - 350
Sections 5.6, 5.7 Consider the following one-year investment. An amount X is invested in a fund at the beginning of the year. In six months, the fund is worth X/2 at which time the investor can decide to add to the fund, to withdraw from the fund, or
Lycoming - M - 350
Sections 6.3, 6.4 When a loan is being repaid with the amortization method, each payment is partially a repayment of principal and partially a payment of interest. Determining the amount of each for a payment can be important (for income tax purposes
Kent State - PERSONAL - 44285