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

What is computer software?​

Answers

Answer:

Software is a collection of instructions and data that tell a computer how to work. This is in contrast to hardware, from which the system is built and actually performs the work.

Explanation:

HOPE IT HELP

Answer:

software is the collection of programs which makes computer work.

Which of the following is NOT a benefit of pair-programming?
Code takes 15% less time to write than with a solo programmer.
Programs have fewer bugs than if written by a single programmer.
Code solutions are more creative.
o o
Bias in programs is reduced.

Answers

Answer:

Programs have fewer bugs than if written by a single programmer.

Explanation:

this is what I think personally

Coupled with risk reduction and knowledge sharing within an organization, pair programming is a key technique for producing faster, higher quality code. Thus, option B is correct.

What is the role pair programmer in the programs?

Two programmers collaborate at the same workstation while using the agile software development technique known as pair programming.

The observer or navigator reads each line of code as it is entered while the driver, who is also the code writer, types it in.

Pair programming is a method where two programmers collaborate on the same block of code while using just one computer.

This introduces the idea of pair programming roles, where one performs the function of the driver (writing code) and the other that of the navigator (ensuring the accuracy of the code).

Therefore, Programs have fewer bugs than if written by a single programmer.

Learn more about pair programmer here:

https://brainly.com/question/14190382

#SPJ2

what is HDLC flow control?​

Answers

HDLC is a synchronous Data Link layer bit-oriented protocol developed by the International Organization for Standardization (ISO).

it's urgent. I will mark you brainliest. is it legal to share your internet connection with your neighbors? explain in three paragraphs.​

Answers

Answer:

It mostly depends (IF YOU ARE COPY-PASTING GO TO EXPLANATION)

Explanation:

It mostly depends, are any of your passwords alike? If so, that can be dangerous, even if you "trust" your neighbor. Your computer could also be infected with malware. The neighbor could make security mistakes, etc. Really think about how much you can trust them.

It can be hard to give them updates on new security such as new passwords. Also, not everyone is completely aware of why you would put the amount of security you do, (more or less than they think should be there) and you could get complaints from them on YOUR security.

It would be best to just politely decline, or get a guest network. Guest networks are safer, but some complications are still there, such as the ones in my second paragraph. So, safest and best option for both parties would be to decline.

what is the full form of MHz​

Answers

Answer:

megahertz

Explanation:

The megahertz, abbreviated MHz, is a unit of alternating current (AC) or electromagnetic (EM) wave frequency equal to one million hertz (1,000,000 Hz). The megahertz is commonly used to express microprocessor clock speed.

OSI layer for HDLC??​

Answers

Answer:

HDLC is one of the most commonly used internet protocols (IP) in what is Layer 2 of the industry communication reference model called Open Systems Interconnection (OSI).

Explanation:

Write a program that reads numbers from the user until a blank line is entered. Your
program should display the average of all of the values entered by the user. Then
the program should display all of the below average values, followed by all of the
average values (if any), followed by all of the above average values. An appropriate
label should be displayed before each list of values.

Answers

Answer:

nums = []

while True:

   in = input()

   if in:

       nums.append(in)

   else:

       break

if nums:

   avg = sum(nums) / len(nums)

   for i in range(len(nums)):

       if nums[i] == avg:

           print(f"index: {i+1}")

           print(nums[i])

else:

   print(-1)  # if there aren't any values in nums

Explanation:

Assuming that you are coding in Python 3x. The last 'else' statement is an edge case that you might want to consider, I don't know what you want to put there, but I'm just going to leave it as -1.

Choose the comparison operator that will create a true statement in scratch

Answers

Answer:

the first one

Explanation:

think about it. 60 equals 60! this is true!

Answer:

A is correct

Explanation:

i took this same test

Question 3 of 15
Which term describes a computer program's ability to run, receive feedback to
rewrite, and improve its own algorithms for the future?
A. Machine learning
B. Operator with variables
C. Algorithmic bias
D. If-then programming

Answers

A. Machine learning

Machine learning is the study of computer algorithms that can be automatically modified for improvement through experience and the use of data.

F
Х
Which is a feature of fairy tales in "A Modern Cinderella"?
O A. It begins with "Once Upon a Time."
O B. It includes pictures.
O C. It has a humorous tone.
Is it a b c or d that’s what I’m loo

Answers

Answer:

everything

A.

B.

C.

NOOO.

What refers to the images of characters you use in a game?

Answers

Answer:

the character image in the game

which of the following statements describes the general idea of an assistive media​

Pasagot po plssss

Answers

Answer:

What statmentssssssssss

