PYTHON: 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. calc_pyramid_volume() calls the given calc_base_area() function in the calculation.

Relevant geometry equations:
Volume = base area x height x 1/3
(Watch out for integer division).

Sample output with inputs: 4.5 2.1 3.0
Volume for 4.5, 2.1, 3.0 is: 9.45

def calc_base_area(base_length, base_width):
return base_length * base_width

''' Your solution goes here '''

length = float(input())
width = float(input())
height = float(input())
print('Volume for', length, width, height, "is:", calc_pyramid_volume(length, width, height))

I've been trying all morning but I can't seem to figure this one out. I might be overthinking it, but I haven't been able to get it to work.

PYTHON: Define A Function Calc_pyramid_volume() With Parameters Base_length, Base_width, And Pyramid_height,

Answers

Answer 1

Answer:

def calc_pyramid_volume(base_length,base_width,pyramid_height):

   base_area=base_length*base_width

   volume=base_area*pyramid_height*(1/3)

   return volume

Explanation:

Here you go, fellow cs 105 student. Copy and paste it all into the box.


Related Questions

Write a program to display MPH (Miles per Hour). Create a function to calculate the MPH. Ask the user for the number of miles driven and the number of minute it took to drive that many miles. Validate that both the number of miles and the number of minutes is a positive, non-zero number. Pass both the number of miles and the number of minutes to the function, and have the function return the MPH.

Answers

Answer:

In Python:

def MPH(miles,minutes):

   mph = round(60 * miles/minutes,1)

   return mph

   

miles = float(input("Miles: "))

minutes = float(input("Minutes: "))

if miles>0 and minutes>0:

   print("MPH: ",MPH(miles,minutes))

else:

   print("Positive inputs only")

Explanation:

This defines the function

def MPH(miles,minutes):

This calculates mph rounded to 1 decimal place

   mph = round(60 * miles/minutes,1)

This returns the calculated mph

   return mph

The main begins here

This gets input for miles    

miles = float(input("Miles: "))

This gets input for minutes

minutes = float(input("Minutes: "))

If miles and minutes are positive

if miles>0 and minutes>0:

This calls the MPH function

   print("MPH: ",MPH(miles,minutes))

If otherwise, this prompts the user for positive inputs

else:

   print("Positive inputs only")

PLZZ HELP!!!
Select the correct answer.
Brian’s team has built a new application based on the client’s requirements. They will deploy this application in multiple locations on the client side. Brian is unsure about the hardware and software specifications at the client side. Which option will help him best solve this issue?
A.
creating multiple test scripts
B.
automating test scripts
C.
creating multiple test plans
D.
creating multiple test environments
E.
communicating with the development team

Answers

Answer: Option D creating muiltiple test enviroments

