Instructions: 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 shou


Instructions:

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 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 screenshot 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, and 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% – Test Plan – 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 Senior/Not senior and different services. Include screenshots for each test case.

10% – Documentation – Header and in-line comments. Include documentation for the values you chose as the known constants (i.e., the 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 – 10 pts, compiles – 20 pts, effectiveness and neatness – 10 pts, descriptive variables – 5 pts, def main() – 5 pts).

Important note: This is an individual assignment and students are required to submit their original/independent work and adhere to UMGC academic integrity policy. Your submission should adhere to the Submission Requirements document. It is advised that you read all the material, including the Lecture before attempting the assignment. Also, review the example programs and practice exercises.  If you do not understand something, reach out to your professor or the UMGC tutor.