Week assignmentThis week's assignment involves rewriting the Python program you wrote for your assignment last week to use a function. All the requirements from last week still apply. The function...

1 answer below »
n/a


Week assignment This week's assignment involves rewriting the Python program you wrote for your assignment last week to use a function. All the requirements from last week still apply. The function should accept the number of rooms, and the type of cleaning as parameters and should return the cost of of the house cleaning. The main program should prompt the user for the number of rooms in the house and whether the cleaning should be a light cleaning or a more complete one, it should call the function that computes the cost and should output the value the function returns. If your program from last week contained any bugs, you should correct them in this submission. Your program should include Header comments (what the program does) and in-line comments (the major design steps).  Document the values  you chose as the cutoffs for the three house sizes, the cost for each size and the surcharge for a more complete cleaning in your comments as well. Submit your Python program as a text file ( .py) file.  In addition, submit a Design outline and a Test plan/report (at least 3 different test cases) in a Word document or a .pdf file and include a screen shot of execution of your program for each test case.  Your submission must also adhere to the Submission Requirements document. (i.e. Filename and display your name, class, date in the output). Grading: 10% - Design – outline proper sequence of steps, calculations (if necessary). Identify values of any known constants (discount amount or percentage for seniors, cost of each service). 10% - TestPlan – Completeness of your Test plan/report (at least three test cases).  You should have tests to show your validation/error process. You should have test cases for different combinations of different services. Include screen shots for each test case. 10% - Documentation - Header and in-line comments. Include document for the values you chose as the known constants ( cost of each service).  in your comments as well. Documentation of major steps (from design outline); 70% - Program prompts and executes correctly on all test cases. Satisfies all requirements. (each requirement -10pts, compiles -20pts, effectiveness and neatness -10pts, descriptive variables -5pts, def main() -5pts). Discussion Create a Python program that contains a function that has two arguments and returns the result of some calculation. Outside the function, prompt the user for two numeric values that are to be passed to the function. Call that function and display the result it returns. Post your code as an attachment (.py file) and post a screen shot 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 screen shot of executing your program on at least one test case.
Answered 1 days AfterNov 12, 2022

Answer To: Week assignmentThis week's assignment involves rewriting the Python program you wrote for your...

Mohith answered on Nov 14 2022
51 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here