02a_Elementary Programming-Variables

02a_Elementary Programming-Variables - Chapter 2 Elementary...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 2 Elementary Programming Variables 4/18/2014 Prepared by: Dr. Sim; Source: Liang, Pearson 1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Preparation View videos: https://www.khanacademy.org/cs/programming/va riables/p/intro-to-variables http://www.youtube.com/watch?v=dVFr5TETfjY 4/18/2014 2 Prepared by: Dr. Sim; Source: Liang, Pearson
Image of page 2
Motivations In the preceding chapter, you learned how to create, compile, and run a Java program. Starting from this chapter, you will learn how to solve practical problems programmatically. Through these problems, you will learn Java primitive data types and related subjects, such as variables, constants, data types, operators, expressions, and input and output. 4/18/2014 3 Prepared by: Dr. Sim; Source: Liang, Pearson
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Learning Outcomes Class 1 Describe Identifiers Describe Variables concepts, constants, naming conventions Describe and name various data types 4/18/2014 4 Prepared by: Dr. Sim; Source: Liang, Pearson
Image of page 4
Introducing Programming with an Example Listing 2.1 Computing the Area of a Circle This program computes the area of the circle. 4/18/2014 5 Prepared by: Dr. Sim; Source: Liang, Pearson ComputeArea Run
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon