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
nikdorinn [45]
3 years ago
8

Write a java program to find the perimeter of a triangle with sides measuring 10cm, 14cm and 15 cm.

Computers and Technology
1 answer:
telo118 [61]3 years ago
8 0

Answer:

The code is shown below.

Explanation:

Consider the provide information.

We need to find the perimeter of the triangle.

The perimeter of the triangle is the sum of all sides.

So the perimeter should be: 10 cm + 14 cm + 15 cm =  39 cm

Now we will write a Java program to find the perimeter.

public class MyClass {

   public static void main(String args[]) {

     int x=10;

     int y=14;

     int z=15;

     int A=x+y+z;

     System.out.println("The perimeter of the triangle is 10 cm + 14 cm + 15 cm = " + A+" cm");

   }

}

Execute the program and you will get a result like this:

The perimeter of the triangle is 10 cm + 14 cm + 15 cm = 39 cm

Refer to the image for better understanding.

You might be interested in
Took some photos today for photography class what do you think??
Grace [21]

Answer:

good

Explanation:

8 0
3 years ago
Read 2 more answers
PLEASE HURRY! Match terms in the first column with the order descriptions in column two.
zavuch27 [327]

Megabytes gigabytes terabytes - from smallest to largest

Petabytes terabytes kilobytes - largest to smallest

Exabytes zettabytes megabytes - in no apparent order

Explanation:

5 0
3 years ago
How have computers changed overtime
sattari [20]
So in the beginning, a regular computer took up the space of an entire room it was literally that big in size. now and days computers are this small object that you can carry around with you in your bag.
4 0
3 years ago
Read 2 more answers
All of the following are methods to improve the communication of your key messages EXCEPT:
uysha [10]

Answer:

Fill the slides with images and animations

Explanation:

these will most likely distract the audience

6 0
3 years ago
Read 2 more answers
Most shop accidents are caused by?
Sindrei [870]

Answer:Most shop accidents are caused by÷

  • lifting
  • poor light
  • trips and falls
  • stress
  • dangerous materials
  • act of shop violence
  • dehydration
  • extreme tiredness
8 0
3 years ago
Other questions:
  • The __________ contains a list of all the resources owned by the library.
    7·1 answer
  • . In many instances an IP address is used to access a server rather than a URL because a URL is more difficult to set up and eas
    10·1 answer
  • When troubleshooting firewalls, you should never attempt to repeat the problem because you could do more damage. T/F
    6·1 answer
  • Provide 50000 customers with internet service, however it is only given a pool of 256 ip addresses. suggest an address allocatio
    14·1 answer
  • Choose all items that represent essential items to bring to an interview.
    9·2 answers
  • For (int j- 4; j > 0; j--)
    9·1 answer
  • HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP!!!
    12·1 answer
  • Guys, if I'm going back to 505 and it's a 7-hour flight or a 45-minute drive how do I get to 505?
    12·1 answer
  • 1
    10·1 answer
  • Tape is magnetic tape which sound ca be recorded , true or false?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!