Explanation: I had the same question and I hope this helps ( :

The option that will help Brain best solve this issue is by creating multiple test environments.

What is the specification of software?

A software requirements specification (SRS) is known to be a type of requirement that are often written in a document that tells more about what the software can do.

Hence in the above scenario, what will help help Brain best solve this issue is by creating multiple test environments where the client can see a demonstration and be convince in getting the product.

Learn more about application from

https://brainly.com/question/24847617

Digital computers use a........ system to encode date and programs.

Answers

Answer:

Digital computers use a binary system to encode date and programs.

Write a program that computes the sum of squares for a sequence of positive whole numbers. The program asks the user to enter the starting number. Then it asks the user to enter an ending number. It computes the square for each number from the starting number to the ending number. It also calculates the sum of these squares. It displays the numbers, their squares and the sum of the squares.

Answers

Answer:

In Python:

start = int(input("Start: "))

end = int(input("End: "))

total = 0

print("Number\t Squares")

for num in range(start,end+1):

   print(num,"\t",num**2)

   total+=num**2

print("Total: ",total)

Explanation:

This gets the starting number

start = int(input("Start: "))

This gets the ending number

end = int(input("End: "))

This initializes total to 0

total = 0

This prints the header

print("Number\t Squares")

This iterates through start to end

for num in range(start,end+1):

This prints each number and its square

   print(num,"\t",num**2)

This calculates the total squares

   total+=num**2

This prints the calculated total

print("Total: ",total)

Is this correct? I say its B, but my friend says its D.

Answers

The answer is B, best of luck!

9.6 code practice edhesive

Answers

Answer: i got 50% for this I don’t know what to fix

Explanation:

Answer:

def printIt(ar):

   for row in range(len(ar)):

       for col in range(len(ar[0])):

           print(ar[row][col], end=" ")

       print("")

N= []

for r in range(4):

   N.append([])

for r in range(len(N)):

   value = 1

   for c in range(5):

       N[r].append(value)

       value = value +1

printIt(N)

print("")

newValue = 1

for r in range(len(N)):

   for c in range(len(N[0])):

       N[r][c] = newValue

   newValue = newValue + 1

printIt(N)

Explanation: Ez clap

red + blue =
Red + green =
Magenta - blue =
Yellow - green =
Cyan - blue =​

Answers

Answer:

red + blue is green

red + green is blue

"Wake up to reality! Nothing ever goes as planned in this world. The longer you live, the more you realize that in this reality only pain, suffering and futility exist.
Where is this quote from

Answers

Answer:

Naruto Shippuden and from madara uchiha

Explanation:

Answer:

Madara to Obito in Naruto Shippuden after Obito regains conscious from passing out under the rock from the third graet ninja war

Explanation:

All of the following are problem-solving steps except:
A. taking action.
B. defining the problem.
c. doing the first solution that comes to mind.
D. creating possible solutions.

Answers

Answer:

C. Doing the first solution that comes to mind.

Explanation:

Lets break this down a bit.

A is a great problem solving step, so we can mark that off.

We can do the same for B.

However, for C, I am hesitant about this one, so I wont mark it off quite yet.

Finally, for D, it is definitely a step, so I can mark that off.

You should never do the first solution that comes to mind, since you haven't done enough brainstorming about other ideas.

Hope this helps!

Your manager asks you to get details on a computer crash. What Windows Administration Tool could you use?
A. System Information
B. Performance Monitor
C. Windows Memory Diagnostic
D. Event Viewer
E. Log Viewer

Answers

The answer is "Option C" because the WMD is a freeware memory test software that works excellently. It is a comprehensive math question, and it is also quite straightforward to use.They suggest that you first test your ram with Memtest86, but you really should always test a second time with a different memory testing application to be certain.Microsoft Windows Diagnostic is the second tool, that scans your laptop's physical memory & identifies any faults. It requires a reboot to be used the system that will restart, and you'll be unable to your mouse in the Memory Diagnostic Tool.

The wrong choices can be defined as follows:

In option a, it is wrong because the data warehouse transforms data into information that may be used by an organization's decision-making process.In option b, it is wrong because by using Metrics Collector Groups and logging the data, it was able to display real-time market data as well as collect and store data.In option d, it is wrong because this is a tool used in Windows, which displays detailed information about major events that have taken place on your machine.In option e, it is wrong because messages and trace logs could be viewed and sorted using the Log Viewer.

Learn more:

Memory Diagnostic: https://brainly.com/question/13606234

Draw a data flow diagram that indicates the condition and factors that must be satisfied before a customer request for goods can be granted from a factory

Answers

Skies in here and the beach and

PLZZZ HELP
Select the correct answer.
A company utilizes a specific design methodology in the software design process. They utilize concepts of encapsulation in design. Which design methodology would they be using?
A.
structured design
B.
modular design
C.
object-oriented design
D.
rapid application development
E.
use-case design

Answers

Answer:

C is object-oriented design

PLZ HELP!!!

Select the correct answer.
Emma, the quality control manager in a software development company, asks the testing team to check whether the user interface is friendly. To which type of testing is Emma referring?
A.
usability testing
B.
data comparison
C.
validation testing
D.
stress testing
E.
destruction testing

Answers

Answer: A. Usability testing
Explanation:
Usability testing would be the correct answer because if the user interface isn't "frendly" then people won't be able to use it properly. Or if you are refering to the word friendly as looking safe, then even more so would be usability testing. Because if people don't like the fonts and styles of the user interface, they might not use it at all.

the process of preparing and setting up a software on a computer is called​

Answers

Answer:

installation

Explanation:

Installation (or setup) of a computer program (including device drivers and plugins), is the act of making the program ready for execution.

What keys on the keyboard have the ability to move the cursor around on a window?

No links and files or I report!
Will give Brainliest!​

Answers

Answer:

Press the Windows key on your keyboard. In the box that appears, type Ease of Access mouse settings and press Enter . In the Mouse Keys section, toggle the switch under Use numeric pad to move mouse around the screen to On. Press Alt + F4 to exit this menu.

what is information richness

Answers

Information Richness is the ability of information to change understanding within a time interval.

Hope it helps. Have a great day.

Brainliest would be greatly appreciated.

___________________________________________________________

#SaveTheEarth

#SpreadTheLove

- Mitsu JK


Write
algorithm to read 100 numbers
then display the largest.

Answers

Answer:

see picture

Explanation:

There is no need to store all the values, you can just keep track of the highest. Up to you to create a numbers file with 100 values.

HELP! WILL GIVE BRANLIESt!

Answers

Answer:

36:12, 36/12, 3/1

Explanation:

I’ve never solved a problem like this but mathematically this answer makes sense

who was the first inventor of computer​

Answers

Answer:

Explanation:

English mathematician and inventor Charles Babbage is credited with having conceived the first automatic digital computer. During the mid-1830s Babbage developed plans for the Analytical Engine.

Answer:

Charles Babage is the first inventor of computer.

HELP PLZZZZZZZZ!!!!!!!!!!!

Type the correct answer in the box. Spell all words correctly.
Before a new email application could be released to the public, it was released for a few days to some account holders of a website. The project team then collected feedback from this limited number of users and later made the email application available for public use. What type of testing did the project team use?
The project team used_____________testing for the email application.

Answers

Answer:

Its either business format franchise or business brokers

The process of using the new

information system and doing away

with the old system is known as

system ___.​

Answers

Answer:

The process of using the new

information system and doing away

with the old system is known as

system development

Select the correct answer.
Who takes care of the final layout of the product that meets the standards set by UX designers?
O A web developer
ОВ.
design director
OC. UX designer
OD. UI designer
Reset
Next
Hi

Answers

Answer:

UI designer

Explanation:

What information will you find in the 16-bit field in an IP datagram?

Answers

Answer: This 16-bit field defines the entire packet size in bytes, including header and data. The minimum size is 20 bytes (header without data) and the maximum is 65,535 bytes. All hosts are required to be able to reassemble datagrams of size up to 576 bytes, but most modern hosts handle much larger packets.

Explanation: Hopefully this helps you with what ever u are doing.

An information which you will find in the 16-bit field in an IP datagram is: the total length of the datagram it's attached to.

An IP address is an abbreviation of internet protocol address and it can be defined as a unique number assigned to a computer or other network devices such as routers, switches, etc., in order to differentiate each device from one another in an active network system. Thus, an IP address is typically used to uniquely identify each computer or network device connected to the internet or an interconnected network.

In Computer networking, IP address are classified into two (2) main categories and these are;

Local (internal) IP address.Global (external) IP address.

An IP datagram can be defined as the standard format of data that an internet protocol (IP) recognizes.

Generally, an IP datagram comprises two (2) main components and these include:

1. The header: it is used for sending messages on a computer to the protocol in the same layer of a destination (recipient) computer.

2. The data: this is a set of information that is transmitted from one computer to another over an interconnected network.

On a related note, an IP datagram contain three (3) fields which are typically used for the transmission of data;

Header length.IP version.Total length.

The Total length is a field that is used to specify the total length of an IP datagram and it is typically 16-bits in size.

In conclusion, an information which is found in the 16-bit field in an IP datagram is the total length of the datagram it's attached to.

Find more information here: https://brainly.com/question/19204809

Click this link to view O*NET’s Work Contexts section for Librarians.

It describes the physical and social elements common to this work. Note that common contexts are listed toward the top, and less common contexts are listed toward the bottom. According to O*NET, what are common work contexts for Librarians? Check all that apply.

face-to-face discussions
pace determined by speed of equipment
cramped work space, awkward positions
indoors, environmentally controlled
telephone and electronic mail
freedom to make decisions

Answers

Answer:

1. b,d,f  2. a,b,c,f  3. b,c,e,f  4. a,c  5. a,b,c,e  6. a,b,c

7. d,e,f  8. a,b,e,f   9. a,c,d  10. b,d,f  11. c,e,f  12. a,c,e,f

Explanation:

all the answers to Finance Workplaces and Tasks Assignment 100%

Answer:

1, 4, 5, 6

Explanation:

the only options that are on the website

NO LINKS
Do you need to pay monthly to stream on Twitch?

Answers

I think so yeah $$$$

5) Write a program to read text to end-of-file, and print a count of word lengths, i.e. the total number of words of length 1 which occurred, the number of length 2, and so on. Define a word to be a sequence of alphabetic characters. You should allow for word lengths up to 25 letters. A typical output should be like this: length 1 : 10 occurrences length 2 : 19 occurrences length 3 : 127 occurrences length 4 : 0 occurrences length 5 : 18 occurrences

