Java Lesson 4 - Using Numeric Variables
Videos |
|
Text |
|
READ text then COMPLETE assignments below.
Your browser does not support viewing this document. Click here to download the document.
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 |
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:
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.