Question: in java for PC please Area of a trapezoid Write a java program that takes three decimal values a, b, and h from the command
Area of a trapezoid Write a java program that takes three decimal values a, b, and h from the command line. These values determine the bases (a and b) and height of a trapezoid. Your task is to write an expression to compute the area of the trapezoid. The formula is V (a + b) "h For example, executing your program, Java Trapezoid 5 3.5 7, should produce the following: Area is 29.75. Your program should format the coefficients and answer with two digits beyond the decimal point. We recommend you learn about System.out.printf()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