Answers

Answer:

Explanation:

The following code is written in Python. It is a function that takes in the name of the file to be read and the size of the word. Then the function reads the file, removes whitespace and commas, splits the text into words, and scans the words for all the words that have the same length as the number passed. It counts all those words and prints out the number of occurrences of words of that length.

def countOccurrences(file_name, word_size):

   f = open(file_name, 'r')

   text = f.read()

   text = text.replace(',', '')

   split_text = text.split(' ')

   occurrences = 0

   for word in split_text:

       if len(word) == word_size:

           occurrences += 1

   print("Length 1: " + str(occurrences) + " occurrences")

HELPPPPPP How is does technology impact the career of your choice? Write 5-6 sentences about how technology impacts the career of your choice.

Answers

Answer:

Explanation:

Summary. Technology has had a dramatic impact on the nature of work itself, individual applicants and employees, employers, and career counselors. It has changed the nature of work and the types of jobs that people do today. It has altered the knowledge and skills individuals need to be effective workers.

Let's talk about this cryptocurrency: Vechain (VET)​

Answers

Answer:

This is gonna be interesting

An array stores data using multiple variable names.

True

False

Answers

Answer: False

Explanation:

It is false that an array stores data using multiple variable names, as it may not as, for starters, an Array cannot store multiple types of variable values. A container object that holds a fixed number of single-type values is known as an array.

