Previous Lecture Complete and continue  

  Demo Program: ComputeArea.java

An example program to demonstrate variables and basic program structure. Please download the ComputeArea.java ComputeAreaModified.java

ComputeArea.java is a demo version. ComputeAreaModified.java has one more variable defined. Please work on the ComputeArea.java to add a new variable named perimeter and write appropriate code to assign circle perimeter to it and print the result out. The expected result should be similar to ComputeAreaModified.java.

Discussion
0 comments