Download presentation
Presentation is loading. Please wait.
1
Computers & Programming Languages
2
Lesson1- Objectives Understand input statements Use input statements to solve problems
3
Think .. Guess .. Discuss
4
Program 1 Program 2
5
Program 1 Program 2
6
Import the scanner class from the library import java.util.Scanner;
Steps for reading input from users Import the scanner class from the library import java.util.Scanner; Assign variable for the Scanner to read from the keyboard Scanner c1 = new Scanner (System.in); Read the input from keyboard h = c1 . nextInt(); w= c1.nextDouble();
7
Program Algorithm Start Read h,w Area = h * w Print area End
8
Activity in your book P-190
9
Book Activity Page 190 Create a java program that reads an integer number from the user then prints the square of this number?
10
Activity in your book P-191
Homework .. Please
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.