Page 1 of 1

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:24 pm
by answerhappygod
You Have A File Called Rectangle Txt The File Contains Three Lines Each Line Contains 2 Sides Value Represent The Wi 1
You Have A File Called Rectangle Txt The File Contains Three Lines Each Line Contains 2 Sides Value Represent The Wi 1 (72.51 KiB) Viewed 32 times
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 32 2 The output screen contains information about the atom. 20 10 64