The general idea of assistive media is described by C) Technology or tools designed to aid individuals with disabilities in accessing information and interacting with the world.

We have,

Assistive media refers to various technologies or tools that are specifically developed to assist people with disabilities.

These tools are designed to enhance their ability to access information, communicate effectively, and interact with their environment.

Assistive media can take many forms, such as screen readers for individuals with visual impairments, communication devices for those with speech disabilities, adaptive keyboards or switches for individuals with motor impairments, and more.

The main purpose of assistive media is to level the playing field and provide individuals with disabilities the means to participate fully in various aspects of life, including education, communication, work, and social interactions.

Thus,

The general idea of assistive media is described by C) Technology or tools designed to aid individuals with disabilities in accessing information and interacting with the world.

Learn more about assistive media here:

https://brainly.com/question/29891210

#SPJ3

The complete question:

Which of the following best describes the concept of assistive media?

A) A form of social media that helps people connect with friends and family.

B) A type of entertainment media, such as movies or music.

C) Technology or tools designed to aid individuals with disabilities in accessing information and interacting with the world.

D) Media coverage of events and news happening globally.

if the middle number is lesser than the candidates then u eliminate the ___ half of the data​

Answers

Answer:

kimochisiwiwie282828

What is nanotechnology?​

Answers

Answer:

Nanotechnology is a field of research and innovation concerned with building 'things' - generally, materials and devices - on the scale of atoms and molecules.

Explanation:

The diameter of a human hair is, on average, 80,000 nanometres.A nanometre is one-billionth of a metre – ten times the diameter of a hydrogen atom.

Answer:

Nanotechnology are the areas of science and engineering where phenomena that take place at dimensions in the nanometre scale are utilised in the design, characterisation, production and application of materials, structures, devices and systems.

What is another term for the notes that a reader can add to text in a word-
processing document?
Columns
Formatting
Font
Comments

Answers

Another term for the notes that a reader can add to the text in a word-processing document is known as Comments. Thus, the correct option for this question is D.

What are the characteristics of word documents?

The characteristics of word documents are as follows:

It allows a user to construct professional write-ups.It has editing and formatting tools that modify the existing documents.It authorizes the user to insert charts, tables, diagrams, etc. within the document to make it more attractive.

According to the context of this question, a comment is another term that represents the notes a reader can normally insert within the existing document in order to modify or highlight the required text in the document.

Therefore, a comment is another term for the notes that a reader can add to the text in a word-processing document. Thus, the correct option for this question is D.

To learn more about word-processing documents, refer to the link:

https://brainly.com/question/1596648

#SPJ1

Identify ways to safeguard computer against each of the following risk viruses, worms, Trojan horses, botnets, denial of service attacks, back doors and spoofing​

Answers

Answer:

First, never download software or videos from untrusted websites, as they can hide malicious code inside it. Never turn off the anti virus, anti virus only purpose is to block malware or viruses if you disabled it and don't know what you are doing high chance there will be a back door created in your PC. Try a antivirus that is well known and has good reputation on protecting a PC, note that good looking GUI on an antivirus doesn't tell it is always good, it's not the GUI you care about its the whole protecting your PC.

Identify uses of embedded computers?

Answers

Answer:

Explanation:

Applications that embedded computers are deployed for range from Industrial Automation and Control, Intelligent Transportation, Medical Imaging, Digital Signage, to unmanned military & defence – to name but a few. There numerous applications where a Embedded Computer can be deployed

How to write a C++ program that allows a user to enter their rating of the three movies in the Dark Knight Trilogy and then display each rating entered, the highest rating, the lowest rating, and the average of the ratings??

Answers

The program is an illustration of arrays.

Arrays are used to hold multiple values in one variable.

The program in C++ where comments are used to explain each line is as follows:

#include <iostream>

using namespace std;

int main(){

   //This declares an array of three elements for the three ratings

   int ratings[3];

   //This initializes the sum of the ratings to 0

   int total = 0;

   //The following iteration gets input for the three ratings

   for(int i = 0; i<3;i++){

       cin>>ratings[i];

       //This calculates the sum of all inputs

       total+=ratings[i];

   }

   //This declares and initializes the lowest and the highest ratings

   int lowest = ratings[0], highest = ratings[0];

   //This iterates through the array

   for(int i = 1; i<3;i++){

       //The following if condition determines the lowest rating

       if (lowest > ratings[i]){    lowest = ratings[i];        }

       //The following if condition determines the highest rating

       if (highest < ratings[i]){            highest = ratings[i];        }

   }

   //This prints the output header

   cout<<"The ratings are: ";

   //The following iteration prints the three ratings

   for(int i = 0; i<3;i++){

       cout<<ratings[i]<<" ";   }

   //The prints the highest ratings

cout<<endl<<"Highest: "<<highest<<endl;

   //The prints the lowest rating

   cout<<"Lowest: "<<lowest<<endl;

   //The prints the average rating

cout<<"Average: "<<total/3<<endl;

   return 0;

}

