in Education by
Write a program in Java to find the area and perimeter of a right- angled triangle by using function argument. Take perpendicular and base as inputs. angled triangle Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Explanation: hey here is ur answer:- // Java Program to find Area of a Right Angled Triangle Example package Area; import java.util.Scanner; public class AreaOfRightTriangle { private static Scanner sc; public static void main(String[] args) { double width, height, c, Area, Perimeter; sc = new Scanner(System.in); System.out.println(“\n Please Enter the Width of a Right Angled Triangle: “); width = sc.nextDouble(); System.out.println(“\n Please Enter the Height of a Right Angled Triangle: “); height = sc.nextDouble(); Area = 0.5 * width * height; c = Math.sqrt((width * width) + (height * height)); Perimeter = width + height + c; System.out.format(“\n The Area of a Right Angled Triangle = %.2f\n”,Area); System.out.format(“\n The Other side of a Right Angled Triangle is: %.2f\n”,c); System.out.format(“\n The Perimeter of a Right Angled Triangle = %.2f\n”, Perimeter); } }

Related questions

0 votes
    Write a program in Java to find the area and perimeter of a right- angled triangle by using function ... inputs. angled triangle Select the correct answer from above options...
asked Dec 7, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to find the area and perimeter of a right- angled triangle by using function ... inputs. angled triangle Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ... USE ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length ... results in separate lines. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Write a program to find the perimeter of a triangle with sides measuring 10cm, 14 cm and 15 cm. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    show that (-3,-2),(7,4) and (1,14) are the vertices of an isosceles right angled triangle. Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    write a program code to print area and perimeter of a rectangle Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    Write the phython code for the following . Write a program to print area perimeter of rectangle. Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    write a java program to print areaof an equilateral triangle . (without using scanner) Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    perimeter of circle in c program without argument with return type Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Write a program to take a string parameter (st) of a function reversing(). Reverse the sentence in sucha way so ... None Hate All Love Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Write an algorithm and flowchart to find perimeter of rectangle and psuedocode of it’s Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write an if statement program in java to find the smallest of three given integers using min() method of the Math ... I will report. Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Write a Java program to read two strings from command line arguments and check the equality of two strings using string function. Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
...