Mr. Truncale - Robert E. Lee High School
  • Home
  • Digital Media
    • HTML
  • Video Game Design
  • Comp. Programming I
  • Comp. Programming II
  • AP Computer Science
  • 3D Printing
  • Teacher Resources
  • Contact Me

Java Lesson 4 - Using Numeric Variables

Videos


Text


Download as PDF
READ text then COMPLETE assignments below.

Assignments


Exercises on Lesson 4

Download and complete exercises for Lesson 4.  Save and upload file here.
bp_ex_4.docx
File Size: 14 kb
File Type: docx
Download File

    Max file size: 20MB
Submit

Project - Cheating on Your Arithmetic Assignment

Create a new project called ArithmeticAssignment with a class called Tester that will calculate
and print the results of the following arithmetic problems:
79 + 3 * (4 + 82 –68) – 7 +19
(179 +21 +10) / 7 + 181
10389 * 56 * 11 + 2246
The printout should look like the following:
79 + 3 * (4 + 82 - 68) - 7 + 19 = 145
(179 + 21 + 10) / 7 + 181 = 211
10389 * 56 * 11 + 2246 = 6401870
Apply the length and substring methods to these Strings to produce the above printout.
Submit
Robert E. Lee High School
1809 Market
Baytown, TX 77520
281-420-4535
digital media | computer programming I and II | BIM
ap computer science | architectural cad | video game design
national technical honor society | contact me