Create a program that will calculate and display the volume of a pyramid based on its...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that will calculate and display the volume of a pyramid based on its height, width, and length. (volume = 1 * w *h / 3.) Part 2: Create a program with two function definitions. The first function is called intro. Intro() prints out your name and something else about you. The second function is called info and it prints out some interesting data about you. Like movies you like, or books, or songs or artists. Create a program that will calculate and display the volume of a pyramid based on its height, width, and length. (volume = 1 * w *h / 3.) Part 2: Create a program with two function definitions. The first function is called intro. Intro() prints out your name and something else about you. The second function is called info and it prints out some interesting data about you. Like movies you like, or books, or songs or artists.
Expert Answer:
Answer rating: 100% (QA)
def calculatepyramidvolumelength width height volume length width height 3 return volum... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
You Split $1500 Between Two Savings Accounts. One Pays 4% Interest And The Other Pays 5%. After One Year You Have Earned $69.50 In Interest. How Much Was In The 5% Account? Amount In 5% Account = $[...
-
1. Insert a module and create a subroutine named Receipt(). Excel 2. Place a button with the name "Generate Receipt" that would link to this subroutine when clicked. Do the following parts from 3 to...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
One persons reform in some cases may be considered an attack on another persons vital interests. Describe how the antebellum reform movementsparticularly temperance, colonization, and womens...
-
The oscillation of rod OA about O is defined by the relation ( = 4/)(sin t), where and t are expressed in radians and seconds, respectively. Collar B slides along the rod so that its distance from O...
-
What changes to the ChangeMaker program in Listing 2.3 are necessary if it also accepts coins for one dollar and half a dollar? Listing 2.3 import java.util.Scanner; public class ChangeMaker { public...
-
Below is a frequency distribution table for a hypothetical variable: a. How many of the scores for this variable have the value 70 ? b. What percentage of the scores has the value of 30 ? Value f%...
-
Which type of unemployment would be affected with the following changes? Would it go up or down? a. Increased employment benefits b. Heavy snowfall in Minnesota c. Online job search becomes more...
-
Image transcription text (HW 7.2, 8.1-8.2 Statics: Couples C @ https://lwtech.instructure.com/courses/2400281/assignments/31088346?module_item_id=77706359 A SE Dell LW Tech Bills W Wikipedia...
-
A store maintains data on customers, products and purchase records in three tables: CUSTOMER, PRODUCT, PURCHASE. The store manager wants to know which product is on its maximum discount for each...
-
Communicating across cultures: language 3. What is worldview? Give some examples of American worldview, and how they are reflected in our language. 4. Why are Americans as a nation so resistant to...
-
Find lim x + 2 x-00 3x-6
-
Find the real solutions to the quadratic equation. (Enter your answers as a comma-separated list.) 3x 2 + 3x = 1 3x 2
-
find the derivatives $20 y = (x+4)(x+3) (x - 1) else
-
Find the derivative. f(x)= 3x + 2 5x 7 -
-
Solve the integral equation: I 2f y(x) = e +2 cos(x - t)y(t)dt. 0
-
Balance the following equation: Ca 3 (PO 4 ) 2 ( s ) + SiO 2 ( s ) + C( s ) ? CaSiO 3 ( s ) + CO( g ) + P 4 ( s ) A. 2Ca 3 (PO 4 ) 2 ( s ) + 6SiO 2 ( s ) + 10C( s ) ? 6CaSiO 3 ( s ) + 10CO( g ) + P 4...
-
The production budget of Artest Company calls for 80,000 units to be produced. If it takes 30 minutes to make one unit and the direct labor rate is $16 per hour, what is the total budgeted direct...
-
If necessary, create a new project named Advanced19 Project, and save it in the Cpp8\Chap06 folder. Enter (or copy) the instructions from the Lab6-2.cpp file into a new source file named...
-
When processed, which of the following can consume the newline character? a. >> operator b. < < operator c. getline function d. Both a and c
-
Rewrite the code from Pencil and Paper Exercise 13 using the for statement. Data From Exercise 13 Write the code to display the smallest number stored in a one-dimensional int array named orders. The...
-
What is the difference between real objects and virtual objects? Give an example for each.
-
How do business classes differ from utility classes? Provide one example for each.
-
Give three specialized subclasses for the Student class.
Study smarter with the SolutionInn App