Assignment: #PiDay | Due: 03/14/02019 | Extra Credit Points: 3.14 ÷ 2 |
Modify a Java application that prints the value of the mathematical constant Pi.
Copy the PiDay.java program and do the following:
- implement the abstract methods that are declared in abstract class Number;
- implement the two methods marked "TBI (To Be Implemented)" in PiDay.java;
- answer the three questions/exercises presented in the program's file comment block.
The output of your program must match the following.
byteValue(): 3 shortValue(): 3 intValue(): 3 longValue(): 4 floatValue(): 3.1415927 doubleValue(): 3.141592653589793