Homework Assignment 2: Java Console and Graphics

Size: px
Start display at page:

Download "Homework Assignment 2: Java Console and Graphics"

Transcription

1 SSEA August 2016 Cynthia Lee CS106A Homework Assignment 2: Java Console and Graphics Based on past assignments created by Marty Stepp, Mehran Sahami, Keith Schwarz, Eric Roberts, Stuart Reges, and others. DUE: MONDAY, AUGUST 22, 1:30pm (Problem 3 do not start until after lecture Friday; it is due Tuesday 8/23 11:59pm) PURPOPSE: The purpose of this assignment is to acquaint you with writing Java console programs, practicing essential programming skills of well-designed decomposition into helper methods, good commenting of file and each method, and creative expression through code. ASSIGNMENT: This assignment has 3 parts. Read each part carefully, then read the general instructions. PROBLEM 1: HAILSTONE SEQUENCE Write an interactive ConsoleProgram named Hailstone that displays information about a "Hailstone sequence". Douglas Hofstadter s Pulitzer-prize-winning book Gödel, Escher, Bach mentions a cumulative algorithm for generating a series of integers called a Hailstone sequence, which can be described as follows: Pick a positive integer and call it n. Repeat the following process until n is 1: o If n is even, divide it by two. o Otherwise (if n is odd), multiply it by 3 and add 1. For example, if you start with n of 7, the sequence is 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1, 4, 2, 1. As you can see, the number goes up and down, but eventually ends at 1. 1 It reminiscent of the formation of hailstones, which are carried upward by wind over and over again before they finally descend to the ground. Your program should prompt the user to type a value for n as an integer (you may assume that the user will type a positive integer) and then prints the Hailstone sequence for that n. Your Hailstone sequence should print each number on the same line with commas between the values. You should also print the number of steps it took for the sequence to reach 1. Your program should exactly duplicate the output of the following sample run, plus be able to run properly with other values. (User input as read from a call to readint is shown in bold with an underline to help distinguish it from normal output text. But the text doesn't actually show up as underlined on the screen when you run the program.) 1 The Collatz conjecture claims that this sequence always eventually reaches 1; no one has yet proven or disproven it.

2 If the user enters 1 as the initial value for n, the program's output should be: A Hailstone sequence can certainly get very long. For example, how many steps does it take when n is 27? PROBLEM 2: EXAM SCORES Write an interactive ConsoleProgram named ExamScores that displays information about exam scores. The program should repeatedly prompt the user to enter exam scores until a particular "sentinel" value is entered. By default this sentinel value is -1. You may assume that the user will type positive integers other than the sentinel itself. Once the sentinel value is entered, the program should display the maximum and minimum exam score typed, as well as the average score and the number of scores that failed the exam. "Failing" the exam in this context is receiving a score of 59 or lower. Your program should exactly duplicate the output of the following sample run (user input underlined), plus be able to run properly with other values: This program should be written to use a class constant to represent the sentinel value of -1, so that by changing only that constant's value and recompiling / running the program, it will now use the new sentinel value throughout the code and output. For example, if the constant's value is changed to -42, the program's output would look like:

3 If only one score is entered, that score is the maximum, minimum, and average. For example: If no scores are entered, the program should instead print the following message saying that no scores were entered: PROBLEM 3: ASCII ART ROCKET In the old days, when computers didn t always have graphics capabilities but only hand text consoles for interaction, programmers and users became quite clever in how to draw graphics just using letters, numbers, and punctuation. This was called ASCII art (ASCII being the encoding system for text in early computers). You still see ASCII art sometimes today in forum postings, text messages, and other settings. ڰ ڿ- ڰڿஇ and \_( ツ )_/ are examples of ASCII art. Write a ConsoleProgram named Rocket that displays an ASCII art rocket ship, as shown in the figure at right. Unlike the last two parts of this assignment, this problem is not an interactive program; it does not read any input from the user. You must exactly reproduce the format of the output at right, including identical characters and spacing. One way to write a Java program to draw this figure would be to write a single println statement that prints each line of the figure. However, this solution would not receive full credit. A major part of this assignment is showing that you understand nested for loops, methods and class constants. In lines that have repeated patterns of characters that vary in

4 number from line to line, represent lines and character patterns using nested for loops. (See lecture slides.) Another significant component of this assignment is the task of generalizing the program using a single class constant that can be changed to adjust the size of the figure. You should create one (and only one) class constant named SIZE to represent the size of the pieces of the figure. Use 5 as the value of your SIZE constant. Your figure must be based on that exact value to receive full credit. On any given execution your program will produce just one version of the figure. However, you should refer to the class constant throughout your code, so that by simply changing your constant's value and recompiling, your program would produce a figure of a different size. Your program should scale for any constant value of 2 or greater. The course web site will contain files that show you the expected output if your size constant is changed to various other values. Other guidelines for Rocket: Use methods to represent each part of the rocket, structuring your solution in such a way that the methods match the structure of the output itself. Avoid significant redundancy; use methods so that no substantial groups of identical statements appear in your code. In this problem, no println statements should appear in your run method. You do not need to use methods to capture redundancy in partial lines, such as if a single line has the substring... printed twice. Development strategy: We suggest that you not worry about the constant at first. Write an initial program without a constant that produces the default size-5 output. Make sure you use nested for loops for sequences of repeated characters. After your figure looks correct at the default size, begin modifying the code to use the constant. GENERAL INSTRUCTIONS: You are allowed to work in pairs and submit a joint assignment. Although we are not assigning any grades in this course, you are now officially joining the Stanford community, and we expect that you will take seriously your personal integrity responsibilities under Stanford sڿhonorڿcode.ڿitڿreadsڿasڿfollows: Stanford Honor Code 1. The Honor Code is an undertaking of the students, individually and collectively: a. that they will not give or receive aid in examinations; that they will not give or receive unpermitted aid in class work, in the preparation of reports, or in any other work that is to be used by the instructor as the basis of grading; b. that they will do their share and take an active part in seeing to it that others as well as themselves uphold the spirit and letter of the Honor Code. 2. The faculty on its part manifests its confidence in the honor of its students by refraining from proctoring examinations and from taking unusual and unreasonable precautions to

5 prevent the forms of dishonesty mentioned above. The faculty will also avoid, as far as practicable, academic procedures that create temptations to violate the Honor Code. 3. While the faculty alone has the right and obligation to set academic requirements, the students and faculty will work together to establish optimal conditions for honorable academic work. Your Honor Code obligations and allowances in this course include the following: If you need help, please seek out our available resources to help you. You are of course permitted to collaborate within your pairs for the assignment. This is an exception to the usual default assumption that everyone should work completely independently. Assisting fellow students those who are not your official partners for the assignment is also encouraged, when that assistance consists of oral conceptual discussions or debugging help. This is an exception to the usual default assumption that everyone should work completely independently. Do not use others ڿsolutions, or overly participate in the solutions of others by, e.g., providing your solutionsڿasڿaڿreferenceڿorڿtakingڿoverڿtheڿkeyboardڿforڿthemڿtoڿ help ڿthem. Although we are not assigning grades, this would defeat the purpose of our summer program. It is very important, for this assignment and for all your Stanford assignments, that you NOT place your solutions on any public website or forum (e.g., GitHub). Some students innocently think to do this as an augmentation to their resumes, but the Stanford CS Department considers this to be a serious Honor Code violation and has and will pursue offenders regardless of intent. If you want to do something like this, please ensure that the repository is private and only provide access to recruiters individually on request.

Assignment #2: Intro to Java Due: 11AM PST on Wednesday, July 12

Assignment #2: Intro to Java Due: 11AM PST on Wednesday, July 12 Nick Troccoli Assignment 2 CS 106A July 5, 2017 Assignment #2: Intro to Java Due: 11AM PST on Wednesday, July 12 This assignment should be done individually (not in pairs) Based on handouts by Mehran Sahami,

More information

Assignment 2: Welcome to Java!

Assignment 2: Welcome to Java! CS106A Winter 2011-2012 Handout #12 January 23, 2011 Assignment 2: Welcome to Java! Based on a handout by Eric Roberts and Mehran Sahami Having helped Karel the Robot through the challenges of Assignment

More information

Assignment #2: Simple Java Programs Due: 1:15pm on Friday, April 19th

Assignment #2: Simple Java Programs Due: 1:15pm on Friday, April 19th Steve Cooper Handout #13 CS 106A April 12, 2013 Assignment #2: Simple Java Programs Due: 1:15pm on Friday, April 19th Your Early Assignment Help (YEAH) hours: time: tbd, Tues., Apr. 16th in location:tbd

More information

CS161 - Final Exam Computer Science Department, Stanford University August 16, 2008

CS161 - Final Exam Computer Science Department, Stanford University August 16, 2008 CS161 - Final Exam Computer Science Department, Stanford University August 16, 2008 Name: Honor Code 1. The Honor Code is an undertaking of the students, individually and collectively: a) that they will

