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
Viktor [21]
3 years ago
7

Define a function calc_pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a

pyramid with a rectangular base. Sample output with inputs: 4.5 2.1 3.0 Volume for 4.5, 2.1, 3.0 is: 9.45 Relevant geometry equations: Volume
Computers and Technology
1 answer:
Galina-37 [17]3 years ago
4 0

Answer:

Explanation:

The following is written in Java. It takes in the three values as parameters and then uses the formula for calculating the volume of a pyramid. Finally, returning the volume to the user. A test case has been provided in the main function and the output can be seen in the attached picture below.

class Brainly {

   public static void main(String[] args) {

       double output = calc_pyramid_volume(4.5, 2.1, 3.0);

       System.out.println(output);

   }

   public static double calc_pyramid_volume(double base_length, double base_width, double pyramid_height) {

       double volume = (base_length * base_width * pyramid_height) / 3;

       return volume;

   }

}

You might be interested in
________ is a programming language invented by netscape used to control the objects on an html page and handle interactions with
spayn [35]
The answer is JavaScript
5 0
3 years ago
¿Cuál es la función de un engranaje?
Oksana_A [137]

Answer:

Question:What is the function of a gear?

<u>spanish </u>

La función básica del engranaje es transmitir el movimiento giratorio, así como la potencia de un eje a otro. El engranaje o rueda dentada es una pieza giratoria de la máquina que tiene dientes cortados. Aquí hay algunos tipos de engranajes: Tipos de engranajes. Respuesta corta: ejes paralelos / engranaje recto, engranaje helicoidal, cremallera, engranaje interno.

Espero que haya sido útil. ¡Gracias!

<u>English</u>

The basic function of gear is to transmit rotary motion as well as power from one shaft to another. gear or cogwheel is a rotating machine part having cut teeth. Here are some types of gears: Types of gears. Short answer: Parallel Axes / Spur Gear, Helical Gear, Gear Rack, Internal Gear.

Hope that was helpful.Thank you!!!

6 0
4 years ago
A friend asks you for help writing a computer program to calculate the square yards of carpet needed for a dorm room. The statem
quester [9]

Answer:

A friend asks you for help writing a computer program to calculate the square yards of carpet needed for a dorm room. The statement "the living room floor is rectangular" is an example of a(n) <u>assumption</u> . The length and width of the room are examples of <u>known</u> information, which you can obtain as <u>input</u> from the user.

Explanation:

The given question is a Problem statement.

Problem statement can be defined as the brief description of an issue that needs to be focused in order to reach the require goal.

So the parts that a problem statement may have include:

  • facts and figures (assumptions), that are known in the given scenario.
  • data required (solution)to be calculated by focusing on present assumptions (given as input by the user).

So the attributes to be filled into blanks of given statement are assumption, known, input.

i hope it will help you!

4 0
4 years ago
What is jcl language on the mainframe?
Pavel [41]
Job Control Language on the mainframe is the name for scripting language used on IBM mainframe operating system to instruct how to start a subsystem.
5 0
4 years ago
Quiz
Dmitrij [34]

Answer: False

Explanation: It is sent to committee then senate.

4 0
3 years ago
Other questions:
  • Is a software program that allows users to access the world wide web
    10·1 answer
  • Your health insurance company gives you a discount if you wear a fitness-tracking bracelet. After wearing it for a few months, y
    5·1 answer
  • Which of these is not a potential cause of data loss?
    7·2 answers
  • failure of the _ cylinder will often result in sudden unexpected loss of the ability to stop the vehicle
    10·1 answer
  • The main workspace of a Windows computer is called the______
    5·1 answer
  • अस्स्मन्चचरे ------------------- दृश्यते |
    8·1 answer
  • Which question is MOST important for an office to consider when upgrading to new software
    5·1 answer
  • I love this an this a a good app ❤️❤️❤️​
    5·2 answers
  • What is 4x+2x(-3-3) thanku
    11·2 answers
  • Which is the best software application to be used by a hotel manager​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!