At the end of the program, the ratings entered, the highest rating, the lowest rating, and the average of the ratings are printed.

See attachment for sample run

Read more about similar programs at:

https://brainly.com/question/13261254

Which of the following job duties would a software developer perform?
A. developing a product that is easy to use and meets a customer’s need
B. establishing security procedures to protect important information
C. managing and securing data
D. writing the code to make a new application work

Answers

Answer:

Either B or D but I think mostly B cause it makes more sense

Answer:

A. developing a product that is easy to use and meets a customer’s need

Explanation:

lnao its easy

definitely not b or d

A team member who feels uncomfortable when disagreeing with another team member is likely from a(n) _______(fill in the blank) culture.
competetive
individualistic
collectivistic

Answers

collectivistic culture

A team member who feels uncomfortable when disagreeing with another team member is likely from a collectivistic culture.

What is a collectivistic culture?

Personal identity is the element in a collectivist culture where ties between persons and relationships with other group members are crucial.

People who are kind, helpful, trustworthy, and considerate of others are viewed favorably in collectivist cultures.

While individualism emphasizes the importance of each person's rights and interests, collectivism emphasizes the value of the group. Individualism places a strong importance on independence and self-identity, whereas collectivism places a high value on togetherness and selflessness.

Therefore, the correct option is c, collectivistic culture.

To learn more about collectivistic culture, refer to the link:

https://brainly.com/question/10230027

#SPJ2

Please help lol..
Type the correct answer in the box. Spell all words correctly. Which description uses two to three sentences? A short (two to three sentences) description of a story that includes the main character, the antagonist, and the genre of the story is a _____ .

Answers

Answer:

This would be called the summary or the synopsis. In further detail, it's a short, lively overview of a story, including the main character, the antagonist, and the genre.

Explanation:

Hope it helps!

Answer:

introduction

Explanation:

how do you unblock things on a school cromebook?

Answers

Answer:

School chromebooks are usually controlled/managed my administrators or teachers, so if you wanted to unblock things on a school chromebook you would have to ask an administrator or teacher at your school.

Which of the following responses is the best example of a problem that can be solved using a computer program?

What flavor of ice cream has sold the most?
What toy will my puppy like the most?
Which flavor of ice cream is my favorite?
Who should I ask to the school dance?

Answers

Answer: a)

Explanation: because the program going to compare the amount of each ice cream flavor have been sold.

Write a pseudocode algorithm to ask the user to input the name of a student, the marks he/she received in a test and the worth of the test. Calculate the percentage mark the student received. Print the student's name and percentage the student received.​

Answers

Pseudocode algorithms are used as prototypes of an actual program.

The required pseudocode algorithm is as follows:

Startinput name, score, test_worthpercent_score = score/test_worth * 100print name, percent_scoreStop

The first line begins the pseudocode algorithm

Start

The second line gets input for the student's name, score and the worth of the test

input name, score, test_worth

The third line calculates the percentage score

percent_score = score/test_worth * 100

The next line prints the student's name and the percentage score

print name, percent_score

The last line ends the pseudocode

Stop

Read more about pseudocode algorithms at:

https://brainly.com/question/21172316

Please please help I don’t understand this

Answers

Answer:

Yes and yes

Explanation:

It’s is this because yes and yes

__________(fill in the blank) in online education refer(s) to how online education impacts students of a specific economic group, ethnicity, gender, origin, race, or disability.
Accessibility
Ethics
Equity

Answers

Answer:

Equity in online education refer(s) to how online education impacts students of a specific economic group, ethnicity, gender, origin, race, or disability.

Explanation:

Equity in online education refer(s) to how online education impacts students of a specific economic group, ethnicity, gender, origin, race, or disability. The correct option is C.

What is equity?

Equity is a way of treating all people equal despite their gender, class, race or economic conditions. The true meaning of equity is being impartial. It is also equals to justice.

Online education is providing education with the medium of technology with no human touch. Online education is done when the teacher and the students are living far away and when there is a lockdown due to pandemics.

Online education can be taken by any person who has access to the internet, there is no partiality in it. And the meaning of equity is to make equal rules and conditions for everyone.

Thus, the correct option is C. Equity regarding the impact of online education.