More information

Assignment #2: Simple Java Programs Due: 11AM PST on Monday, Jan 29 th

Assignment #2: Simple Java Programs Due: 11AM PST on Monday, Jan 29 th Chris Piech Handout #8 CS 106A Jan 19, 2018 Assignment #2: Simple Java Programs Due: 11AM PST on Monday, Jan 29 th This assignment should be done individually (not in pairs) Portions of this handouts by

More information

CS 106B, Lecture 1 Introduction to C++

CS 106B, Lecture 1 Introduction to C++ CS 106B, Lecture 1 Introduction to C++ reading: Programming Abstractions in C++, Chapters 1 & 2 This document is copyright (C) Stanford Computer Science and Ashley Marty Stepp, Taylor, licensed under Creative

More information

CS 245 Midterm Exam Winter 2014

CS 245 Midterm Exam Winter 2014 CS 245 Midterm Exam Winter 2014 This exam is open book and notes. You can use a calculator and your laptop to access course notes and videos (but not to communicate with other people). You have 70 minutes

More information

CS 245 Final Exam Winter 2016

CS 245 Final Exam Winter 2016 CS 245 Final Exam Winter 2016 This exam is open book and notes. You can use a calculator. You can use your laptop only to access CS245 materials. You have 140 minutes (2 hours, 20 minutes) to complete

More information

Assignment #2: Simple Java Programs Due: 11AM PST on Monday, April 23 rd

Assignment #2: Simple Java Programs Due: 11AM PST on Monday, April 23 rd Chris Piech Assignment #2 CS 106A April 13, 2018 Assignment #2: Simple Java Programs Due: 11AM PST on Monday, April 23 rd This assignment should be done individually (not in pairs) Portions of this handouts

More information

CS-245 Database System Principles

CS-245 Database System Principles CS-245 Database System Principles Midterm Exam Summer 2001 SOLUIONS his exam is open book and notes. here are a total of 110 points. You have 110 minutes to complete it. Print your name: he Honor Code

More information

CS 155 Final Exam. CS 155: Spring 2005 June 2005

CS 155 Final Exam. CS 155: Spring 2005 June 2005 CS 155: Spring 2005 June 2005 CS 155 Final Exam This exam is open books and open notes, but you may not use a laptop. You have 2 hours. Make sure you print your name legibly and sign the honor code below.

More information

CS 245 Midterm Exam Solution Winter 2015

CS 245 Midterm Exam Solution Winter 2015 CS 245 Midterm Exam Solution Winter 2015 This exam is open book and notes. You can use a calculator and your laptop to access course notes and videos (but not to communicate with other people). You have

More information

CS 155 Final Exam. CS 155: Spring 2004 June 2004

CS 155 Final Exam. CS 155: Spring 2004 June 2004 CS 155: Spring 2004 June 2004 CS 155 Final Exam This exam is open books and open notes, but you may not use a laptop. You have 2 hours. Make sure you print your name legibly and sign the honor code below.

More information

CS 155 Final Exam. CS 155: Spring 2009 June 2009

CS 155 Final Exam. CS 155: Spring 2009 June 2009 CS 155: Spring 2009 June 2009 CS 155 Final Exam This exam is open books and open notes. You may use course notes and documents that you have stored on a laptop, but you may NOT use the network connection

More information

CS 106A, Lecture 27 Final Exam Review 1

CS 106A, Lecture 27 Final Exam Review 1 CS 106A, Lecture 27 Final Exam Review 1 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License. All rights reserved. Based on

More information

Practice Midterm Examination

Practice Midterm Examination Mehran Sahami Handout #28 CS106A October 23, 2013 Practice Midterm Examination Midterm Time: Tuesday, October 29th, 7:00P.M. 9:00P.M. Midterm Location (by last name): Last name starts with A-L: go to Dinkelspiel

More information

CS 106A, Lecture 27 Final Exam Review 1

CS 106A, Lecture 27 Final Exam Review 1 CS 106A, Lecture 27 Final Exam Review 1 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License. All rights reserved. Based on

More information

Using Eclipse and Karel

Using Eclipse and Karel Alisha Adam and Rohit Talreja CS 106A Summer 2016 Using Eclipse and Karel Based on a similar handout written by Eric Roberts, Mehran Sahami, Keith Schwarz, and Marty Stepp If you have not already installed

More information

YEAH 2: Simple Java! Avery Wang Jared Bitz 7/6/2018

YEAH 2: Simple Java! Avery Wang Jared Bitz 7/6/2018 YEAH 2: Simple Java! Avery Wang Jared Bitz 7/6/2018 What are YEAH Hours? Your Early Assignment Help Only for some assignments Review + Tips for an assignment Lectures are recorded, slides are posted on

More information

SSEA Computer Science: Track A. Dr. Cynthia Lee Lecturer in Computer Science Stanford

SSEA Computer Science: Track A. Dr. Cynthia Lee Lecturer in Computer Science Stanford SSEA Computer Science: Track A Dr. Cynthia Lee Lecturer in Computer Science Stanford Topics for today Java programming language: new tools Two new kinds of operators: RELATIONAL operators (>,

More information

CS 155 Final Exam. CS 155: Spring 2006 June 2006

CS 155 Final Exam. CS 155: Spring 2006 June 2006 CS 155: Spring 2006 June 2006 CS 155 Final Exam This exam is open books and open notes, but you may not use a laptop. You have 2 hours. Make sure you print your name legibly and sign the honor code below.

More information

COSC 115: Introduction to Web Authoring Fall 2013

COSC 115: Introduction to Web Authoring Fall 2013 COSC 115: Introduction to Web Authoring Fall 2013 Instructor: David. A. Sykes Class meetings: TR 1:00 2:20PM, Olin 212 Office / Hours: Olin 204E / TR 8:00-10:20AM, MWF 1:00 3:00PM, or by appointment/happenstance

More information

CS 106A, Lecture 5 Booleans and Control Flow

CS 106A, Lecture 5 Booleans and Control Flow CS 106A, Lecture 5 Booleans and Control Flow suggested reading: Java Ch. 3.4-4.6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

CS 155 Final Exam. CS 155: Spring 2011 June 3, 2011

CS 155 Final Exam. CS 155: Spring 2011 June 3, 2011 CS 155: Spring 2011 June 3, 2011 CS 155 Final Exam This exam is open books and open notes. You may use course notes and documents that you have stored on a laptop, but you may NOT use the network connection

More information

Practice Midterm Examination #1

Practice Midterm Examination #1 Eric Roberts Handout #35 CS106A May 2, 2012 Practice Midterm Examination #1 Review session: Sunday, May 6, 7:00 9:00 P.M., Hewlett 200 Midterm exams: Tuesday, May 8, 9:00 11:00 A.M., CEMEX Auditorium Tuesday,

More information

CS 245 Final Exam Winter 2017

CS 245 Final Exam Winter 2017 CS 245 Final Exam Winter 2017 This exam is open book and notes. You can use a calculator and your laptop to access course notes and videos (but not to communicate with other people or to browse the Internet).

More information

Assignment #1: /Survey and Karel the Robot Karel problems due: 1:30pm on Friday, October 7th

Assignment #1:  /Survey and Karel the Robot Karel problems due: 1:30pm on Friday, October 7th Mehran Sahami Handout #7 CS 06A September 8, 06 Assignment #: Email/Survey and Karel the Robot Karel problems due: :0pm on Friday, October 7th Email and online survey due: :9pm on Sunday, October 9th Part

More information

Updated: 2/14/2017 Page 1 of 6

Updated: 2/14/2017 Page 1 of 6 MASTER SYLLABUS 2017-2018 A. Academic Division: Business, Industry, and Technology B. Discipline: Engineering Technology C. Course Number and Title: ENGR1910 Engineering Programming D. Course Coordinator:

More information

CS 106A, Lecture 3 Problem-solving with Karel

CS 106A, Lecture 3 Problem-solving with Karel CS 106A, Lecture 3 Problem-solving with Karel suggested reading: Karel, Ch. 5-6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

61A LECTURE 1 FUNCTIONS, VALUES. Steven Tang and Eric Tzeng June 24, 2013

61A LECTURE 1 FUNCTIONS, VALUES. Steven Tang and Eric Tzeng June 24, 2013 61A LECTURE 1 FUNCTIONS, VALUES Steven Tang and Eric Tzeng June 24, 2013 Welcome to CS61A! The Course Staff - Lecturers Steven Tang Graduated L&S CS from Cal Back for a PhD in Education Eric Tzeng Graduated

More information

COSC 115A: Introduction to Web Authoring Fall 2014

COSC 115A: Introduction to Web Authoring Fall 2014 COSC 115A: Introduction to Web Authoring Fall 2014 Instructor: David. A. Sykes Class meetings: TR 1:00-2:20PM in Daniel Building, Room 102 Office / Hours: Olin 204E / TR 8:00-10:45AM, MWF 9:00 10:20AM,

More information

Practice Midterm Examination

Practice Midterm Examination Nick Troccoli Practice Midterm CS 106A July 18, 2017 Practice Midterm Examination Midterm Time: Monday, July 24th, 7:00P.M. 9:00P.M. Midterm Location: Hewlett 200 Based on handouts by Mehran Sahami, Eric

More information

CS 106A, Lecture 7 Parameters and Return

CS 106A, Lecture 7 Parameters and Return CS 106A, Lecture 7 Parameters and Return suggested reading: Java Ch. 5.1-5.4 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License.

More information

Mehran Sahami Handout #7 CS 106A September 24, 2014

Mehran Sahami Handout #7 CS 106A September 24, 2014 Mehran Sahami Handout #7 CS 06A September, 0 Assignment #: Email/Survey and Karel the Robot Karel problems due: :pm on Friday, October rd Email and online survey due: :9pm on Sunday, October th Part I

More information

CS 106X, Lecture 16 More Linked Lists

CS 106X, Lecture 16 More Linked Lists CS 106X, Lecture 16 More Linked Lists reading: Programming Abstractions in C++, Chapters 11-12, 14.1-14.2 This document is copyright (C) Stanford Computer Science and Nick Troccoli, licensed under Creative

More information

CS 155 Final Exam. CS 155: Spring 2012 June 11, 2012

CS 155 Final Exam. CS 155: Spring 2012 June 11, 2012 CS 155: Spring 2012 June 11, 2012 CS 155 Final Exam This exam is open books and open notes. You may use course notes and documents that you have stored on a laptop, but you may NOT use the network connection

More information

You must pass the final exam to pass the course.

You must pass the final exam to pass the course. Computer Science Technology Department Houston Community College System Department Website: http://csci.hccs.cc.tx.us CRN: 46876 978-1-4239-0146-4 1-4239-0146-0 Semester: Fall 2010 Campus and Room: Stafford

More information

CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points

CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points Files to submit: 1. HW3.py This is a PAIR PROGRAMMING Assignment: Work with your partner! For pair

More information

Internet Web Technologies ITP 104 (2 Units)

Internet Web Technologies ITP 104 (2 Units) Internet Web Technologies ITP 104 (2 Units) Spring 2011 Objective This course is intended to teach the basics involved in publishing content on the World Wide Web. This includes the language of the Web

More information

CS 3030 Scripting Languages Syllabus

CS 3030 Scripting Languages Syllabus General Information CS 3030 Scripting Languages Semester: Fall 2017 Textbook: Location: Instructor Info: None. We will use freely available resources from the Internet. Online Ted Cowan tedcowan@weber.edu

More information

CS 106X, Lecture 10 Recursive Backtracking

CS 106X, Lecture 10 Recursive Backtracking CS 106X, Lecture 10 Recursive Backtracking reading: Programming Abstractions in C++, Chapter 9 This document is copyright (C) Stanford Computer Science and Nick Troccoli, licensed under Creative Commons

More information

Practice Midterm Examination

Practice Midterm Examination Steve Cooper Handout #28 CS106A May 1, 2013 Practice Midterm Examination Midterm Time: Tuesday, May 7, 7:00P.M. 9:00P.M. Portions of this handout by Eric Roberts and Patrick Young This handout is intended

More information

Assignment #1: and Karel the Robot Karel problems due: 3:15pm on Friday, October 4th due: 11:59pm on Sunday, October 6th

Assignment #1:  and Karel the Robot Karel problems due: 3:15pm on Friday, October 4th  due: 11:59pm on Sunday, October 6th Mehran Sahami Handout #7 CS 06A September, 0 Assignment #: Email and Karel the Robot Karel problems due: :pm on Friday, October th Email due: :9pm on Sunday, October 6th Part I Email Based on a handout

More information

IML 300: Reading and Writing the Web

IML 300: Reading and Writing the Web IML 300: Reading and Writing the Web University of Southern California Media Arts and Practice Fall 2017 2 units Professor: Lee Tusman Email: tusman {at} usc {dot} edu Office Hours: TBD Student Assistant:

More information

CS 106A, Lecture 16 Arrays

CS 106A, Lecture 16 Arrays CS 106A, Lecture 16 Arrays suggested reading: Java Ch. 11.1-11.5 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License. All rights

More information

CSE 131 Introduction to Computer Science Fall Exam II

CSE 131 Introduction to Computer Science Fall Exam II CSE 131 Introduction to Computer Science Fall 2017 Given: 9 November 2017 Exam II Due: End of session This exam is closed-book, closed-notes, no electronic devices allowed. The exception is the sage page

More information

Due: Wednesday, August 31 st at 11:59pm. Pair programming is permitted on this assignment. See course information sheet and honor code.

Due: Wednesday, August 31 st at 11:59pm. Pair programming is permitted on this assignment. See course information sheet and honor code. CS106B SSEA 2016 Cynthia Lee Assignment 4: Recursion Assignment handout authors and problem concept contributors include: Cynthia Lee, Marty Stepp, Jess Fisher, Due: Wednesday, August 31 st at 11:59pm

More information

CS 106A, Lecture 25 Life After CS 106A, Part 1

CS 106A, Lecture 25 Life After CS 106A, Part 1 CS 106A, Lecture 25 Life After CS 106A, Part 1 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License. All rights reserved. Based

More information

THE UNIVERSITY OF TEXAS AT AUSTIN MIS373 e-discovery and Digital Forensics SPRING 2015 Unique#: (03665) VERSION: 2_011718

THE UNIVERSITY OF TEXAS AT AUSTIN MIS373 e-discovery and Digital Forensics SPRING 2015 Unique#: (03665) VERSION: 2_011718 THE UNIVERSITY OF TEXAS AT AUSTIN MIS373 e-discovery and SPRING 2015 Unique#: (03665) VERSION: 2_011718 Instructor : Juan Reyes, Lecturer Class times : Tuesday and Thursday, 3:30-5:00pm Class location

More information

Pick any positive integer. If the integer is even, divide it by 2. If it is odd,

Pick any positive integer. If the integer is even, divide it by 2. If it is odd, Equal Groups Multiplying and Dividing Integers Learning Goals In this lesson, you will: Multiply integers. Divide integers. Pick any positive integer. If the integer is even, divide it by 2. If it is odd,

More information

CMSC 132: Object-Oriented Programming II. Administrivia

CMSC 132: Object-Oriented Programming II. Administrivia CMSC 132: Object-Oriented Programming II Administrivia CMSC 132 Summer 2017 1 Course Description Introduction to use of computers to solve problems Design and implement abstract data types: List, Stack,

More information

ITP489 In-Memory DBMS for Real Time Analytics

ITP489 In-Memory DBMS for Real Time Analytics ITP489 In-Memory DBMS for Real Time Analytics Instructor: Richard W. Vawter ITP 489, Spring 2015 Office: OHE 530B Location: OHE 540 E-Mail: vawter@usc.edu Wed. 2:00-4:50 p.m. Phone: (213) 740-9541 Office

More information

CIT110 A+ Hardware Spring 2015

CIT110 A+ Hardware Spring 2015 CIT110 A+ Hardware Spring 2015 Instructor: Laura Pike Email: laura.pike@gbcnv.edu Phone: 775-753-2288 Office: HTC 131 Office Hours: Monday and Tuesday 9:00 11:00 am, Thurs. 4:00-5:00 pm LabSim: ISBN: 978-1-935080-42-8,

More information

CS 106A, Lecture 3 Problem-solving with Karel

CS 106A, Lecture 3 Problem-solving with Karel CS 106A, Lecture 3 Problem-solving with Karel suggested reading: Karel, Ch. 5-6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

CS 200, Section 1, Programming I, Fall 2017 College of Arts & Sciences Syllabus

CS 200, Section 1, Programming I, Fall 2017 College of Arts & Sciences Syllabus Northeastern Illinois University CS 200, Section 1, Programming I, Fall 2017 Syllabus, Page 1 of 7 CS 200, Section 1, Programming I, Fall 2017 College of Arts & Sciences Syllabus COURSE INFORMATION: Credit

More information

Lecture 1 Course Overview Introduction to OOP/Java. Manu Kumar

Lecture 1 Course Overview Introduction to OOP/Java. Manu Kumar CS193J: Programming in Java Summer Quarter 2003 Lecture 1 Course Overview Introduction to OOP/Java Manu Kumar sneaker@stanford.edu Agenda Introductions Instructor TA Course Overview Administrivia and Logistics

More information

CS 106A, Lecture 14 Events and Instance Variables

CS 106A, Lecture 14 Events and Instance Variables CS 106A, Lecture 14 Events and Instance Variables Reading: Art & Science of Java, Ch. 10.1-10.4 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons

More information

Programming Standards: You must conform to good programming/documentation standards. Some specifics:

Programming Standards: You must conform to good programming/documentation standards. Some specifics: CS3114 (Spring 2011) PROGRAMMING ASSIGNMENT #3 Due Thursday, April 7 @ 11:00 PM for 100 points Early bonus date: Wednesday, April 6 @ 11:00 PM for a 10 point bonus Initial Schedule due Thursday, March

More information

Syllabus for HPE 099 Aerobic Proficiency 1 Credit Hour Spring 2015

Syllabus for HPE 099 Aerobic Proficiency 1 Credit Hour Spring 2015 Syllabus for HPE 099 Aerobic Proficiency 1 Credit Hour Spring 2015 I. COURSE DESCRIPTION Designed for seniors who are presently maintaining a physically active lifestyle and can pass the running, cycling,

More information

Practice Midterm #2. Midterm Time: Monday, July 18 th, 7pm 9pm Midterm Location: Hewlett 200

Practice Midterm #2. Midterm Time: Monday, July 18 th, 7pm 9pm Midterm Location: Hewlett 200 Alisha Adam & Rohit Talreja CS 106A Summer 2016 Practice Midterm #2. Midterm Time: Monday, July 18 th, 7pm 9pm Midterm Location: Hewlett 200. Based on previous handouts by Keith Schwarz, Eric Roberts,

More information

CS 106A, Lecture 9 Problem-Solving with Strings

CS 106A, Lecture 9 Problem-Solving with Strings CS 106A, Lecture 9 Problem-Solving with Strings suggested reading: Java Ch. 8.5 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

Assignment: 2. CS 135 Winter 2018 Graham, Nijjar

Assignment: 2. CS 135 Winter 2018 Graham, Nijjar Assignment: 2 CS 135 Winter 2018 Graham, Nijjar Due: Tuesday, January 23, 9:00 pm Language level: Beginning Student Files to submit: resistance.rkt, immigration.rkt, fridge-foods.rkt, bonus.rkt Warmup

More information

Syllabus for HPE 120 Dance Aerobic Proficiency 0.0 Credit Hour Spring 2012

Syllabus for HPE 120 Dance Aerobic Proficiency 0.0 Credit Hour Spring 2012 I. COURSE DESCRIPTION Syllabus for HPE 120 Dance Aerobic Proficiency 0.0 Credit Hour Spring 2012 Designed for dance majors, the course helps students to develop and implement a personal fitness exercise

More information

CMSC 201 Fall 2016 Homework 6 Functions

CMSC 201 Fall 2016 Homework 6 Functions CMSC 201 Fall 2016 Homework 6 Functions Assignment: Homework 6 Functions Due Date: Wednesday, October 26th, 2016 by 8:59:59 PM Value: 40 points Collaboration: For Homework 6, collaboration is not allowed

More information

IS 331-Fall 2017 Database Design, Management and Applications

IS 331-Fall 2017 Database Design, Management and Applications Instructor: Todd Will Office: GITC 5100 IS 331-Fall 2017 Database Design, Management and Applications E-Mail: todd.will@njit.edu Office Hours: Course Date/Time: Moodle Tuesdays and Thursdays, 5 to 6PM,

More information

CSE 142. Lecture 1 Course Introduction; Basic Java. Portions Copyright 2008 by Pearson Education

CSE 142. Lecture 1 Course Introduction; Basic Java. Portions Copyright 2008 by Pearson Education CSE 142 Lecture 1 Course Introduction; Basic Java Welcome Today: Course mechanics A little about computer science & engineering (CSE) And how this course relates Java programs that print text 2 Handouts

More information

VIS II: Design Communication Graphic Design Basics, Photoshop and InDesign Spring 2018

VIS II: Design Communication Graphic Design Basics, Photoshop and InDesign Spring 2018 Rutgers, The State University of New Jersey Landscape Architecture :0-8 VIS II: Design Communication Graphic Design Basics, Photoshop and InDesign Spring 08 Tuesday 9:am :pm Friday 9:am :pm Round : TUE

More information

Repetition Through Recursion

Repetition Through Recursion Fundamentals of Computer Science I (CS151.02 2007S) Repetition Through Recursion Summary: In many algorithms, you want to do things again and again and again. For example, you might want to do something

More information

CS 106A, Lecture 9 Problem-Solving with Strings

CS 106A, Lecture 9 Problem-Solving with Strings CS 106A, Lecture 9 Problem-Solving with Strings suggested reading: Java Ch. 8.5 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points

CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points Files to submit: 1. HW4.py This is a PAIR PROGRAMMING Assignment: Work with your partner!

More information

Syllabus for HPE 099 Aerobic Proficiency 1 Credit Hour Fall 2012

Syllabus for HPE 099 Aerobic Proficiency 1 Credit Hour Fall 2012 Syllabus for HPE 099 Aerobic Proficiency 1 Credit Hour Fall 2012 I. COURSE DESCRIPTION Designed for seniors who are presently maintaining a physically active lifestyle and can pass the running, cycling,

More information

CS 241 Data Organization using C

CS 241 Data Organization using C CS 241 Data Organization using C Fall 2018 Instructor Name: Dr. Marie Vasek Contact: Private message me on the course Piazza page. Office: Farris 2120 Office Hours: Tuesday 2-4pm and Thursday 9:30-11am

More information

Oklahoma State University Institute of Technology Online Common Syllabus Spring 2019

Oklahoma State University Institute of Technology Online Common Syllabus Spring 2019 Oklahoma State University Institute of Technology Online Common Syllabus Spring 2019 ITD3153 LAN/WAN Routing & Switching An advanced course on the design, configuration, and maintenance of switches, routers,

More information

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit. Com S 227 Fall 2018 Miniassignment 1 40 points Due Date: Friday, October 12, 11:59 pm (midnight) Late deadline (25% penalty): Monday, October 15, 11:59 pm General information This assignment is to be done

More information

Computer Science Department

Computer Science Department California State University, Dominguez Hills Computer Science Department Syllabus CS255 Dynamic Web Programming Dr. Jason Isaac Halasa Office Hours: MW 12:45-2:30 and 3:45-5:30 and by Appointment Office

More information

Lecture 1: CSE 373. Data Structures and Algorithms

Lecture 1: CSE 373. Data Structures and Algorithms Lecture 1: CSE 373 Data Structures and Algorithms Thanks to Kasey Champion, Ben Jones, Adam Blank, Michael Lee, Evan McCarty, Whitaker Brand, Stuart Reges, Zora Fung, Justin Hsia, and many others for sample

More information

THE UNIVERSITY OF TEXAS AT AUSTIN MIS373 e-discovery and Digital Forensics SPRING 2015 Unique#: (03883) VERSION: 1/23/2015

THE UNIVERSITY OF TEXAS AT AUSTIN MIS373 e-discovery and Digital Forensics SPRING 2015 Unique#: (03883) VERSION: 1/23/2015 THE UNIVERSITY OF TEXAS AT AUSTIN MIS373 e-discovery and SPRING 2015 Unique#: (03883) VERSION: 1/23/2015 Instructor : Juan Reyes, Lecturer Class times : Monday and Wednesday, 3:30-5:00pm Class location

More information

Introduction to Computer Systems

Introduction to Computer Systems Introduction to Computer Systems Syllabus Web Page http://www.cs.northwestern.edu/~pdinda/icsclass Instructor Peter A. Dinda 1890 Maple Avenue, Room 338 847-467-7859 pdinda@cs.northwestern.edu Office hours:

More information

CS 106A, Lecture 20 ArrayLists and HashMaps

CS 106A, Lecture 20 ArrayLists and HashMaps CS 106A, Lecture 20 ArrayLists and HashMaps suggested reading: Java Ch. 13.2 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License.

More information

Practice Midterm Exam #2

Practice Midterm Exam #2 Eric Roberts Handout #25 CS106B January 30, 2013 Practice Midterm Exam #2 Review session: Sunday, February 3, 7:00 9:00 P.M., Hewlett 201 (next door) Midterm #1: Tuesday, February 5, 3:15 5:15 P.M., Braun

More information

During the first 2 weeks of class, all students in the course will take an in-lab programming exam. This is the Exam in Programming Proficiency.

During the first 2 weeks of class, all students in the course will take an in-lab programming exam. This is the Exam in Programming Proficiency. Description of CPSC 301: This is a 2-unit credit/no credit course. It is a course taught entirely in lab, and has two required 2-hour 50-minute lab sessions per week. It will review, reinforce, and expand

More information

YEAH Hours. January , 7-8 PM Jared Wolens

YEAH Hours. January , 7-8 PM Jared Wolens YEAH Hours January 23 2017, 7-8 PM Jared Wolens YEAH Hours? Held after each assignment is released Future dates to be scheduled soon Review + Assignment Tips Plan for today: lecture review, assignment

More information

CSCI 528: OBJECT ORIENTED PROGRAMMING, Fall 2015

CSCI 528: OBJECT ORIENTED PROGRAMMING, Fall 2015 CSCI 528: OBJECT ORIENTED PROGRAMMING, Fall 2015 INSTRUCTOR: Dr. Ray Maleh Adjunct Professor, Department of Computer Science Office: TBD Email: Ray_Maleh@tamuc.edu Office Hours: Mondays 7:10 PM 8:10 PM,

More information

Welcome to CS 135 (Winter 2018)

Welcome to CS 135 (Winter 2018) Welcome to CS 135 (Winter 2018) Instructors: Sandy Graham, Paul Nijjar Other course personnel: see website for details ISAs (Instructional Support Assistants) IAs (Instructional Apprentices) ISC (Instructional

More information

CS 106A, Lecture 23 Interactors and GCanvas

CS 106A, Lecture 23 Interactors and GCanvas CS 106A, Lecture 23 Interactors and GCanvas suggested reading: Java Ch. 10.5-10.6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

Solution READ THIS NOW! CS 3114 Data Structures and Algorithms

Solution READ THIS NOW! CS 3114 Data Structures and Algorithms READ THIS NOW! Print your name in the space provided below. There are 5 short-answer questions, priced as marked. The maximum score is 100. This examination is closed book and closed notes, aside from

More information

Ascii Art. CS 1301 Individual Homework 7 Ascii Art Due: Monday April 4 th, before 11:55pm Out of 100 points

Ascii Art. CS 1301 Individual Homework 7 Ascii Art Due: Monday April 4 th, before 11:55pm Out of 100 points CS 1301 Individual Homework 7 Ascii Art Due: Monday April 4 th, before 11:55pm Out of 100 points Files to submit: 1. HW7.py THIS IS AN INDIVIDUAL ASSIGNMENT! You should work individually on this assignment.

More information

CS 3030 Scripting Languages Syllabus

CS 3030 Scripting Languages Syllabus General Information CS 3030 Scripting Languages Semester: Summer 2013 Textbook: Location: Instructor Info: Website: None. We will use freely available resources from the Internet. Online Ted Cowan tedcowan@weber.edu

More information

Overview. CSE 101: Design and Analysis of Algorithms Lecture 1

Overview. CSE 101: Design and Analysis of Algorithms Lecture 1 Overview CSE 101: Design and Analysis of Algorithms Lecture 1 CSE 101: Design and analysis of algorithms Course overview Logistics CSE 101, Fall 2018 2 First, relevant prerequisites Advanced Data Structures

More information

Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend

Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend Email: jtownsend@pkwy.k12.mo.us Course Description: The material for this course is the equivalent of one to two semesters of an entry

More information

Course and Contact Information. Course Description. Course Objectives

Course and Contact Information. Course Description. Course Objectives San Jose State University College of Science Department of Computer Science CS157A, Introduction to Database Management Systems, Sections 1 and 2, Fall2017 Course and Contact Information Instructor: Dr.

More information

Instructor: Anna Miller

Instructor: Anna Miller Media Graphics ADV 3203 Fall 2016 Advertising Media Graphics - 81584 - ADV 3203 Mondays and Wednesdays 12:15 PM - 1:30 PM room 1011 And Advertising Media Graphics - 82354 - ADV 3203 Mondays and Wednesdays

More information

BOSTON UNIVERSITY Metropolitan College MET CS342 Data Structures with Java Dr. V.Shtern (Fall 2011) Course Syllabus

BOSTON UNIVERSITY Metropolitan College MET CS342 Data Structures with Java Dr. V.Shtern (Fall 2011) Course Syllabus BOSTON UNIVERSITY Metropolitan College MET CS342 Data Structures with Java Dr. V.Shtern (Fall 2011) Course Syllabus 1. Course Objectives Welcome to MET CS342 Data Structures with Java. The intent of this

More information

Linear Algebra Math 203 section 003 Fall 2018

Linear Algebra Math 203 section 003 Fall 2018 Linear Algebra Math 203 section 003 Fall 2018 Mondays and Wednesdays from 7:20 pm to 8:35 pm, in Planetary Hall room 131. Instructor: Dr. Keith Fox Email: kfox@gmu.edu Office: Exploratory Hall Room 4405.

More information

CS 106A, Lecture 14 Events and Instance Variables

CS 106A, Lecture 14 Events and Instance Variables CS 106A, Lecture 14 Events and Instance Variables Reading: Art & Science of Java, Ch. 10.1-10.4 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons

More information

Syllabus Revised 08/21/17

Syllabus Revised 08/21/17 Department of Information Sciences and Technology Volgenau School of Engineering George Mason University Fall 2017 IT 445 Advanced Networking Principles II Syllabus Revised 08/21/17 Instructor: Pouyan

More information

Snowflake Numbers. A look at the Collatz Conjecture in a recreational manner. By Sir Charles W. Shults III

Snowflake Numbers. A look at the Collatz Conjecture in a recreational manner. By Sir Charles W. Shults III Snowflake Numbers A look at the Collatz Conjecture in a recreational manner By Sir Charles W. Shults III For many people, mathematics is something dry and of little interest. I ran across the mention of

More information

IS Spring 2018 Database Design, Management and Applications

IS Spring 2018 Database Design, Management and Applications IS 331-004 Spring 2018 Database Design, Management and Applications Class Time: Monday/Wednesday 1:00 PM -2:25 PM Location: PC MALL 37 Instructor Information: Name: Dr. Art Hendela Office: 5108 GITC Phone

More information

CSc 2310 Principles of Programming (Java) Jyoti Islam

CSc 2310 Principles of Programming (Java) Jyoti Islam CSc 2310 Principles of Programming (Java) Jyoti Islam Are you in the right class??? Check the CRN of your registration Instructor Jyoti Islam PhD Student, concentration: Machine Learning 4+ years of Industry

More information

Final Exam Time: Friday, August 12th, 12:15pm - 3:15pm Final Exam Location: Split by last name

Final Exam Time: Friday, August 12th, 12:15pm - 3:15pm Final Exam Location: Split by last name Alisha Adam and Rohit Talreja CS 106A Summer 2016 Practice Final #2 Final Exam Time: Friday, August 12th, 12:15pm - 3:15pm Final Exam Location: Split by last name Last name starting with A P NVIDIA Auditorium

More information