Docsity

Study Guide for Midterm Exam - Programming I | COP 2210, Study notes of Computer Science

Partial preview of the text

Download Study Guide for Midterm Exam - Programming I | COP 2210 and more Study notes Computer Science in PDF only on Docsity!

Computer Programming I Instructor: Greg Shaw COP 2210 Study Guide for Midterm Exam 1. Given a class definition with documentattonm, be able to create objects and manipulate them by calling accessor and mutator methods 2. Be able to write the body of a simple class constructor, and accessor and mutator methods, given the method declarations and documentation and instance variable declarations 3. Be able to evaluate arithmetic expressions involving *, /, %, +, -, and parentheses, including integer division and mod operations 4. Be able to translate algebraic expressions and formulas into Java 5. Be familiar with Math class methods sgrt, abs, pow, round, min, and max 6. Be able to read user input using the showInputDialog method of the JOptionPane class 7. Know how to use the parseInt method of the: Integer class end the parseDouble method of the Double class to convert Strings to int and double, respectively 8. Be able to “play computer” or hand trace segments of code containing variable declarations, input, assignment, and output statements