computer science 104

posted by .

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
3. call it from the main()

  • computer science 104 -

    What program are you using?

  • computer science 104 -

    Please check responses to your previous questions before reposting. If reposting, it would be a good idea to quote the original question (date/time, or link).

    Here's the answer to you original question:
    http://www.jiskha.com/display.cgi?id=1320286938#1320286938.1320287712

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Math

    a phone company wants to create some new area codes. Each new area code will have 3 numbers. Using the digits 1, 5, and 7 only once in each code, how many new codes can the phone company create?
  2. Computer Information

    A __________ provides the tools that a programmer uses to create software. a)compiler b) interpreter c)code d)a programming language In a way, don't all of these help a programmer to create software?
  3. Computer Science

    Hi can you guys help me with these output code, I think you need to include for loops, but I'm not sure how to use it. Example code would be helpful, thanks. Produce Output For each problem, you are to produce the code, in JAva, to …
  4. Computer science

    1.Fraction that has a numerator and a denominator. The class should have methods that can: (a) add and subtract two Fractions together and return the resulting Fraction, (b) create a duplicate of itself and return the duplicate, (c) …
  5. Computer science

    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. THANKS IN ADVANCE :)
  6. math

    a phone company wants to create some new area codes. each area code will be 3 numbers . using the digits 1,5,and 7 only once in each code, how many codes can the phone company create?
  7. computer science

    How can i create my computer science project which is to draw a game and make a file on your game which you can create?
  8. Computer science

    A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time, …
  9. 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 …
  10. 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. …

More Similar Questions