The document provides examples of valid Java identifiers and common data types that can be used. It then presents several math word problems involving calculations for gas mileage of a car, perimeter and area of basic shapes like triangles, circles, and rectangles. It lists the key variables needed to set up and solve each type of problem.
1 of 11
Download to read offline
More Related Content
Variables
1. Welcome 1. Name one of the rules for creating a valid Java identifier Mr. Daniels
2. Valid Identifiers must start with a letter consist of only letters and numbers ; no symbols, punctuation or spaces cannot use reserved words use capitals for each new word in a phrase
3. Common Data Types points = scan.nextInt(); price = scan.nextDouble(); sentence = scan.nextLine(); letter = scan.next().charAt(0);
4. 2 Gas Mileage A car's gas tank holds 23 gallons and averages 15 miles per gallon. How far can the car go on one tank of gas?
5. 2 Gas Mileage We need 3 variables How much gasoline the tank can hold Miles per gallon Distance on a tank
6. 3 Perimeter of a Triangle 4 variables Leg A Leg B Leg C A B C
7. 4 Area of a Circle 3 variables pi distance from the edge to the center