Preston M.

asked • 10/28/22

2.03 math module Programming

Part One: Write an interactive program to calculate the volume and surface area of a three-dimensional object. Use the following guidelines to write your program:

  1. Create a word problem that involves calculating the volume and surface area of a three-dimensional object. Choose one of the following:
  2. Cube: surface area 6 s2 , volume s3
  3. Sphere: surface area 4πr2 , volume (4.0/3.0) π r3
  4. Cylinder: surface area 2π r2 + 2 π r h, volume π r2 h
  5. Cone: surface area πr(r+√(h2+r2) ), volume 1.0/3.0 π r2 h
  6. Print the description of the word problem for the user to read.
  7. Ask the user to enter the information necessary to perform the calculations.
  8. Use 3.14 for the value of π as needed.
  9. Print the results of each calculation.
  10. Write the pseudocode for this program. Be sure to include the needed input, calculations, and output.

Insert your pseudocode here:


Part Two: Code the program. Use the following guidelines to code your program.

  1. To code the program, use the Python IDLE.
  2. Using comments, type a heading that includes your name, today’s date, and a short description of the program.
  3. Follow the Python style conventions regarding indentation and the use of white space in your program.
  4. Use meaningful names for all variables.

Example of expected output: The output for your program should resemble the following screen shot. Your specific results will vary depending on the choices you make and the input provided.

Output


Insert a copy of your code from the IDLE here:


Part Three: Complete the Post Mortem Review (PMR). Write thoughtful two to three sentence responses to all the questions in the PMR chart.

Review Question Response
What was the purpose of your program?
How could your program be useful in the real world?
What is a problem you ran into, and how did you fix it?
Describe one thing you would do differently the next time you write a program.


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.