To learn more about equity, refer to the link:

https://brainly.com/question/25947032

#SPJ5

An Acceptable Use Policy (AUP) are designed for the purpose of _____.
compressing files
maximizing processing power
safety
anonymity

Answers

Answer:

maximizing processing power

An  Acceptable Use Policy is made up for safety. Check more about the terms below.

What does an Acceptable Use Policy made up of ?

An acceptable use policy is one that is made up of a general statement that links to the safe and good use of email and the internet.

Note that based on the above, An  Acceptable Use Policy is made up for safety of all in the use of the internet.

Learn more about Policy from

https://brainly.com/question/3653791

#SPJ2

Which of these would be a good name for a variable that holds a person’s first name?

tomSmith

N01

firstName

lastName

Answers

Answer:

firstNAme

Explanation:

Answer:

firstName

Explanation:

I took the test


Microsoft Word cannot be used to create personalized web
pages.
OTrue
False

Answers

Answer:

False

Explanation:

Because Microsoft can be used to create personalized web

How can we avoid falling victim to a phishing or pharming scheme

Answers

Answer:

First of all, to avoid phishing check the URL box in your browser, and check the original destination if there are typos in the URL high chance of a phishing attack. Also in the website check out for typos and check for any suspicious activity in the website.

Other Questions
Pls, help this is abt to be overdue in an hour Select from the drop-down menus to correctly complete the statements about the expression a8+6b .The expression a8+6b is aA. SumB. Difference. The term a8 is an added, but it is also aA. quotientB. Difference. The term 6b is an added, but it is also aA. SumB. Product x14=34what does x equal. Write each formula to solve for density, volume and mass. Which of the following best explains why Tessie is unhappy with the first drawing?A. She was not on time.B. She believes her husband was hurried.USOC. She knows Mr. Summers dislikes the Hutchinsons.D. She was not allowed to draw. ignoring the proclamation of 1763 enabled colonists to do what action in the borderlands? The image of point (3, 5) under translation T is (6, -8). What is the image of point (4, 7) under the same translation? EEEEUsing the line of random numbers to run one simulation,what proportion of students tried out for a sport?O 0.40A study reported that about 40% of high school studentshave tried out for a sport at their school. To find out if thisapplies to Jessica's school, she surveyed an SRS of 20students. Nine of them said that they had tried out for asport. To see if this result is surprising, a simulation is tobe conducted to estimate the probability of obtaining asample result as high as this one.Let 0-3 represent students who tried out for a sport and4-9 represent students who did not try out for a sport.O 0.45O 0.50O 0.6052644523488246266233 Which of the following expressions is equivalent to 2578?A 2578B 5278C 5287D 2587 Choose three important ideas in the Declaration of Independence. Write them in the chart below. Then explain why do you think each idea is important. AM WILLING TO GIVE BRAINLIEST AND LOTS OF POINTSShanice's school made $850 by selling 125 tickets to the annual talent show. They sold adult tickets for $10 and student tickets cost $6. How many adult tickets did they sell? How many student tickets did they sell? (1) Write a system of equations to represent this situation. Define your variables.(2) Solve the system of equations algebraically using the elimination method.(3) Verify your solution by solving the system of equations algebraically using the substitution method.(4) Verify your solution by graphing the system of equations (I've attached the graph).(5) Interpret your solution to the system of equations in words. I will mark brainliest Im sorry if I put this in the wrong. Category The image shows embryos from four different animal species in an early stage of development.peFish Embryo,31 HoursChick Embryo,6 DaysMouse Embryo,11 DaysHuman Embryo41 DaysWhich conclusion can be drawn from these data?Choose the correct answer#1Fish develop more slowly than chickens, mice, and humans.#2Fish embryos cannot be distinguished from chicken embryos.#3Mice and humans have no similarities during development#4Humans are more closely related to mice than they are to chickens or fish when was george washington appointed commander of the continental army Evaluate f(0) given the following graph The image below shows one muscle cell. Please choose the name of the structure that is labeled A. 1. Myosin 2. Actin 3. myoglobin 4. troponin fob destination means that goods are owned by the buyer as soon as ______. 2r + 8 - r = -7Combine like terms 2. A "group" of cells that are similar and work together to perform a specific function is called a ____________.A.teamB.systemC.tissueD.Non of the above HELP ASAP!!! Ill make it Brainliest ^ i need help who is was the first archaeologist? 8ord 1n 143 40use and 1m 1N 143 40use 80rd Factor.f(x)=6x2 - x - 2([ ? ]x + [])([ ]x - [ ])