What is an array?

A data structure that stores a collection of elements of the same data type under a single variable name is known as an array.

The index number, which is an integer value that represents the element's position within the array, is used to access it.

In other words, an array stores multiple values of the same data type in contiguous memory locations using a single variable name.

For starters, we cannot store multiple types of variable values in an Array. An array is a container object that holds a fixed number of single-type values.

Thus, the given statement is false.

For more details regarding an array, visit:

https://brainly.com/question/19570024

#SPJ3

HELPPPPP PLZZZZZZZZZZZZZZZ!!!!!!!!


Select the correct answer.
What type of diagram does the following image depict?


A.
class diagram
B.
deployment diagram
C.
activity diagram
D.
sequence diagram
E.
use case diagram

Answers

Answer:

A

Explanation:

A hope this helped ;)
Other Questions
Cambridge slim ate 11 sausages in the first 6 minutes of a high stakes eating contest assuming that he conuitnes at the same pace how many sausgaes would he have eaten by the end of the 15 minute contest What happens when you add two numbers that are opposites?Example:[tex] - 33 + - 37[/tex] Consider a car rental for $42, plus $0.22 per mile driven. Which statements are correct? A) This situation is modeled by a linear function. B) If the car is driven 200 miles, the rental will cost $86. C) If the car is driven 500 miles, the rental will cost $142. D) This situation can be modeled by the function f(x) = 0.22x + 42. E) This situation can be modeled by the function f(x) = (0.22)X + 42. who ever answer the question first CORRECTLY i will give them brainliest Where does 8\10 go on a splited number line Need help with this question, i'll give branliest. 3 pizzas for $24.99_______________ cost of each pizza Write about a problem-solving strategy that youve used at school or at home and describe the outcome. If the Math Olympiad Club consists of 13 students, how many different teams of 5 students can be formed for competitions? Michelle and Natasha each had to repair their new iPhones. The initial cost of each repair is$100. Michelle and Natasha each have two discount coupons. Each of them uses both coupons toward the cost of the repair. One coupon is for$25off the repaircost and the other coupon is for 20%off the repair cost.Michelle and Natasha use their coupons in a different order, as shown below.Michelle uses the20%off the repair cost coupon first. She then uses the$25off the repair cost coupon on the remaining balance.Natasha uses the$25off the repair cost coupon first. She then uses the 20%off the repair cost coupon on the remaining balance.Who paid the least amount of money for the iPhone repair? What kind of technological advances did Nazis have during WW2? what is the answer????? 6313Choose the equation that best describes the image Match each of the following with the correct slope and y-intercept.M1(3) - 1)V(0, -5) Bryson is updating his computer. The amount oftime required for a complete update is 48 minutes. Theupdate is currently 40% complete. How much longer will ittake for the update to be complete? How does the setting of the afterlife in "Sayadio in Spirit-land" compare to that in "Orpheus and Eurydice"? They are both wild, riotous places. They are both places of torture and violence. They are both dull and dark places. They are both peaceful, pleasant places. Simplify the following expression by combining like terms: *-2g - 8 +5g - 5 BRAINLIEST PLZ JACOB HELP MEE A balloon is filled with oxygen gas with a volume of 8.70 ML and a temperature of 318.2 K if the temperature increases to 337.8 K what would the new volume be A report You have recently started working part-time in ascience museum. The museum directorwants to attract more teenagers to themuseum and has asked you to write areport making suggestions. Thinkabout: leaflets, reduced admissions,audio-visual exhibits (140-190 words).HELP ME