Deliverables There is one deliverable for this assignment Cubes.java Homework Setup . I Open a text editor A program lik
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Deliverables There is one deliverable for this assignment Cubes.java Homework Setup . I Open a text editor A program lik
Deliverables There is one deliverable for this assignment Cubes.java Homework Setup . I Open a text editor A program like Sublime. Do not use Word or Notepad. • Paste the text below into the editor window public class Cubes public static void main(String[] args) ) 3 Save the file as Cubes.java Specification . The program should print the numbers from 1 to 9 along with their cubes
Specification • The program should print the numbers from 1 to 9 along with their cubes Suggestions Copy Squares.java from the Class Notes Change the loop header • Change the printin statement . I Testing Compile the source code javac Cubes.java
Run the object file java Cubes You should see something like . 1 cubed = 1 2 cubed = 8 3 cubed 27 4 cubed 64 5 cubed = 125 6 cubed = 216 7 cubed = 343 8 cubed = 512 9 cubed = 729