Description
In this course, you will learn:
- Ethical computing
- Basic computer hardware
- Number representations
- Java program structure
- Simple input / output
- Data types and variables
- Assignment statements
- Primitive types and reference types
- Arithmetic operators
- Math library
- String class and methods
- Integer and Double classes
- Boolean type
- Relational operators
- Selection statements
- Short-circuit operation
- DeMorgan's laws
Syllabus:
1. Unit Name or Timeframe: Computer Programming Fundamentals (2 weeks)
- Discussion of the objectives of good programmers (correctness, design, style, efficiency)
- Problem-solving and computer science
- The ethics of computer use, social networking, and engineering for the greater good.
- Computer hardware and memory
- Number representations and conversions
- Overflow and underflow
- Introduction to Java IDE and debugger (DrJava, IntelliJ)
- Building a first Java class and simple program
- The main method
- I/O in Java
2. Unit Name or Timeframe: Primitive data types, variables, arithmetic (2 weeks)
- Data types and variables
- Constants
- ASCII and Unicode representation of characters
- Assignment
- Primitive types vs reference types
- Binary arithmetic operators
- Static methods and the Math class
- String class and functions
- Wrapper classes for integer and double type
3. Unit Name or Timeframe: Selection (2 weeks)
- Boolean type
- Relational operators
- Selection statements (if, else, else-if, switch)
- Short-circuit execution
- Code blocks
- Dangling else
- Compound relational operators and truth tables
- DeMorgan’s Laws