# Computer science

posted by .

THIS IS C PROGRAMMING
I NEED TO CREATE A METHOD!

Create a method areaOfaTrapeziod when given a, b, and h (all doubles), will return the area (double) of a trapezoid. Use the equation pictured below.

• Computer science -

a typical double method looks like this:

double areaOfTrapezoid(double A, double B, double H){
double area;
return area;
}

## Similar Questions

1. ### computer science 104

Create a method areaOfaTrapeziod when given a, b, and h (all doubles), will return the area (double) of a trapezoid. Use the equation pictured below In the code, i should 1. Create the prototype for the method 2. create the method …
2. ### programming

create a program that prompts the user for a number the returns the value on the main method after validation.Create a method that promts the user for input?
3. ### programming

Pseudocode - Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number and to a method that cubes the number. …
4. ### programming

Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number and to a method that cubes the number. The program …
5. ### programming pseudocode

Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number and to a method that cubes the number. The program …
6. ### Programming

Thanks for the help on my last problem! I have one more thing I need help with... Create the logic for a program that calculates and displays the amount of money you would have if you invested \$3000 at 2.65 percent interest for one …
7. ### programming

create the logic for a program that calculates and displays the amount of money you would have if you invested \$5000 at 2 percent simple interest for one year. create a separate method to do the calculation and return the result to …
8. ### Programming logic and design

Using python write a program that does the following: •Create the logic for a program that calculates and displays the amount of money you would have if you invested \$3000 at 2.65 percent interest for one year. •Create a separate …
9. ### Computer Science

Create a class called Shapes that has a private int field named radius and the proper get- and set- methods (according to our Java coding standards). Create a constructor that takes an integer as a parameter to initialize the radius. …
10. ### computer programming

Create the psuedocode for an application class named Monogram. Its main() method holds three variables that hold your first, middle, and last initials, respectively. Create a method to which you pass the three initials and that displays …

More Similar Questions