You have a file called (rectangle.txt). The file contains three lines. Each line contains 2 sides value represent the wi
Posted: Mon May 02, 2022 12:20 pm
You have a file called (rectangle.txt). The file contains three lines. Each line contains 2 sides value represent the width and length of rectangle. Write a Java program that read all the records from file and print the area result for each rectangle line in output screen according to the following rules. Area = width * length Sample files: Input file (atom.txt) 54 25 322 The output screen contains information about the atom. 20 10 64