Lab 3 Kien Truc Basic
Lab 3 Kien Truc Basic
1
Write a Rectangle class to represent rectangles, with two data fields (width, height) and four methods
(input data, display data, calculate and return area, calculate and return perimeter). Write another class
to test all methods of the Rectangle class.
4.
Write java program to manage fractions with addition, subtraction, multiplication and division.