Question
Create a Python program that prompts the user and accepts at least two numeric values as input has a constant value defined in the program
Create a Python program that
- prompts the user and accepts at least two numeric values as input
- has a constant value defined in the program
- performs mathematical computation with the three numbers, and displays the result.
Example: Input radius and height of a cylinder, define the value of pi, calculate and display volume of a cylinder. Include header comments in your code program that describe what the program does. Post your code as an attachment (.py file) and post a screenshot of executing your program on at least one test case. Be sure to create a program different from any of the programs already posted by your classmates.
2. Reply to another student's post. Modify that student's program by adding a third prompt for numeric input. Using this input, do another calculation using the new value and the results of the original program and display the new calculated value in addition to the previous output.
Document the code with a comment describing the change. You should only add to the existing code—no corrections or rewrites. Post your modified code as an attachment (.py file) and post a screenshot of executing your program on at least one test case.
Student 1 &2: Please see the picture below
WK 2 Discussion Screen Shot.png (PX + https://learn.umgc.edu/d2l/le/941266/discussions/posts/93809935/ViewAttachment?fileld=85005126 #this program is designed to calculate the volume, in cubic inches, of a box with a constant height of 9in print("What is the total volume of the box in cubic inches") length=eval(input("choose a length.")) width=eval(input("choose a width.")) 20F Partly cloudy height=9 print("Total Volume in Cubic Inches is:", (length*width*height)) F Q Search >>> choose a length. 10 I choose a width. 10 Total Volume in Cubic Inches is: 900 >>>|| Python 3.12.1 (v3.12.1:2305ca5144, Dec 7 2023, 17:23:39) [Clang 13.0.0 (clang-1 300.0.29.30)] on darwin Type "help", "copyright", "credits" or "license()" for more information. H = RESTART: /Users/jake/Documents/UMGC/Python Code Weeks/Wk 2/Wk 2 CMSC 105 6386. py What is the total volume of the box in cubic inches C < EO W ] O x ||| 6:21 PM 1/20/2024
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started