Writing a python program to compute weekly pay for salesman


Homework: Introduction to Problem Solving & Algorithm Design

The first homework involves writing a Python program to compute the weekly pay for a salesman. Your program should prompt the user for the number of hours worked for that week and the weekly sales. Your program should compute the total pay as the sum of the pay based on the number of hours worked times the hourly rate plus the commission. You should chose a value for the hourly pay. The commission should be computed as a percentage of the weekly sales. You should choose a value for the percentage. Your program should output the pay based on the hours worked, the commission and the total pay for the week.

Your program should include the pseudocode used for your design in the comments. Document the values you chose for the hourly rate and commission percentage in your comments as well.

In future weeks you will learn how to make an industry standard test report to test that your program works correctly. For the homework simply write a short paragraph of any activities that you performed to show that your program works correctly.

You are to submit your Python program as a file (.py) file. In addition, you are also to submit a short paragraph explaining how you tested the program in a Word document or a .pdf file. 15% of your grade will be based on whether the comments in your program include the pseudocode and define the values of your constants, and 85% on whether your program executes correctly on all test cases and whether you included a paragraph describing your approach to testing.

Format your homework according to the following formatting requirements:

i) The answer should be typed, using Times New Roman font (size 12), double spaced, with one-inch margins on all sides.

ii) The response also includes a cover page containing the title of the homework, the student's name, the course title, and the date. The cover page is not included in the required page length.

iii) Also include a reference page. The Citations and references must follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Python Programming: Writing a python program to compute weekly pay for salesman
Reference No:- TGS03132233

Now Priced at $40 (50% Discount)

Recommended (91%)

Rated (4.3/5)