We aren't endorsed by this school

  • 4 Pages exam2.1
    Exam2.1

    School: Emory

    Course: Intro To Computer Science I

    CS 170 Exam 2.1 Section 003 Fall 2013 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY lang

  • 1 Page fall13-quiz2
    Fall13-quiz2

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Quiz 2 Name: 1. (6 points) What is the output of the following statements: (a) i n t i = 0 ; f o r ( i = 1 ; i <= 1 0 ; i+ ) cfw_ i f ( i = 11 ) cfw_ System . out . p r i n t l n ( Eleven ) ; System . out . p r i n t l n ( i ) ; (a)

  • 1 Page fall13-quiz2-sol
    Fall13-quiz2-sol

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Quiz 2 Name: 1. (6 points) What is the output of the following statements: (a) i n t i = 0 ; f o r ( i = 1 ; i <= 1 0 ; i+ ) cfw_ i f ( i = 11 ) cfw_ System . out . p r i n t l n ( Eleven ) ; System . out . p r i n t l n ( i ) ; (a)

  • 1 Page fall13-quiz2-makeup-b
    Fall13-quiz2-makeup-b

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Makeup Quiz 2 B Name: 1. (6 points) What is the output of the following statements: (a) i n t i = 0 ; int k = 0; f o r ( i = 2 ; i <= 1 0 ; i+=2 ) cfw_ i f ( i < 5 )cfw_ k = i; System . out . p r i n t l n ( i ) ; System . out . p r

  • 1 Page fall13-quiz2-makeup-b-sol
    Fall13-quiz2-makeup-b-sol

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Makeup Quiz 2 B Name: 1. (6 points) What is the output of the following statements: (a) i n t i = 0 ; int k = 0; f o r ( i = 2 ; i <= 1 0 ; i+=2 ) cfw_ i f ( i < 5 )cfw_ k = i; System . out . p r i n t l n ( i ) ; System . out . p r

  • 1 Page fall13-quiz2-makeup-a
    Fall13-quiz2-makeup-a

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Makeup Quiz 2 A Name: 1. (6 points) What is the output of the following statements: (a) i n t i = 0 ; int k = 0; f o r ( i = 1 ; i <= 1 0 ; i+=2 ) cfw_ i f ( i < 5 )cfw_ k = i; System . out . p r i n t l n ( i ) ; System . out . p r

  • 1 Page fall13-quiz2-makeup-a-sol
    Fall13-quiz2-makeup-a-sol

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Makeup Quiz 2 A Name: 1. (6 points) What is the output of the following statements: (a) i n t i = 0 ; int k = 0; f o r ( i = 1 ; i <= 1 0 ; i+=2 ) cfw_ i f ( i < 5 )cfw_ k = i; System . out . p r i n t l n ( i ) ; System . out . p r

  • 10 Pages Exam 1 Spring 2013
    Exam 1 Spring 2013

    School: Emory

    Course: Introduction To Programming

    Section 003 Spring 2013 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY lang

  • 7 Pages Exam 1 Solution
    Exam 1 Solution

    School: Emory

    Course: Introduction To Programming

    CS 170 Section 000 Exam 1 Oct 11, 2013 Name (print): Question: 1 2 3 4 5 Total Points: 10 10 10 10 10 50 Score: CS 170 Section 000 Exam 1 Oct 11, 2013 1. (10 points) Evaluate each expression and give the result of the evaluation: Expression Value 5.5 2 +

  • 11 Pages Exam 1 Solution Spring 2013
    Exam 1 Solution Spring 2013

    School: Emory

    Course: Introduction To Programming

    Section 003 Spring 2013 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY lang

  • 8 Pages Exam 1 Solution Fall 2012
    Exam 1 Solution Fall 2012

    School: Emory

    Course: Introduction To Programming

    Section 003 Fall 2012 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY langua

  • 9 Pages Exam 1 Fall 2012
    Exam 1 Fall 2012

    School: Emory

    Course: Introduction To Programming

  • 2 Pages Quiz 1 Solution
    Quiz 1 Solution

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Quiz 1 Name: 1. (10 points) What is the output of the following statements: (a) i n t num1 = 1 4 ; i f ( num1 < 20 ) System . out . p r i n t ( Under ) ; else System . out . p r i n t ( Over ) ; System . out . p r i n t l n ( t h e l i

  • 2 Pages Quiz 1
    Quiz 1

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Quiz 1 Name: 1. (10 points) What is the output of the following statements: (a) i n t num1 = 1 4 ; i f ( num1 < 20 ) System . out . p r i n t ( Under ) ; else System . out . p r i n t ( Over ) ; System . out . p r i n t l n ( t h e l i

  • 1 Page Sample quiz 4
    Sample Quiz 4

    School: Emory

    Course: Introduction To Programming

    CS170-000 Fall 2013 Quiz 4 Practice Problems Name: 1. Write a statement that declares a two-dimensional integer array named arr that has 25 rows and 10 columns. 1. 2. Write a statement that declares a three-dimensional integer array named tempAndHumidity

  • 1 Page study-guide
    Study-guide

    School: Emory

    Course: Intro To Computer Science I

    CS170 Final Exam Study Guide Spring 2013 Details: Wednesday, Dec. 18th, 6:30-9pm MSC, E208 (Note: this is NOT the usual classroom) Closed book, closed notes, no calculator. Format: The final will have fewer code writing questions than previous exams. It w

  • 5 Pages exam2.1_sol
    Exam2.1_sol

    School: Emory

    Course: Intro To Computer Science I

    CS 170 Exam 2.1 Section 003 Fall 2013 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY lang

  • 8 Pages fall13-exam1-section04
    Fall13-exam1-section04

    School: Emory

    Course: Introduction To Computer Science I

    Section 003 Spring 2013 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY lang

  • 6 Pages sample-exam2-2
    Sample-exam2-2

    School: Emory

    Course: Introduction To Computer Science I

  • 6 Pages fall13-exam2-section01
    Fall13-exam2-section01

    School: Emory

    Course: Introduction To Computer Science I

    CS 170 Exam 2 Section 001 Fall2013 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY languag

  • 7 Pages sample-exam2-1
    Sample-exam2-1

    School: Emory

    Course: Introduction To Computer Science I

  • 7 Pages fall13-exam1-section02
    Fall13-exam1-section02

    School: Emory

    Course: Introduction To Computer Science I

    CS 170 Exam 1 Section 002 Fall 2013 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY langua

  • 8 Pages fall13-exam1-section01
    Fall13-exam1-section01

    School: Emory

    Course: Introduction To Computer Science I

    Section 001 Fall 2013 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY langua

  • 10 Pages fall13-exam1-ans-section01
    Fall13-exam1-ans-section01

    School: Emory

    Course: Introduction To Computer Science I

    Section 001 Fall 2013 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY langua

  • 10 Pages fall13-exam1-ans-section04
    Fall13-exam1-ans-section04

    School: Emory

    Course: Introduction To Computer Science I

    Section 003 Spring 2013 CS 170 Exam 1 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY lang

  • 7 Pages fall13-exam1-ans-section02
    Fall13-exam1-ans-section02

    School: Emory

    Course: Introduction To Computer Science I

    CS 170 Exam 1 Section 002 Fall 2013 Name (print): Instructions: Keep your eyes on your own paper and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor for ANY reason in ANY langua

  • 4 Pages Review for CS 170 Midterm 1
    Review For CS 170 Midterm 1

    School: Emory

    Course: Computer Science

    Input devices: allow users to enter input to the computer (mouse, keyboard, microphone, camera) Output devices allow the computer to display output to the user (monitor, printer, speaker) Input/output devices: used by the computer to store data and/or co

  • 4 Pages CS170
    CS170

    School: Emory

    How is the computer developed ? Computing devices: abacus and the different engine Programmable devices: music box and mechanical loom How to encode instructions in past programmable devices Basically, we use holes in a cardboard In fact: a computer is an

  • 1 Page cs hw6
    Cs Hw6

    School: Emory

    Student and course, print out roster for a course print out courses student gets enrolloed. Given names and time first, then creates several student instances with given names. Each student instance will choose some courses by calling add Public class stu

  • 2 Pages cs notes 3
    Cs Notes 3

    School: Emory

    public class Sample cfw_ public static void indentCharLine(int i, char c, int n) cfw_ String out = "; /build up indentation using spaces for(int x = 0; x < i; x+) cfw_ out += " "; /build up characters for(int x = 0; x < n; x+) cfw_ out += c; /print out

  • 1 Page CS note 10.22
    CS Note 10.22

    School: Emory

    MIDTERM comments Ls a . name (if just type ls dont show) int, long, float, doule (drawback of float: precision) +,+,!, |,-= String S=NULL (dont even have a string, S doesnt point to anything) Cant directly convert char to string Never do minus between str

  • 3 Pages cs final exam
    Cs Final Exam

    School: Emory

    17:16 mv rename / means root, can be omitted for brevity pwd ls / ~ home man ls the unix system will not allow you to delete a directory if the directory is not empty mv old new (DNE) (rename) mv old new (move to somewhere else) cat (print the content) lp

  • 1 Page CS 170 notes
    CS 170 Notes

    School: Emory

    1. Commands fill in the Numerical int, string. . Priority of operator Variable different times expression right wrong result 2. Modify to make more efficient 3. 4. 5. program that contains errors write a java program by yourself extra credit java writing

  • 5 Pages cs 170 midterm notes
    Cs 170 Midterm Notes

    School: Emory

    public class Char01B cfw_ public static void main(String[] args) cfw_ char a; a=65 system.out.println(a); int i; i=A+1; system.out.println(i); public class Char01 cfw_ public static void main(String[] args) cfw_ char a; a = 'b'; System.out.println(a);

  • 8 Pages chapter 10 self notes
    Chapter 10 Self Notes

    School: Emory

    chapter 10 Classes: user-defined types 01:12 Instance variables, objects and user-defined types Class variable (1. outside every method 2. With keyword static ) Instance variable ( 1.inside class 2. Outside method 3. No static) (cease when it cannot be

  • 8 Pages chapter 10 Classes
    Chapter 10 Classes

    School: Emory

    chapter 10 Classes: user-defined types 01:12 Instance variables, objects and user-defined types Class variable (1. outside every method 2. With keyword static ) Instance variable ( 1.inside class 2. Outside method 3. No static) (cease when it cannot be

  • 4 Pages 12.3 notes
    12.3 Notes

    School: Emory

    12/3 notes 15% Class Recursion Special string function 25% first two parts 12:30-2:00 (150 points) multiple choice, question, answer, see previous exam, Hw: classes, Recursion: Public void a() cfw_ a (); -called recursion public int f(n) cfw_ int res=1 fo

  • 1 Page 11.9 notes
    11.9 Notes

    School: Emory

    Void.addNewPoint(double[] a) Double dist = getDist(a) pointCount+; distArray (1.0,0.0) 1 (1.0, 1.0 )

  • 2 Pages 11.2 notes
    11.2 Notes

    School: Emory

    (arrayDoubling.java) Public static void main (String [] args) cfw_ Int num = Integer.parseInt(args [0]); A = new int[1]; for (int I =0; i<num; i+) cfw_ int x =(int)(math.random() *100); If(i=a.length) cfw_ Int[] b = new int (a.length*2); For (int j = 0; j

  • 1 Page 10.29
    10.29

    School: Emory

    Main (String [ ] args) Int = Args [0]; Int n = Integer.parseInt (args [0]); Array: Int[] a Int[] a =new int [10] means 10 elements in the array If want to define initial value: A[0]=5 Look at the inclass/arrayExample.java Remember how to use args[0]

  • 6 Pages cs practice exam 1
    Cs Practice Exam 1

    School: Emory

  • 4 Pages CS170
    CS170

    School: Emory

    How is the computer developed ? Computing devices: abacus and the different engine Programmable devices: music box and mechanical loom How to encode instructions in past programmable devices Basically, we use holes in a cardboard In fact: a computer is an

  • 1 Page cs170 notes10.24
    Cs170 Notes10.24

    School: Emory

    Define class Import java.util.Scanner; Import java.oi.*; Pulic class CallFunctioncfw_ (Public static Int num; Public static String path_to_file = Define variable inside class but outside function) Public static String readString (Scanner in) cfw_ Public

  • 2 Pages CS HW3
    CS HW3

    School: Emory

    CS 170 - Section 001 H omework 3 (Due 10/29/2012 at 23:59) Honor Code: Like all work for this class, the Emory Honor Code applies. You should do your own work on all problems, unless you are explicitly instructed otherwise. If you get stuck or have questi

  • 2 Pages cs hw 5
    Cs Hw 5

    School: Emory

    CS 170 - Section 001 H omework 5 (Due 12/11/2012 at 23:59) Honor Code: Like all work for this class, the Emory Honor Code applies. You should do your own work on all problems, unless you are explicitly instructed otherwise. If you get stuck or have questi

  • 2 Pages cs hw 3 (1)
    Cs Hw 3 (1)

    School: Emory

    import java.io.*; import java.util.Scanner; public class stats cfw_ public static void main(String[] args) throws IOException cfw_ File f = new File("/home/cs170001/share/hw/grade.txt"); Scanner in=new Scanner(f); int count = 0; double sum = 0.0; double h

  • 2 Pages cs 170 java lastthree
    Cs 170 Java Lastthree

    School: Emory

    import java.util.Scanner; public class LastThree cfw_ public static void main(String[] args) cfw_ int a; int a1; Scanner in=new Scanner(System.in); System.out.print("Please type an interger: "); a = in.nextInt(); int remainder = 0; String result = "; swit

  • 2 Pages review for final
    Review For Final

    School: Emory

    Old exam Recursion class review previous questions Class+recursion 50% Old problems are in old exam, (review old exam) Whats the value of this expression, automatic conversion, double int, char, string, multiple choice, remember rules, compute int /double

  • 2 Pages review for exam 2
    Review For Exam 2

    School: Emory

    Public static int getPosition(String w) If (wordset=null) Return -1 For (int i=0; I Public static void main (String[] args) String [] a = new String [] cfw_aa, bb, aa, cc, aa, cc Review this example! Important ! Count how many times a word appears in a fi

  • 2 Pages review 2
    Review 2

    School: Emory

    Public void function 2() cfw_ Public int suit; Know static function can be called between static function Static cannot call nonstatic But nonstatic can call static Functions are only Distinguished by parameters, not return type (s.t String, void) Public

  • 7 Pages public class wordCount
    Public Class WordCount

    School: Emory

    public class wordCount cfw_ public static int numOfWord = 0; public static String function() cfw_ System.out.println("function 1"); return"1"; public static String function(int i) cfw_ System.out.println("function 2 is running"); return "hello"; public

  • 6 Pages notes 12.5
    Notes 12.5

    School: Emory

    14:41 Public class course cfw_ public String [] students; Public string name, Public course (string n) cfw_ Name=n; /you have to remember the n somewhere design the attributes by yourself string res = return Student + name; public course [] courses; - ne

  • 3 Pages notes 11.30
    Notes 11.30

    School: Emory

    14:55 a=b true a= c false because their locations different,even though content the same A.equals(c) will compare content abc.compareTo(abc) - 0 abc .compareTo(abd) - <0 abc.compareTo(aba) - >0 first character same, second character > second character, th

  • 1 Page cs170notes10.10
    Cs170notes10.10

    School: Emory

    Topic: Names of functions Public class NAME cfw_ Public static void main ()cfw_ Public void test() Public static int min(int a, intb) cfw_If (a>b) Return b; Else Return a; Public static void main (String[] args) cfw_ Scanner in = new Scanner (System.in) I

  • 2 Pages 10.26 notes
    10.26 Notes

    School: Emory

    cfw_1,2,3,4 example for array (same data type) double cfw_1.0,2.1, char cfw_a, c, e, String cfw_hello,world. If (m=1). Jan Month? m? month is the name of array; m is number of elements in the array Store all values in array (advantage of using array) Hw

Back to course listings