Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 1.3 Expressions and Assignment Statements

Description

In this lesson, students learn how to use arithmetic expressions in Java. Arithmetic expressions allow the use of mathematical operations within Java. Students will also learn about the modulus operator (%) and how it is evaluated. Such expressions can be used for basic math and even more complex algorithms. This lesson corresponds with AP Computer Science A topic 1.3.


Objective

Students will be able to:

  • evaluate arithmetic expressions in a program code
  • use the modulus operator (%)