Page 1 of 1

PLEASE BE AS QUICK AS POSSIBLE THIS IS DUE IN AN HOUR USE JAVA CODE You have a file called (Triangle.txt). The file cont

Posted: Mon May 02, 2022 12:39 pm
by answerhappygod
PLEASE BE AS QUICK AS POSSIBLE THIS IS DUE IN AN HOUR
USE JAVA CODE
You have a file called (Triangle.txt). The file contains three
lines. Each line contains 2 sides value represent the height and
base of triangle. Write a Java program that read all the records
from file and print the area result for each triangle line in
output screen according to the following rules.
Area = ½ X base X height
Sample files:
Input file (Triangle.txt)
9 2
6 12
16 2
The output screen contains information about the ellipse.
8
36
16
Please Be As Quick As Possible This Is Due In An Hour Use Java Code You Have A File Called Triangle Txt The File Cont 1
Please Be As Quick As Possible This Is Due In An Hour Use Java Code You Have A File Called Triangle Txt The File Cont 1 (32.96 KiB) Viewed 44 times
You have a file called (Triangle.txt). The file contains three lines. Each line contains 2 sides value represent the height and base of triangle. Write a Java program that read all the records from file and print the area result for each triangle line in output screen according to the following rules. Area = 1/2 X base X height Sample files: Input file (Triangle.txt) 92 6 12 16 2 The output screen contains information about the ellipse. 8 36 16