1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Maurinko [17]
3 years ago
11

Write an application that reads the lengths of the sides of a triangle from the user. compute the area of the triangle using her

on's formula (below), in which s represents half of the perimeter of the triangle and a, b, and c represent the lengths of the three sides. print the area rounded to three decimal places.
Computers and Technology
1 answer:
zlopas [31]3 years ago
3 0

Here you go,


import java.util.Scanner;

import java.util.Random;

public class OrderCalculator{


public static void main(String[] args){  


float x, y, z, semi, area;

Scanner in = new Scanner(System.in);

System.out.print("Enter the 3 sides: ");

x = in.nextFloat();

y = in.nextFloat();

z = in.nextFloat();

semi = (float) ((x + y + z) / 2.0);

area = (float) Math.sqrt(semi * (semi - x) * (semi - y) * (semi - z));

System.out.printf("The area is: %.3f\n", area);


}

}

You might be interested in
One reason to buy a home instead of rent a home is:
vazorg [7]
A is the correct Answer

7 0
3 years ago
A highly agitated client paces the unit and states, "I could buy and sell this place." The client’s mood fluctuates from fits of
stira [4]

Answer:

"Agitated and pacing. Exhibiting grandiosity. Mood labile."

Explanation:

The extremely frustrated user paces that system and remarks that he can purchase and trade this spot. His behavior vacillate through laughing sessions to rage outbursts. So the Pacing and Agitated. Displaying grandiosity. Behavior labile becomes the best reliable documentation of the actions of this corporation

8 0
3 years ago
Coordinates that measure how far a point is from the origin are _______________. A. Relative coordinates B. Absolute coordinates
S_A_V [24]
The correct answer is B
4 0
3 years ago
Read 2 more answers
11.
Svetllana [295]
11. is battle of the bulge
12. rationing
13. trade embargo act
14. germany won the battle is not true
15. force jews to wear stars sown to their clothing to be caught without was punishable by death
3 0
3 years ago
Sets of keywords and symbols that help refine internet search requests are called _____. boolean operators microsoft operators a
Kay [80]
Boolean operators, it uses the word "and","or" and "not" with keywords to control the search. For example if you search for health and food, the search engine will give a narrow search focusing on the two keywords. Using "or" with keywords will give much broader results. Using a "not" will remove one keyword from the search, ex. windy not rainy will give results of the keyword windy only. An asterisk on the other hand, gives wider results with variations.
3 0
2 years ago
Other questions:
  • What does bam file stand for computer terms?
    9·1 answer
  • Although the original BBS system was simple, it increased people's ability to communicate
    14·1 answer
  • A security administrator is required to submit a new csr to a ca. what is the first step?
    11·1 answer
  • How to know if somebody else is listening my conversations by cellphone?
    13·1 answer
  • What element of a timeline helps to mark progress of the project?
    15·1 answer
  • What features are provided by most GUIs?
    7·1 answer
  • What is the purpose of a mail merge field.
    14·1 answer
  • . Suppose that name is a variable of type string. Write the input statement to read and store the input Brenda Clinton in name
    5·1 answer
  • Why is data processing done in computer?​
    14·1 answer
  • whenever I try to make an account it says it can't sign me up at this time or something- can you help?-
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!