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
denis23 [38]
3 years ago
6

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

id with a rectangular base.
Computers and Technology
2 answers:
Brut [27]3 years ago
3 0

Answer:

Define a function pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyramid with a rectangular base.

Explanation:

thats all you said

lesya692 [45]3 years ago
3 0

In python 3.8:

def pyramid_volume(base_length, base_width, pyramid_height):

   return round((base_length*base_width*pyramid_height)/3,2)

print(pyramid_volume(1,1,2))

I used the round function to round the volume to 2 decimal places. You can change this if you need more or less precision. I hope this helps!

You might be interested in
Which component, located on the motherboard, carries out all the instructions provided by computer programs? ram?
Blababa [14]
<span>The Chipset is the component located on the motherboard, this carries out all the instructions provided by computer programs. It is the integrated circuit that manages all the data flow between processor and memory. It usually works with microprocessors and plays a crucial role in determining system performance.</span>
6 0
3 years ago
What are types of computer viruses
NemiM [27]

Answer:

Resident Virus. Resident viruses set up shop in your RAM and meddle with your system operations. ...

Multipartite Virus. This virus infects the entire system. ...

Direct Action. ...

Browser Hijacker. ...

Overwrite Virus. ...

Web Scripting Virus. ...

File Infector. ...

Network Virus

Explanation:

6 0
3 years ago
Read 2 more answers
Self-contained sequences of actions to be performed are: (1 point)
beks73 [17]
These are functions.
6 0
3 years ago
Read 2 more answers
Explain what the problems with the implementation of the function are, and show a way to fix them.// return true if two C string
Nataly [62]

Answer:

The code is not dereferencing the pointers. You have to place an asterisk in front of the pointer to read the value the pointer points to.

Explanation:

So "if (str1 != str2)" must be "if (*str1 != *str2)".

likewise:

   while (*str1 != 0 && *str2 != 0)

and

     result = (*str1 == *str2);

7 0
3 years ago
Suppose a computer has 16-bit instructions. The instruction set consists of 32 different operations. All instructions have an op
Kazeer [188]

Answer:

2^7= 128

Explanation:

An instruction format characterizes the diverse part of a guidance. The fundamental segments of an instruction are opcode and operands. Here are the various terms identified with guidance design:  Instruction set size tells the absolute number of guidelines characterized in the processor.  Opcode size is the quantity of bits involved by the opcode which is determined by taking log of guidance set size.  Operand size is the quantity of bits involved by the operand.  Guidance size is determined as total of bits involved by opcode and operands.

6 0
4 years ago
Other questions:
  • Students recently created a Gaming Club at their school. On Friday every week, students bring in their gaming consoles (Xbox, Pl
    7·2 answers
  • When typing in a cell, hitting Tab will bring which result?
    12·2 answers
  • COMPUTER FUNDIMENTAL HELP 20 POINTS!!!
    5·1 answer
  • An
    9·1 answer
  • Define an organizational unit in your own words.
    11·1 answer
  • What is typescript can you please give me a description of what it is
    13·1 answer
  • When a virtual machine is
    9·1 answer
  • Which line is most likely an error? A-“hello” B-hello C-“100” D-100
    6·2 answers
  • The introduction of an academic paper must include a:
    12·2 answers
  • It is a type of web page that allows you to share your ideas experiences and beliefs
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!