3. Test calculatePerimeter()
3. Test calculatePerimeter()
Enter TC(1/2/3):1
Enter TC(1/2/3):2
Enter TC(1/2/3):3
OUTPUT:RHOMBUS,5.00,7.00,4.00
OUTPUT:17.50
3. Test calculatePerimeter()
OUTPUT:16.00
Question 3:
(2 marks)
Write a class named Song implements Comparable interface with the following information:
Song
Where:
5 of 6
Paper No: 1
-name:String
-duration: int
Song () default constructor
Song(name:String, duration:int) - parameterized
Zoom
+ 100%
Close