Week 4 Discussion: 1. Write a function with two arguments that computes a value based on the input parameters and returns the result, e.g. compute Volume (r, h). Write a main program that prompts the


Week 4 Discussion:

1. Write a function with two arguments that computes a value based on the input parameters and returns the result, e.g. compute Volume (r, h). Write a main program that prompts the user for two numeric values, calls the function with two input values as argument and displays the result it returns. 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 changing the calculation performed within the function. Document the code with a comment describing the change. Post your modified code as an attachment (.py file) and post a screenshot of executing your program on at least one test case.

Please the attachment below

– Xavier Johnson

– Carliena Rivera