Problem Set 2 Due: 6pm Friday, February 23
|
|
|
- Gerald Boyd
- 10 years ago
- Views:
Transcription
1 CS230 Data Structures Handout # 13 Prof. Lyn Turbak February 14, 2007 Wellesley College Revised February 23, 2007 Revisions: Notes: Problem Set 2 Due: 6pm Friday, February 23 In the URL used in the GOOG stock quote example, the portion of the URL that was table.cvs should be table.csv. As announced in lecture, the due date for this problem set has been extended until 11:59pm Mon. Feb. 26. This is the final version of PS2 that includes Problems 2 and 3. Problem 1 has not changed since the first draft, but the CS230Date contract in Appendix A now has two new class methods: min and max. This assignment is due on Friday, Feb. 23 rather than Tuesday, Feb. 20 (the date originally listed in the syllabus). After PS2, there will be only one other problem set (not two) before take-home Exam 1. Overview: The purpose of this assignment is to give you practice with Input/Output (files, URLs, and keyboard), vectors, objects, and binary search. As in PS1, it is recommended that you (1) start early and (2) work with a partner (a different one than you worked with on PS1). Submission: Each team should turn in a single hardcopy submission packet for all problems by slipping it under Lyn s office door by 1:30pm on the due date. The packet should include: 1. a team header sheet (see the end of this assignment for the header sheet) indicating the time that you (and your partner, if you are working with one) spent on the parts of the assignment. 2. your final version of StockQuote.java from Problem your final version of StockInfo.java from Problem your final version of Portfolio.java from Problem transcripts demonstrating that your StockQuote, StockInfo and Portfolio classes work as expected. Each team should also submit a single softcopy (consisting of your entire final ps2 directory) to the drop directory ~cs230/drop/ps2/username, where username is the username of one of the team members (indicate which drop folder you used on your hardcopy header sheet). To do this, execute the following Linux commands in the team member s account where the code is stored: cd /students/username/cs230 cp -R ps2 ~cs230/drop/ps2/username/ Background: All parts of this assignment deal with a stock portfolio management system based on real historical stock data that can be obtained from the Internet. Based on the Java programming skills you displayed in Problem Set 1, You have been hired as an intern by Gopher Brokerage, Inc., to implement a simple stock portfolio management system for their customers. A stock portfolio specifies a collection of stocks along with the number of shares of each stock. The portfolio management system allows the customer to select a portfolio and find out information about the value of stocks in specified time periods. In order to implement this system, you will need to access historical stock data from the Internet. Yahoo Finance is one of several web sites from which such data can be downloaded. The following URL is a template that can be used to download stock price information for a particular stock during a given range of time: 1
2 &b=<start-day>&c=<start-year>&d=<stop-month>&e=<stop-day>&f=<stop-year> &g=<frequency-code>&ignore=.csv In this template, <stock-symbol> is the stock exchange symbol for the stock, which is typically between one and four letters long. For example, the symbol for Google is GOOG, the symbol for Walmart is WMT, the symbol for Proctor & Gamble is PG, and the symbol for AT&T is T. You can look up stock symbols at <start-month> is the month of the desired starting date, which is denoted by an integer between 0 (January) and 11 (December). <start-day> is the day of the desired starting date, which is denoted by an integer between 1 and 31. <start-year> is the fully-specified 4-digit year of the desired starting date (e.g., 1986, 2007). <stop-month> is the month of the desired stopping date. <start-day> is the day of the desired stopping date. <stop-year> is the year of the desired stopping date. <frequency-code> is a one-character code indicating whether daily (d), weekly (w), or monthly (m) information is desired. For example, the URL used in the following example specifies daily stock information for Google from Dec. 22, 2006 to Jan. 16, 2007: [fturbak@irwin utils] java FileOps urltostring " table.csv?s=goog&a=11&b=22&c=2006&d=0&e=16&f=2007&g=d&ignore=.csv" Date,Open,High,Low,Close,Volume,Adj Close ,507.55,513.00,503.30,504.28, , ,501.99,505.00,500.00,505.00, , ,497.20,501.75,496.18,499.72, , ,484.43,493.55,482.04,489.46, , ,485.45,488.25,481.20,485.50, , ,487.69,489.87,482.20,483.58, , ,482.50,487.50,478.11,487.19, , ,469.00,483.95,468.35,483.26, , ,466.00,476.66,461.11,467.59, , ,462.10,464.47,459.86,460.48, , ,467.12,468.58,462.25,462.56, , ,460.00,468.08,459.10,468.03, , ,456.52,459.47,454.59,457.53, , ,457.50,458.64,452.73,455.58, , The information is provided in a tabular format known as comma-separated-value (CSV) format, in which each row is a line of text having columns fields that are separated by commas. The first line of the table lists titles for the columns and the remaining lines are the content rows of the table. In this assignment, you will focus on only the first and last columns. The first column specifies a date in the format YYYY-MM-DD 1, while the last column gives the so-called adjusted closing price 2 of the stock for that date. For example, on Jan. 3, 2007, the adjusted closing price of Google stock was $ Note that the information provided by Yahoo is in reverse chronological order the more recent dates are listed earlier in the table. Also note that information is provided only for dates on 1 In this format, months are 1-indexed even though they are 0-indexed in the URL. Go figure. 2 The adjusted closing price may differ from the closing price because it takes into account details like dividends and stock splits. 2
3 which the stock exchange was open. In the above example, Dec. 22 is a Friday, and the exchange was closed for the Dec 23/24 weekend, Christmas (Mon. Dec. 25), the Dec 30/31 weekend, New Year s (Mon. Jan. 1 and Tue. Jan. 2), the Jan 6/7 weekend, the Jan 13/14 weekend, and Martin Luther King day (Mon. Jan. 15). It appears that the database of stock prices supplied by Yahoo only goes back to Yahoo ignores any dates specified before this time and any dates specified after the current one. So you can get all daily stock information for a given stock by specifying any year before 1962 as the <start-year> (e.g., 1900), any year after the current year as the <stop-year> (e.g., 2008), and d as the <frequency-code>. For example: [fturbak@irwin utils] java FileOps urltostring " table.csv?s=goog&a=0&b=1&c=1900&d=0&e=1&f=2008&g=d&ignore=.csv" Date,Open,High,Low,Close,Volume,Adj Close ,459.15,462.78,457.26,459.10, , ,460.68,462.39,455.02,458.29, , many lines omitted ,101.01,109.08,100.50,108.31, , ,100.00,104.06,95.96,100.34, , Google stock was introduced on Aug. 19, 2004, so the records don t go back any farther than this. The problems of this assignment lead you through the construction of a simple stock portfolio manager that uses data from the Yahoo finance site. You should begin the problem by performing a CVS update: cd ~/cs230 cvs update -d This will install the ~/cs230/ps2 directory in your home directory. The ps2 directory contains several files for this assignment. You will also be creating some new files from scratch in this directory. Problem 1 [20]: The StockQuote Class A stock quote is the price of a stock at a specified point in time. In this assignment, a stock quote will always refer to the adjusted closing price of a stock on a particular day. In this problem, your task is to create a StockQuote class in the file ~/cs230/ps2/stockquote.java that implements the contract specified in Fig. 1. Each instance of the StockQuote class simply pairs a date with a stock price on that date. (The name of the stock is not mentioned in the StockQuote instance.) Dates are represented as instances of the CS230Date class, which has already been implemented for you. See Appendix A for the CS230Date class contract. Below are some sample statements and expressions involving StockQuote instances. The notation E V means that expression E evaluates to value V. StockQuote q = new StockQuote(CS230Date.fromString(" ", )); q.date().tostring() " " q.price() q.tostring() " :230.06" StockQuote q2 = new StockQuote(CS230Date.fromString(" ", )); StockQuote q3 = new StockQuote(CS230Date.fromString(" ", )); StockQuote q4 = new StockQuote(CS230Date.fromString(" ", )); StockQuote q5 = new StockQuote(CS230Date.fromString(" ", )); StockQuote q6 = new StockQuote(CS230Date.fromString(" ", )); q.equals(q2) false ; Similar if q2 is replaced by q3, q5, or q6 q.equals(q4) true q.compareto(q2) a positive integer ; similar if q2 is replaced by q3 q.compareto(q4) 0 q.compareto(q5) a negative integer ; similar if q5 is replaced by q6 ; From low to high, the above quotes are ordered: q2, q3, q=q4, q5, q6 In addition to implementing all methods in Fig. 1, you should write a main() method that tests 3
4 An instance of the StockQuote class represents a pair of a date (an instance of CS230Date) and a stock price (a double). Public Constructor Method: public StockQuote (CS230Date date, double price); Creates a quote with date date and price price. Public Instance Methods: public double price (); Returns the price of this quote. public CS230Date date (); Returns the date of this quote. public String tostring (); Returns a string representation of this quote having the form datestring:pricestring, where datestring is a string representation of this quote s date and pricestring is a representation of this quote s price. public boolean equals (Object x); Returns true if x is a StockQuote with the same date and price as this quote, and false otherwise. public int compareto (StockQuote x); Returns a negative number if this quote comes before x in the quote ordering (see the definition of quote ordering below), 0 if this quote is equal to x in the quote ordering, and a positive number if this quote comes after x in the quote ordering. The ordering on quotes is a lexicographic ordering (i.e., dictionary ordering) in which quotes are first compared by date, and then by price. That is, quotes are first compare according to their dates; a quote with an earlier date precedes one with a later date, regardless of their prices. If the two dates are the same, then the quote with the lower price precedes the quote with the higher price. Public Class Methods: public static StockQuote fromline (String line); Returns a stock quote from a string that is one row of a CSV-formatted stock information table supplied by Yahoo. Here is an example of such a string: " ,507.55,513.00,503.30,504.28, ,504.28" For this string, fromline should return an instance of StockQuote whose date is and whose price is Figure 1: The contract for the StockQuote class. your methods. For this part, your hardcopy submission should consist of (1) your final version of StockQuote.java and (2) a transcript of tests carried out using your main() method. 4
5 Problem 2 [40]: The StockInfo Class In this problem, your task is to create a StockInfo class in the file ~/cs230/ps2/stockinfo.java that implements the contract specified in Figs. 2 and 3. Conceptually, each instance of the StockInfo class has four pieces of information: 1. The name of the stock (e.g. General Motors or Google ); 2. The stock-ticker symbol of the stock (e.g. GM or GOOG). 3. A number of shares of that stock. 4. The historical daily adjusted-closing-price quotes for the stock, as determined from the Yahoo finance site (as explained earlier in the Background section). For example, this site has 628 quotes for Google from to Notes: Include the following import statements at the top of StockInfo.java: import java.io.*; // Allows use of BufferedReader, InputStreamReader import java.util.*; // Allows use of Vector import java.net.*; // Allows use of URL You should use a Vector of StockQuote objects to store the quote information in a StockInfo instance. Because Yahoo supplies these in reverse chronological order, it is convenient to store them sorted reverse chronological order as well. Don t forget that the first line of a Yahoo stock table is a list of titles of the form Date,Open,High,Low,Close,Volume,Adj Close. You should read the historical stock data from the Yahoo finance site using the websitereading tools described in the lecture #4 notes. You should not use FileOps.urlToString as a black box, but should use the parts of FileOps.urlToString to read one line at a time from a web site. Your getquote() method should use binary search to find the appropriate quote for the given date. It is helpful to express the binary search for date as an iteration in two state variables: lo (the low index) and hi (the high index) that satisfies the following invariants: All quotes at indices less than lo have dates greater than date. All quotes at indices greater than hi have dates less than date. (Because the quotes are stored in reverse chronological order, dates get smaller as the index gets larger.) Since implementing binary search can be challenging, you may want to first implement getquote() using linear search and then implement binary search when everything else is working. Use FileOps.keyboardToLine to read a line of input from the console. Feel free to define any private helper methods that you find useful. A test version of StockInfo.class is provided in the test subdirectory of the ps2 directory. You can use it to test the behavior of the StockInfo program. For this part, your hardcopy submission should consist of (1) your final version of StockInfo.java and (2) a transcript of tests carried out using your main method. 5
6 An instance of the StockInfo class represents a certain number of shares of a stock along with the historical daily adjusted-closing-price quotes for the stock. Public Constructor Method: public StockInfo (String name, String symbol, int shares); Creates a StockInfo instance with the specified name, stock-ticker symbol, and number of shares. The instance returned by this constructor also has the historical daily adjusted-closing-price quotes for the stock as determined from the Yahoo finance site. Throws a RuntimeException if no stock with the symbol symbol is in the Yahoo database. Public Instance Methods: public String name (); Returns the name of this stock. public String symbol (); Returns the stock-ticker symbol for this stock. public int shares (); Returns the number of shares for this stock. public CS230Date firstdate (); Returns the earliest date for which quote information is known about this stock. If no quote information is known, returns CS230Date.MAX DATE. public CS230Date lastdate (); Returns the latest date for which quote information is known about this stock. If no quote information is known, returns CS230Date.MIN DATE. public int numquotes (); Returns the number of quotes known for this stock. public StockQuote getquote (CS230Date date); If the date is not in the range of known quotes for this stock, returns null. If date is in the range known for the stock, returns the quote for that date. If there is no quote for the exact date, returns the quote for the nearest date preceding date. E.g., if the quotes cover all of 2006, then the query should return a quote for , since there are no quotes for (a Saturday), (a Sunday), or (Christmas). public String tostring (); Returns a string representation of this stock having the form [StockInfo: shares shares of name (sym ), num quotes between first and last ] where shares is the number of shares, name is the name, sym is the symbol, num is the number of known quotes, first is the earliest date of the known quotes, and last is the latest date of the known quotes Figure 2: The contract for the StockInfo class, part 1. 6
7 Public Class Methods: public static void main (String[] args); There should be three elements in args: (1) a stock name, (2) a stock symbol, and (3) a number of shares e.g., java StockInfo "General Motors" GM 125. When invoked in this manner, the main() method should (1) create a StockInfo instance info based on the arguments; (2) display info.tostring(); and (3) enter a read-eval-print loop (REPL) that allows the user to interactively test info. In a REPL, the user is interactively prompted for input and the program responds with the appropriate output. (The Linux shell is an example of a REPL.) In this case, the prompt should be the stock symbol of info followed by > and a space. E.g., the prompt for General Motors is "GM> ". This REPL understands three kinds of inputs: 1. If the input is a single date date (written in the standard CS230Date format) that is in the range of quotes known by info, the output is the StockQuote information for that date i.e., the result of invoking info.getquote(date). If date is outside the known range of dates, an error message is displayed. 2. If the input is a pair of space-separated dates start and stop, the output is the StockQuote information (one quote per line) for all dates between start and stop for which such information exists. 3. If the input is quit, the REPL is terminated. If the input is not one of the above forms, or if the dates specified are not in the right format, then a help message indicating the acceptable forms of input is displayed. See Fig. 4 for a transcript of a sample REPL for StockInfo. In the example, help messages are displayed for??? (not a valid input), 02/15/2007 (invalid date format), (invalid date format), and (three dates are not a valid input). Note that the quote given for (last Christmas) is dated , since this is the most recent quote for that date. The quote listing for the range excludes all quotes before (they don t exist) as well as quotes for ,22,28,29 (weekend days). Figure 3: The contract for the StockInfo class, part 2. 7
8 ps2] java StockInfo Google GOOG 100 [100 shares of Google (GOOG), 628 quotes between and ] GOOG>??? Type one date (YYYY-MM-DD) in the range [ , ] to get the nearest quote for that date. Type two dates to get a listing of all quotes between those dates. Type quit to exit this read-eval-print loop. GOOG> : GOOG> : GOOG> : GOOG> The date is outside the range [ , ]] of known quotes. GOOG> The date is outside the range [ , ]] of known quotes. GOOG> 02/15/2007 Type one date (YYYY-MM-DD) in the range [ , ] to get the nearest quote for that date. Type two dates to get a listing of all quotes between those dates. Type quit to exit this read-eval-print loop. GOOG> Type one date (YYYY-MM-DD) in the range [ , ] to get the nearest quote for that date. Type two dates to get a listing of all quotes between those dates. Type quit to exit this read-eval-print loop. GOOG> : : : : : : : : : GOOG> : : : : GOOG> GOOG> Type one date (YYYY-MM-DD) in the range [ , ] to get the nearest quote for that date. Type two dates to get a listing of all quotes between those dates. Type quit to exit this read-eval-print loop. GOOG> quit [fturbak@irwin ps2] 8 Figure 4: A sample transcript for the StockInfo program.
9 Problem 3 [40]: The Portfolio Class In this problem, your task is to create a Portfolio class in the file ~/cs230/ps2/portfolio.java that implements the contract specified in Figs. 5 and 6. Conceptually, each instance of the Portfolio class has four pieces of information: 1. The name of the portfolio (e.g. Technology or BlueChip Stocks ); 2. A collection of stocks (represented by StockInfo instances). 3. The first date for which all of the stocks in the collection have a quote. 4. The last date for which all of the stocks in the collection have a quote. Notes: The order of stocks in a portfolio should be the same order in which they were added by addstock(). The getvalue() method returns a non-negative value for any date between firstdate() and lastdate(), inclusive. In particular, it returns a non-negative value for days on which there is no quote for individual stocks (such as weekend days and holidays). In this case, it uses the most recent closing price. In your fromstring() and verbosevaluestring() methods, you should use StringBuffer to accumulate a string value. As explained in lecture, this is more efficient than accumulating a string via string concatenation. Feel free to define any private helper methods that you find useful. A test version of Portfolio.class is provided in the test subdirectory of the ps2 directory. You can use it to test the behavior of the Portfolio program. As indicated in the transcript in Appendix B, the files small.txt, technology.txt, and bluechip.txt contain sample stock portfolios. These are included in your ps2 directory. For this part, your hardcopy submission should consist of (1) your final version of Portfolio.java and (2) a transcript of tests carried out using your main method. 9
10 An instance of the Portfolio class represents a named collection of StockInfo instances. Public Constructor Method: public Portfolio (String name); Creates a Portfolio instance with the specified name whose collection of stocks is empty. Public Instance Methods: public String name (); Returns the name of this portfolio. public void addstock (StockInfo stock); Adds stock to the stocks in this portfolio. public CS230Date firstdate (); Returns the earliest date for which a quote exists for all stocks in this portfolio. public CS230Date lastdate (); Returns the last date for which a quote exists for all stocks in this portfolio. public double getvalue (CS230Date date); Returns the value of this portfolio on a particular date. The value of the portfolio is the sum of the share-weighted prices of all the the stocks in the portfolio on the given date. If the date is not in the range covered by the portfolio, returns If the date is in the range covered by the portfolio, returns the value of the portfolio on that date. public String tostring (); Returns a string representation of this portfolio having the form [Portfolio: portfolio-name (date range [first, last ]: shares 1 shares of stock-name 1 (sym 1 ). shares n shares of stock-name n (sym n ) ] where portfolio-name is the name of the portfolio, first is the earliest date of the known quotes for all stocks in the portfolio, last is the latest date of the known quotes for all stocks in the portfolio, shares i is the number of shares for the ith stock in the portfolio, stock-name i is the name of the ith stock in the portfolio, and sym i is the stock-ticker symbol for the ith stock in the portfolio, public String verbosevaluestring (CS230Date date); Returns a string showing the value of this portfolio and its individual stocks on the given date. This string has the following form: Portfolio value on date = value : shares 1 shares of sym share-price 1 = stock-price 1 ). shares n shares of sym share-price n = stock-price n ) where date is the date specified by date, value is the value of the portfolio on the date date, shares i is the number of shares for the ith stock in the portfolio, sym i is the stock-ticker symbol for the ith stock in the portfolio, share-price i is the per-share price of the ith stock in the portfolio on the date date, and cdstock-price i is the total price (per-share price times number of shares) of the ith stock in the portfolio on the date date. Figure 5: The contract for the Portfolio class, part 1. 10
11 Public Class Methods: public static StockInfo stockfromline (String line); Returns a StockInfo instance for a line having the following form: name (symbol ) shares where name is the name of the stock, symbol is the stock-ticker symbol of the stock, and shares is the number of shares of the stock. public static Portfolio fromfile (String filename); Creates a stock portfolio from the file named filename. The first line of this file should contain the name of the portfolio. Each remaining line of the file should contain a stock specification having the form of the line expected by stockfromline. For example, the ps2 directory contains a portfolio file technology.txt with the following contents: Technology Google (GOOG) 50 Apple Computer (AAPL) 150 Dell, Inc. (DELL) 200 Gateway, Inc. (GW) 1000 Microsoft (MSFT) 500 Oracle Corp. (ORCL) 200 Hewlett Packard (HPQ) 100 public static void main (String[] args); There should be one element in args: the name of a file specifying a stock portfolio e.g., java Portfolio technology.txt. When invoked in this manner, the main() method should (1) create a Portfolio instance port from the file (displaying a message as it reads the stock information for each stock), (2) display port.tostring(); and (3) enter a read-eval-print loop (REPL) that allows the user to interactively test port. In a REPL, the prompt should be the name of port followed by > and a space. E.g., the prompt for the portfolio created from technology.txt is "Technology> ". This REPL understands four kinds of inputs: 1. If the input is a single date date (written in the standard CS230Date format) that is in the range of quotes known by info, the output is the string returned by verbosevaluestring() for that date. If date is outside the known range of dates, an error message is displayed. 2. If the input is a pair of space-separated dates start and stop that are in the date range of the portfolio, the output is the value of the portfolio (one value per line) for all dates between start and stop, even ones for which individual quotes do not exist. 3. If the input has the form extremes start stop, the output is a verbose display of the portfolio for (1) the date in the range [start,stop] on which the portfolio value was a minimum; and (2) the date in the range [start,stop] on which the portfolio value was a maximum. If one or both of start and stop are not in the range of the portfolio, or if start > stop, then an error message is displayed. 4. If the input is quit, the REPL is terminated. If the input is not one of the above forms, or if the dates specified are not in the right format, then a help message indicating the acceptable forms of input is displayed. See Appendix B for a lengthy transcript of a sample REPL for Portfolio. Figure 6: The contract for the Portfolio class, part 2. 11
12 Appendix A: CS230Date Contract The CS230Date class is a simple class used for representing dates consisting of a day, month, and a year for years between 0 and The class is named CS230Date to distinguish it from Java s standard Date class, which has many more features but is also more complicated to use. Public Class Variables: public static final CS230Date MIN DATE; The minimal representable date = Jan. 1, public static final CS230Date MAX DATE; The maximal representable date = Dec. 31, Public Constructor Methods: public CS230Date (int year, int month, int day); Returns a date representing the given year (in the range ), month (in the range 1=January to 12=December), and day (in the range 1 31). Throws a RuntimeException for invalid dates (out-of-range years, months, or days, as well as Feb 29 in non-leap years, Feb 30, Feb 31, April 31, June 31, Sept 31, and November 31). Public Instance Methods: public int day (); Returns the day of this date (an integer in the range 0 31). public int month (); Returns an integer specifying the month of this date (an integer in the range 1=January 12=December). public int year (); Returns an integer specifying the year of this date (an integer in the range ). public CS230Date next (); Returns the date that comes after this one. Throws a RuntimeException for Dec. 31, public CS230Date prev (); Returns the date that comes before this one. Throws a RuntimeException for Jan. 1, public String tostring (); Returns a string representation of this date having the form YYYY -MM -DD, where YYYY are four digits specifying the year (in the range ), MM are two digits specifying the month (in the range 01 12), and DD are two digits specifying the day (in the range 01 31). public boolean equals (Object x); Returns true if x is a CS230Date representing the same date as this date, and false otherwise. public int compareto (CS230Date x); Returns a negative number if this date comes before x, 0 if this date is the same as x, and a positive number if this date comes after x. 12
13 Public Class Methods: public static CS230Date fromstring (String s); The string s must be of the form YYYY -MM -DD, where YYYY are four digits specifying the year (in the range ), MM are two digits specifying the month (in the range 01 12), and DD are two digits specifying the day (in the range 01 31). Returns a CS230Date instances representing the specified date. Throws a RuntimeException if the string s is of the wrong form or the specified date is invalid. public static boolean isdayvalidformonth (int day, int month); Returns true if day (in the range 1 31) is a valid day in the given month (1=January 12=December), and false otherwise. public static boolean isleapyear (int year); Returns true if year denotes a leap year. A year is a leap year if it is divisible by 4, except for years divisible by 100 but not 400. public static CS230Date min (CS230Date d1, CS230Date d2); Returns the earlier of the dates d1 and d2. public static CS230Date max (CS230Date d1, CS230Date d2); Returns the later of the dates d1 and d2. Appendix B: A Transcript of the Portfolio Program [fturbak@irwin ps2] java Portfolio small.txt Reading stock information for Walmart (WMT)...done. Reading stock information for Coca-Cola (KO)...done. Reading stock information for General Motors (GM)...done. [Portfolio: Small Portfolio (date range [ , ]): 1000 shares of Walmart (WMT) 500 shares of Coca-Cola (KO) 200 shares of General Motors (GM) ] Small Portfolio> Portfolio value on = : 1000 shares of 0.05 = shares of 1.11 = shares of 4.86 = Small Portfolio> Portfolio value on = : 1000 shares of = shares of = shares of = Small Portfolio> Portfolio value on = : 1000 shares of = shares of = shares of = Small Portfolio> 01/01/2000 Type one date (YYYY-MM-DD) in the range [ , ] to get the value of the portfolio on that date. Type two dates to get a listing of all portfolio values those dates. Type extremes <start-date> <stop-date> to get the minimum/maximum portfolio values 13
14 between <start-date> and <stop-date>. Type quit to exit this read-eval-print loop. Small Portfolio> Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Porfolio value on = Small Portfolio> extremes MINIMUM: Portfolio value on = : 1000 shares of 47.0 = shares of = shares of = MAXIMUM: Portfolio value on = : 1000 shares of = shares of 48.5 = shares of = Small Portfolio> extremes MINIMUM: Portfolio value on = 637.0: 1000 shares of 0.01 = shares of 0.39 = shares of 2.16 = MAXIMUM: Portfolio value on = : 1000 shares of = shares of 56.7 = shares of = Small Portfolio> extremes Invalid date range Small Portfolio> extremes Invalid date range Small Portfolio> quit [fturbak@irwin ps2] java Portfolio technology.txt Reading stock information for Google (GOOG)...done. Reading stock information for Apple Computer (AAPL)...done. Reading stock information for Dell, Inc. (DELL)...done. Reading stock information for Gateway, Inc. (GW)...done. Reading stock information for Microsoft (MSFT)...done. Reading stock information for Oracle Corp. (ORCL)...done. Reading stock information for Hewlett Packard (HPQ)...done. [Portfolio: Technology (date range [ , ]): 50 shares of Google (GOOG) 150 shares of Apple Computer (AAPL) 200 shares of Dell, Inc. (DELL) 1000 shares of Gateway, Inc. (GW) 500 shares of Microsoft (MSFT) 200 shares of Oracle Corp. (ORCL) 100 shares of Hewlett Packard (HPQ) ] 14
15 Technology> extremes MINIMUM: Portfolio value on = : 50 shares of = shares of = shares of 34.7 = shares of 3.99 = shares of = shares of = shares of = MAXIMUM: Portfolio value on = : 50 shares of = shares of 97.1 = shares of = shares of 6.49 = shares of = shares of 17.3 = shares of 43.2 = Technology> quit [fturbak@irwin ps2] java Portfolio bluechip.txt Reading stock information for Procter & Gamble (PG)...done. Reading stock information for Merck (MRK)...done. Reading stock information for General Electric (GE)...done. Reading stock information for General Motors (GM)...done. Reading stock information for AT&T (T)...done. Reading stock information for Coca-Cola (KO)...done. Reading stock information for Disney (DIS)...done. Reading stock information for Exxon Mobil (XOM)...done. Reading stock information for Citigroup (C)...done. [Portfolio: BlueChip Stocks (date range [ , ]): 100 shares of Procter & Gamble (PG) 100 shares of Merck (MRK) 250 shares of General Electric (GE) 500 shares of General Motors (GM) 150 shares of AT&T (T) 100 shares of Coca-Cola (KO) 100 shares of Disney (DIS) 150 shares of Exxon Mobil (XOM) 100 shares of Citigroup (C) ] BlueChip Stocks> extremes MINIMUM: Portfolio value on = : 100 shares of 1.92 = shares of 1.18 = shares of 1.14 = shares of 9.23 = shares of 1.87 = shares of 1.55 = shares of 0.92 = shares of 2.17 = shares of 1.03 = MAXIMUM: Portfolio value on = : 100 shares of = shares of = shares of = shares of = shares of 33.1 = shares of = shares of 39.6 =
16 150 shares of = shares of = BlueChip Stocks> quit [fturbak@irwin ps2] 16
17 Problem Set Header Page Please make this the first page of your hardcopy submission. CS230 Problem Set 2 Due 6:00pm Friday February 23 Names of Team Members: Date & Time Submitted: Collaborators (anyone you or your team collaborated with): By signing below, I/we attest that I/we have followed the collaboration policy as specified in the Course Information handout. Signature(s): In the Time column, please estimate the time you or your team spent on the parts of this problem set. Team members should be working closely together, so it will be assumed that the time reported is the time for each team member. Please try to be as accurate as possible; this information will help me design future problem sets. I will fill out the Score column when grading your problem set. Part Time Score General Reading Problem 1 [20] Problem 2 [40] Problem 3 [40] Total 17
Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab.
Chulalongkorn University Name International School of Engineering Student ID Department of Computer Engineering Station No. 2140105 Computer Programming Lab. Date Lab 2 Using Java API documents, command
1.00 Lecture 1. Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders
1.00 Lecture 1 Course Overview Introduction to Java Reading for next time: Big Java: 1.1-1.7 Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders
Programming Languages CIS 443
Course Objectives Programming Languages CIS 443 0.1 Lexical analysis Syntax Semantics Functional programming Variable lifetime and scoping Parameter passing Object-oriented programming Continuations Exception
Comparing share-price performance of a stock
Comparing share-price performance of a stock A How-to write-up by Pamela Peterson Drake Analysis of relative stock performance is challenging because stocks trade at different prices, indices are calculated
Building a Multi-Threaded Web Server
Building a Multi-Threaded Web Server In this lab we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous
13 File Output and Input
SCIENTIFIC PROGRAMMING -1 13 File Output and Input 13.1 Introduction To make programs really useful we have to be able to input and output data in large machinereadable amounts, in particular we have to
AP Computer Science Java Subset
APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall
Inside the Java Virtual Machine
CS1Bh Practical 2 Inside the Java Virtual Machine This is an individual practical exercise which requires you to submit some files electronically. A system which measures software similarity will be used
Smith Barney Portfolio Manager Institute Conference
Smith Barney Portfolio Manager Institute Conference Richard E. Cripps, CFA Portfolio Strategy Group March 2006 The EquityCompass is an investment process focused on selecting stocks and managing portfolios
Moving from CS 61A Scheme to CS 61B Java
Moving from CS 61A Scheme to CS 61B Java Introduction Java is an object-oriented language. This document describes some of the differences between object-oriented programming in Scheme (which we hope you
Welcome to Introduction to programming in Python
Welcome to Introduction to programming in Python Suffolk One, Ipswich, 4:30 to 6:00 Tuesday Jan 14, Jan 21, Jan 28, Feb 11 Welcome Fire exits Toilets Refreshments 1 Learning objectives of the course An
ECE 122. Engineering Problem Solving with Java
ECE 122 Engineering Problem Solving with Java Introduction to Electrical and Computer Engineering II Lecture 1 Course Overview Welcome! What is this class about? Java programming somewhat software somewhat
CP Lab 2: Writing programs for simple arithmetic problems
Computer Programming (CP) Lab 2, 2015/16 1 CP Lab 2: Writing programs for simple arithmetic problems Instructions The purpose of this Lab is to guide you through a series of simple programming problems,
Webapps Vulnerability Report
Tuesday, May 1, 2012 Webapps Vulnerability Report Introduction This report provides detailed information of every vulnerability that was found and successfully exploited by CORE Impact Professional during
First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science
First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca
Building Java Programs
Building Java Programs Chapter 5 Lecture 5-2: Random Numbers reading: 5.1-5.2 self-check: #8-17 exercises: #3-6, 10, 12 videos: Ch. 5 #1-2 1 The Random class A Random object generates pseudo-random* numbers.
Using Files as Input/Output in Java 5.0 Applications
Using Files as Input/Output in Java 5.0 Applications The goal of this module is to present enough information about files to allow you to write applications in Java that fetch their input from a file instead
Iteration CHAPTER 6. Topic Summary
CHAPTER 6 Iteration TOPIC OUTLINE 6.1 while Loops 6.2 for Loops 6.3 Nested Loops 6.4 Off-by-1 Errors 6.5 Random Numbers and Simulations 6.6 Loop Invariants (AB only) Topic Summary 6.1 while Loops Many
J a v a Quiz (Unit 3, Test 0 Practice)
Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points
Mail User Agent Project
Mail User Agent Project Tom Kelliher, CS 325 100 points, due May 4, 2011 Introduction (From Kurose & Ross, 4th ed.) In this project you will implement a mail user agent (MUA) that sends mail to other users.
Limit and Stop levels*** SIC Commission. > 500K$ < 500K$ $ per lot. Minimum Price Fluctuation. Currency Pair
Spread and IB commission for MT4 platform, and the TWS platform spread is same as Exchanges spread + commission start from 6$ - 25$ per lot + IB markup commission Currency Pair Main FX USD 0.01 2 3 Depend
MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.
Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) The JDK command to compile a class in the file Test.java is A) java Test.java B) java
How To Program In Scheme (Prolog)
The current topic: Scheme! Introduction! Object-oriented programming: Python Functional programming: Scheme! Introduction Next up: Numeric operators, REPL, quotes, functions, conditionals Types and values
Investoscope 3 User Guide
Investoscope 3 User Guide Release 3.0 Copyright c Investoscope Software Contents Contents i 1 Welcome to Investoscope 1 1.1 About this User Guide............................. 1 1.2 Quick Start Guide................................
CS170 Lab 11 Abstract Data Types & Objects
CS170 Lab 11 Abstract Data Types & Objects Introduction: Abstract Data Type (ADT) An abstract data type is commonly known as a class of objects An abstract data type in a program is used to represent (the
Chapter 2 Text Processing with the Command Line Interface
Chapter 2 Text Processing with the Command Line Interface Abstract This chapter aims to help demystify the command line interface that is commonly used in UNIX and UNIX-like systems such as Linux and Mac
MS Visual C++ Introduction. Quick Introduction. A1 Visual C++
MS Visual C++ Introduction 1 Quick Introduction The following pages provide a quick tutorial on using Microsoft Visual C++ 6.0 to produce a small project. There should be no major differences if you are
Project 4 DB A Simple database program
Project 4 DB A Simple database program Due Date April (Friday) Before Starting the Project Read this entire project description before starting Learning Objectives After completing this project you should
http://algs4.cs.princeton.edu dictionary find definition word definition book index find relevant pages term list of page numbers
ROBERT SEDGEWICK KEVI WAYE F O U R T H E D I T I O ROBERT SEDGEWICK KEVI WAYE ROBERT SEDGEWICK KEVI WAYE Symbol tables Symbol table applications Key-value pair abstraction. Insert a value with specified.
Learning Outcomes. Networking. Sockets. TCP/IP Networks. Hostnames and DNS TCP/IP
CP4044 Lecture 7 1 Networking Learning Outcomes To understand basic network terminology To be able to communicate using Telnet To be aware of some common network services To be able to implement client
Scanner. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit.
Scanner The Scanner class is intended to be used for input. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit. For example, suppose the input
An Incomplete C++ Primer. University of Wyoming MA 5310
An Incomplete C++ Primer University of Wyoming MA 5310 Professor Craig C. Douglas http://www.mgnet.org/~douglas/classes/na-sc/notes/c++primer.pdf C++ is a legacy programming language, as is other languages
Crystal Reports Integration Plugin for JIRA
Crystal Reports Integration Plugin for JIRA Copyright 2008 The Go To Group Page 1 of 7 Table of Contents Crystal Reports Integration Plugin for JIRA...1 Introduction...3 Prerequisites...3 Architecture...3
How to Create a Spreadsheet With Updating Stock Prices Version 3, February 2015
How to Create a Spreadsheet With Updating Stock Prices Version 3, February 2015 by Fred Brack In December 2014, Microsoft made changes to their online portfolio management services, changes widely derided
System.out.println("\nEnter Product Number 1-5 (0 to stop and view summary) :
Benjamin Michael Java Homework 3 10/31/2012 1) Sales.java Code // Sales.java // Program calculates sales, based on an input of product // number and quantity sold import java.util.scanner; public class
CLC Server Command Line Tools USER MANUAL
CLC Server Command Line Tools USER MANUAL Manual for CLC Server Command Line Tools 2.5 Windows, Mac OS X and Linux September 4, 2015 This software is for research purposes only. QIAGEN Aarhus A/S Silkeborgvej
Unix Scripts and Job Scheduling
Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh [email protected] http://www.sis.pitt.edu/~spring Overview Shell Scripts
AP Computer Science Java Mr. Clausen Program 9A, 9B
AP Computer Science Java Mr. Clausen Program 9A, 9B PROGRAM 9A I m_sort_of_searching (20 points now, 60 points when all parts are finished) The purpose of this project is to set up a program that will
Trading Calendar. 2008 Holiday Schedule. 2007 Holiday Schedule. Martin Luther King Jr.'s Birthday (Observed) Independence Day
Trading Calendar 2008 Holiday Schedule January 1 January 21 February 18 March 21 May 26 July 4 September 1 November 27 December 25 New Year's Day Martin Luther King Jr.'s Birthday (Observed) Presidents'
Identifying Ticker Symbols and Interpreting Stock Quotes
Identifying Ticker Symbols and Interpreting Stock Quotes Lesson Summary Identifying Ticker Symbols and Interpreting Stock Quotes helps students to understand and locate ticker symbols in order to trade
Retrieving Live Stock Quotes from the Internet
Tutorial 11 Connecting to External Data Excel EX 707 Retrieving Live Stock Quotes from the Internet Many financial applications need up-to-the-minute market data. Excel workbooks that display stock data
Computer Programming I
Computer Programming I COP 2210 Syllabus Spring Semester 2012 Instructor: Greg Shaw Office: ECS 313 (Engineering and Computer Science Bldg) Office Hours: Tuesday: 2:50 4:50, 7:45 8:30 Thursday: 2:50 4:50,
Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford
Financial Econometrics MFE MATLAB Introduction Kevin Sheppard University of Oxford October 21, 2013 2007-2013 Kevin Sheppard 2 Contents Introduction i 1 Getting Started 1 2 Basic Input and Operators 5
Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved.
1 2 Introduction to Java Applications 2.2 First Program in Java: Printing a Line of Text 2 Application Executes when you use the java command to launch the Java Virtual Machine (JVM) Sample program Displays
Assignment 4 CPSC 217 L02 Purpose. Important Note. Data visualization
Assignment 4 CPSC 217 L02 Purpose You will be writing a Python program to read data from a file and visualize this data using an external drawing tool. You will structure your program using modules and
Lesson: All About Sockets
All About Sockets http://java.sun.com/docs/books/tutorial/networking/sockets/index.html Page 1 sur 1 The Java TM Tutorial Start of Tutorial > Start of Trail Trail: Custom Networking Lesson: All About Sockets
Project 5 Twitter Analyzer Due: Fri. 2015-12-11 11:59:59 pm
Project 5 Twitter Analyzer Due: Fri. 2015-12-11 11:59:59 pm Goal. In this project you will use Hadoop to build a tool for processing sets of Twitter posts (i.e. tweets) and determining which people, tweets,
Introduction to Programming System Design. CSCI 455x (4 Units)
Introduction to Programming System Design CSCI 455x (4 Units) Description This course covers programming in Java and C++. Topics include review of basic programming concepts such as control structures,
Question1-part2 What undesirable consequences might there be in having too long a DNS cache entry lifetime?
CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Assignment 4 Working as a group. Working in small gruops of 2-4 students. When you work as a group, you have to return only one home assignment per
Lab 9. Spam, Spam, Spam. Handout 11 CSCI 134: Spring, 2015. To gain experience with Strings. Objective
Lab 9 Handout 11 CSCI 134: Spring, 2015 Spam, Spam, Spam Objective To gain experience with Strings. Before the mid-90s, Spam was a canned meat product. These days, the term spam means just one thing unwanted
Elixir Schedule Designer User Manual
Elixir Schedule Designer User Manual Release 7.3 Elixir Technology Pte Ltd Elixir Schedule Designer User Manual: Release 7.3 Elixir Technology Pte Ltd Published 2008 Copyright 2008 Elixir Technology Pte
Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459)
Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Class Time: 6:00 8:05 p.m. (T,Th) Venue: WSL 5 Web Site: www.pbvusd.net/mis260 Instructor Name: Terrell Tucker Office: BDC 127
Building Web Services with Apache Axis2
2009 Marty Hall Building Web Services with Apache Axis2 Part I: Java-First (Bottom-Up) Services Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, Struts, JSF/MyFaces/Facelets,
Basic Programming and PC Skills: Basic Programming and PC Skills:
Texas University Interscholastic League Contest Event: Computer Science The contest challenges high school students to gain an understanding of the significance of computation as well as the details of
Division of Informatics, University of Edinburgh
CS1Bh Lecture Note 20 Client/server computing A modern computing environment consists of not just one computer, but several. When designing such an arrangement of computers it might at first seem that
ACCREDITATION COUNCIL FOR PHARMACY EDUCATION. CPE Monitor. Technical Specifications
ACCREDITATION COUNCIL FOR PHARMACY EDUCATION CPE Monitor Technical Specifications Prepared by Steven Janis, RWK Design, Inc. Created: 02/10/2012 Revised: 09/28/2012 Revised: 08/28/2013 This document describes
JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4
JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4 NOTE: SUN ONE Studio is almost identical with NetBeans. NetBeans is open source and can be downloaded from www.netbeans.org. I
WEB SERVICES TECHNICAL GUIDE FOR DEVELOPERS
WEB SERVICES TECHNICAL GUIDE FOR DEVELOPERS 1. Introduction This Technical Manual considers a development project that need to integrate with the Web Services Central Bank of Chile provides, to obtain
Trade Date Settlement Date
INFORMATIONAL Trade Date Settlement Date Trade Date Settlement Date Schedule For 2001 SUGGESTED ROUTING The Suggested Routing function is meant to aid the reader of this document. Each NASD member firm
IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules
IBM Operational Decision Manager Version 8 Release 5 Getting Started with Business Rules Note Before using this information and the product it supports, read the information in Notices on page 43. This
Copyright 2013 Consona Corporation. All rights reserved www.compiere.com
COMPIERE 3.8.1 SOAP FRAMEWORK Copyright 2013 Consona Corporation. All rights reserved www.compiere.com Table of Contents Compiere SOAP API... 3 Accessing Compiere SOAP... 3 Generate Java Compiere SOAP
Package fimport. February 19, 2015
Version 3000.82 Revision 5455 Date 2013-03-15 Package fimport February 19, 2015 Title Rmetrics - Economic and Financial Data Import Author Diethelm Wuertz and many others Depends R (>= 2.13.0), methods,
Java Programming Language
Lecture 1 Part II Java Programming Language Additional Features and Constructs Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Subclasses and
Contents. 9-1 Copyright (c) 1999-2004 N. Afshartous
Contents 1. Introduction 2. Types and Variables 3. Statements and Control Flow 4. Reading Input 5. Classes and Objects 6. Arrays 7. Methods 8. Scope and Lifetime 9. Utility classes 10. Introduction to
8.1. Example: Visualizing Data
Chapter 8. Arrays and Files In the preceding chapters, we have used variables to store single values of a given type. It is sometimes convenient to store multiple values of a given type in a single collection
Bats Europe Reference Data Specification
Bats Europe Reference Data Specification Version 1.35 15 June, 2016 Bats Trading Limited is a Recognised Investment Exchange regulated by the Financial Conduct Authority. Bats Trading Limited is an indirect
Query 4. Lesson Objectives 4. Review 5. Smart Query 5. Create a Smart Query 6. Create a Smart Query Definition from an Ad-hoc Query 9
TABLE OF CONTENTS Query 4 Lesson Objectives 4 Review 5 Smart Query 5 Create a Smart Query 6 Create a Smart Query Definition from an Ad-hoc Query 9 Query Functions and Features 13 Summarize Output Fields
CISC 181 Project 3 Designing Classes for Bank Accounts
CISC 181 Project 3 Designing Classes for Bank Accounts Code Due: On or before 12 Midnight, Monday, Dec 8; hardcopy due at beginning of lecture, Tues, Dec 9 What You Need to Know This project is based on
ReportByEmail Notification Examples
ReportByEmail Notification Examples Page 2 of 36 Content RBE Examples... 3 RBE Example 1 RBE Example 1 test with subject field tagging... 3 RBE Example 2 - Notification with Excel sheet... 6 Setup basic
HW3: Programming with stacks
HW3: Programming with stacks Due: 12PM, Noon Thursday, September 18 Total: 20pts You may do this assignment with one other student. A team of two members must practice pair programming. Pair programming
CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013
Oct 4, 2013, p 1 Name: CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 1. (max 18) 4. (max 16) 2. (max 12) 5. (max 12) 3. (max 24) 6. (max 18) Total: (max 100)
Academic Calendars. Term I (20081) Term II (20082) Term III (20083) Weekend College. International Student Admission Deadlines
Academic Calendars Term I (20081) Term II (20082) Academic Calendars Term III (20083) Weekend College International Student Admission Deadlines Final Examination Schedule Broward Community College Catalog
Object-Oriented Programming in Java
CSCI/CMPE 3326 Object-Oriented Programming in Java Class, object, member field and method, final constant, format specifier, file I/O Dongchul Kim Department of Computer Science University of Texas Rio
Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following:
In creating objects of the type, we have used statements similar to the following: f = new (); The parentheses in the expression () makes it look like a method, yet we never created such a method in our
Project 2: Bejeweled
Project 2: Bejeweled Project Objective: Post: Tuesday March 26, 2013. Due: 11:59PM, Monday April 15, 2013 1. master the process of completing a programming project in UNIX. 2. get familiar with command
cs2010: algorithms and data structures
cs2010: algorithms and data structures Lecture 11: Symbol Table ADT. Vasileios Koutavas 28 Oct 2015 School of Computer Science and Statistics Trinity College Dublin Algorithms ROBERT SEDGEWICK KEVIN WAYNE
3.GETTING STARTED WITH ORACLE8i
Oracle For Beginners Page : 1 3.GETTING STARTED WITH ORACLE8i Creating a table Datatypes Displaying table definition using DESCRIBE Inserting rows into a table Selecting rows from a table Editing SQL buffer
Supplement IV.C: Tutorial for Oracle. For Introduction to Java Programming By Y. Daniel Liang
Supplement IV.C: Tutorial for Oracle For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Connecting and Using Oracle Creating User Accounts Accessing Oracle
CS 2112 Spring 2014. 0 Instructions. Assignment 3 Data Structures and Web Filtering. 0.1 Grading. 0.2 Partners. 0.3 Restrictions
CS 2112 Spring 2014 Assignment 3 Data Structures and Web Filtering Due: March 4, 2014 11:59 PM Implementing spam blacklists and web filters requires matching candidate domain names and URLs very rapidly
File class in Java. Scanner reminder. Files 10/19/2012. File Input and Output (Savitch, Chapter 10)
File class in Java File Input and Output (Savitch, Chapter 10) TOPICS File Input Exception Handling File Output Programmers refer to input/output as "I/O". The File class represents files as objects. The
Preet raj Core Java and Databases CS4PR. Time Allotted: 3 Hours. Final Exam: Total Possible Points 75
Preet raj Core Java and Databases CS4PR Time Allotted: 3 Hours Final Exam: Total Possible Points 75 Q1. What is difference between overloading and overriding? 10 points a) In overloading, there is a relationship
Oracle Marketing Encyclopedia System
Oracle Marketing Encyclopedia System Concepts and Procedures Release 11i April 2000 Part No. A83637-01 Understanding Oracle Marketing Encyclopedia This topic group provides overviews of the application
SendMIME Pro Installation & Users Guide
www.sendmime.com SendMIME Pro Installation & Users Guide Copyright 2002 SendMIME Software, All Rights Reserved. 6 Greer Street, Stittsville, Ontario Canada K2S 1H8 Phone: 613-831-4023 System Requirements
Estimating a market model: Step-by-step Prepared by Pamela Peterson Drake Florida Atlantic University
Estimating a market model: Step-by-step Prepared by Pamela Peterson Drake Florida Atlantic University The purpose of this document is to guide you through the process of estimating a market model for the
Illustration 1: Diagram of program function and data flow
The contract called for creation of a random access database of plumbing shops within the near perimeter of FIU Engineering school. The database features a rating number from 1-10 to offer a guideline
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 7 Scanner Parser Project Wednesday, September 7 DUE: Wednesday, September 21 This
Using Wireshark to Create Network-Usage Baselines
Using Wireshark to Create Network-Usage Baselines Georgia Tech Research Institute Georgia Institute of Technology Atlanta, GA 30332 Email: [email protected] Phone: 404.407.7554 - Wireshark is
CS 1133, LAB 2: FUNCTIONS AND TESTING http://www.cs.cornell.edu/courses/cs1133/2015fa/labs/lab02.pdf
CS 1133, LAB 2: FUNCTIONS AND TESTING http://www.cs.cornell.edu/courses/cs1133/2015fa/labs/lab02.pdf First Name: Last Name: NetID: The purpose of this lab is to help you to better understand functions:
ACADEMIC CALENDAR 2015-2016 June 2015
ACADEMIC CALENDAR 2015-2016 June 2015 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 8 Monday Classes of Regular Summer Session begin. 12 Friday DEGREE APPLICATION DEADLINE
Bloomberg 1 Database Extension for EViews
Bloomberg 1 Database Extension for EViews Overview The Bloomberg Database Extension is a new feature for EViews 8.1 that adds easy access to Bloomberg s extensive collection of market and economic data
Files and input/output streams
Unit 9 Files and input/output streams Summary The concept of file Writing and reading text files Operations on files Input streams: keyboard, file, internet Output streams: file, video Generalized writing
ORANGE COUNTY COMMUNITY COLLEGE FINAL as of MARCH 10, 2015 ACADEMIC YEAR CALENDAR 2015-2016 FALL SEMESTER 2015
ORANGE COUNTY COMMUNITY COLLEGE FINAL as of MARCH 10, 2015 ACADEMIC YEAR CALENDAR 2015-2016 FALL SEMESTER 2015 August 26, Wednesday 9:00 am - noon August 31, Monday August 31 September 4 September 4, Friday
Business Objects. Report Writing - CMS Net and CCS Claims
Business Objects Report Writing - CMS Net and CCS Claims Updated 11/28/2012 1 Introduction/Background... 4 Report Writing (Ad-Hoc)... 4 Requesting Report Writing Access... 4 Java Version... 4 Create A
Computational Mathematics with Python
Computational Mathematics with Python Basics Claus Führer, Jan Erik Solem, Olivier Verdier Spring 2010 Claus Führer, Jan Erik Solem, Olivier Verdier Computational Mathematics with Python Spring 2010 1
Introduction to: Computers & Programming: Input and Output (IO)
Introduction to: Computers & Programming: Input and Output (IO) Adam Meyers New York University Summary What is Input and Ouput? What kinds of Input and Output have we covered so far? print (to the console)
Unit 6. Loop statements
Unit 6 Loop statements Summary Repetition of statements The while statement Input loop Loop schemes The for statement The do statement Nested loops Flow control statements 6.1 Statements in Java Till now
