subject

Import java. util. Scanner; public class TriangleArea {
public static void main(String[] args) {
Scanner scnr = new Scanner(System. in);

Triangle triangle1 = new Triangle();
Triangle triangle2 = new Triangle();

// TODO: Read and set base and height for triangle1 (use setBase() and setHeight())

// TODO: Read and set base and height for triangle2 (use setBase() and setHeight())

// TODO: Determine larger triangle (use getArea())

System. out. println("Triangle with larger area:");
// TODO: Output larger triangle's info (use printInfo())

}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
What can tanya do now to start preparing for the college and scholarship application process? think about her grades, activities in which she can get involved, possible part-time jobs at which she can work, and standardized tests she can take. (10 points) apex
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
For which utilities, if any, does the landlord pay?
Answers: 2
You know the right answer?
Import java. util. Scanner; public class TriangleArea {
public static void main(String[] arg...
Questions
question
History, 19.02.2021 23:40
question
Spanish, 19.02.2021 23:40
question
Mathematics, 19.02.2021 23:40
question
Advanced Placement (AP), 19.02.2021 23:40
question
Mathematics, 19.02.2021 23:40
question
Medicine, 19.02.2021 23:40
Questions on the website: 13722363