Question

Canvas → XCO Question 28 10 pts (SHORT ANSWER) Write Python statements to do the following (number your answers); 1. Create a

python programming

0 0
Add a comment Improve this question Transcribed image text
Answer #1

# STAY HOME # STAY SAFE

# assign pi as 3.1415
pi = 3.1415
# assign r and h
r = 4.5
h = 13.75
# calculate the volume
volume = pi*r*r*(h/3)
# display the volume upto two places after decimal
print("Volume of Cone =",'%.2f' % volume)

In [3]: # assign pi as 3.1415 pi = 3.1415 # assign r and h r = 4.5 h = 13.75 # calculate the volume volume = pi*r*r*(h/3) # d

Add a comment
Know the answer?
Add Answer to:
python programming Canvas → XCO Question 28 10 pts (SHORT ANSWER) Write Python statements to do...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This is a C++ statement, when it comes to Algebra, this is very difficult for me...

    This is a C++ statement, when it comes to Algebra, this is very difficult for me to solve this, please help me solve this problem with step-by step solutions Question 27 10 pts (SHORT ANSWER) Write C++ statements to do the following (number your answers): 1. Declare a constant PI and initialize it with 3.1415 2. Declare a variable volume of type double 3. Calculate the volume of the cone and store it in the variable volume . Given the...

  • python programming X Canvas 4 → XCO Question 26 10 pts (SHORT ANSWER) Define a function...

    python programming X Canvas 4 → XCO Question 26 10 pts (SHORT ANSWER) Define a function named find_even_odd that has 1 parameter: num. When the function is called, it should use an if/else statement to determine whether the variable num is an even or odd number and display appropriate message as follows: • If the value in num is an even number, the progr will output the message: "XX is an EVEN number", where XX is the value in the...

  • python programming Canvas 4 → XC Question 27 10 pts (SHORT ANSWER) Using a for loop,...

    python programming Canvas 4 → XC Question 27 10 pts (SHORT ANSWER) Using a for loop, display horizontally the numbers in the range 0-25 (both numbers inclusive) in increment of 5 as follows: 0 5 10 15 20 25 BI AA- IX E31 x , DEE - 2 VTT12pt Paragraph O words

  • python programming → X CIO CIUSCUTETTE TUVOITTEESITTEETTICLE Question 30 10 pts (SHORT ANSWER) Assume the following:...

    python programming → X CIO CIUSCUTETTE TUVOITTEESITTEETTICLE Question 30 10 pts (SHORT ANSWER) Assume the following: • temps is a list of SIZE elements that has been assigned values • limit is a variable that has been assigned a value Write code to do the following: • Create a variable named count to keep track of the number of elements in temps list that are lesser than limit Using a loop, count the number of elements in the temps list...

  • python programming Question 29 10 pts (SHORT ANSWER) Define a function named display_pattern that is a...

    python programming Question 29 10 pts (SHORT ANSWER) Define a function named display_pattern that is a void function with no parameters. When the function is called, it should use a nested loop to to display the symbol # in 2 rows and 3 columns as follows: ### ### BI V A - A - I E33 x x, E V GT 12pt Paragraph

  • python Canvas 10 pts Question 26 Assume a variable score that has already been initialized, write...

    python Canvas 10 pts Question 26 Assume a variable score that has already been initialized, write one if/elif/else statement that will: • Output the message "Test was not taken if the score variable is equal to 0. • Output the error message "Error: Score is not valid" if the value stored in the score variable is outside the range of 0-100 (i.e., not in between 0 and 100; less than 0 or greater than 100). . If the value stored...

  • Microsoft Excel VBA (Visual Basic for Applications) Programming Language Objectives: Create an array and redim it...

    Microsoft Excel VBA (Visual Basic for Applications) Programming Language Objectives: Create an array and redim it to a size equal to an assigned value of a variable, populate the array with a series of random numbers, output the array to a message box and to a worksheet. Instructions: - Review the variables already declared. You won't need others. - See comments in the code that will act as your guide. Add new code directly after each comment. - Assign a...

  • Computer Science 111 Introduction to Algorithms and Programming: Java Programming Net Beans Project #4 - Classes...

    Computer Science 111 Introduction to Algorithms and Programming: Java Programming Net Beans Project #4 - Classes and Objects (15 Points) You will create 3 new classes for this project, two will be chosen (THE TWO CHOSEN ARE TENNIS SHOE AND TREE) from the list below and one will be an entirely new class you invent. Here is the list: Cellphone Clothes JuiceDrink Book MusicBand Bike GameConsole Tree Automobile Baseball MusicPlayer Laptop TennisShoe Cartoon EnergyDrink TabletComputer RealityShow HalloweenCostume Design First Create...

  • Problem: Write a short C++ program that gets the side of a cube and the radius...

    Problem: Write a short C++ program that gets the side of a cube and the radius of a sphere from the keyboard and writes to a file the surfaces of these shapes.             ------------------------------------------------------------------------------------------------------------------------ Your task: implement in C++ the algorithm solution shown below. ------------------------------------------------------------------------------------------------------------------------ Part A (79 points) Algorithm solution (in pseudocode): To accomplish this task, your program will have to take the following steps: 1. Declare a variable named outFile that represents an output stream. 2. Declare a...

  • PYTHON 3 - please show format Question 2. ) Use the Design Recipe to write a...

    PYTHON 3 - please show format Question 2. ) Use the Design Recipe to write a function yesOrNo which has no parameters. When called, it gets input from the user until the user types either 'yes' or 'no', at which point the function should return True if the user typed 'yes' and False if the user typed 'no'. Any other entries by the user are ignored and another value must be input. For example: Test Input Result print(yesOrNo()) hello blank...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT