Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The first assignment involves writing a Python program to compute the weekly pay for a salesperson. Your program should prompt the user for the number

The first assignment involves writing a Python program to compute the weekly pay for a salesperson. Your program should prompt the user for the number of hours worked for that week and the total sales for the same week. 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 choose 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.

You are to submit your Python program as a text file (.txt) file. In addition, you are also to submit a test report in a Word document or a.pdffile. Please ensure your document contains clear images of the execution of your code.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Should a supportive working relationship be a true friendship?

Answered: 1 week ago