Placeholder

CMIS 102 Assignment 1 Salesman Weekly Pay

$19.00

Description

The first assignment 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 assignment simply make 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.
SCREENSHOTS
SOLUTION
PAYMENT
CMIS 102 Assignment 1
CMIS 102 Week 1
CMIS 102 Assignment 1 TestCases
The solution consists of:
A report word document for this assignment
All Python programs in case you want to run theses programs on your computer.
Screenshots while running programs
Attachments [Move over files to preview content of those files]
CMIS102_Assignment_1.zip (178.34 KB)
CMIS 102 Assignment 1 Report.docx
CMIS102-Week-1-Screenshot-2.png
CMIS102-Week-1-Screenshot.png
CMIS102-Week-1-TestCases-Screenshot.png
source code
salesman.py
Preview salesman.py
xx __xxxx__ == ‘__xxxx__’:
# xxx xxx xxxx xx xxxxx xxxxxx xx xxxxx xxxxxx xx x xxxx
xxxxx_xxxx_xxxxxx = xxx(xxxxx(‘xxxxx xxxxx xxxxx xxxxxx xx x xxxx: ‘))
# xxxxxx xxxxxx xxx
xxxxxx_xxx = 20 # xxx $20 xxx xxxx
print(f’Hourly pay: ${hourly_pay}’) # multiply the hourly pay and hours worked that week total_hours_pay = total_hour_worked * hourly_pay print(f’Total hours pay: ${total_hours_pay}’) # ask the user to enter total sales in a week total_sales = int(input(‘Enter total sales in a week: ‘)) # Amount of each sale
xxxxx = 250
# xxxxxxxxx xxxxxxxxxx xx xxxx xxxx
xxxxxxxxxx = 25.0 / xxxxx
xxxxx(x’xxxxxxxxxx: {xxxxxxxxxx}’)
# xxxxxxxxx xxxxx xxxxx xxx
xxxxx_xxxxx_xxx = xxxxx_xxxxx * xxxxxxxxxx
Price: $19
You May Also Like:
CMIS 102 Assignment 2 Compute Theater Ticket Price
CMIS 102 Assignment 3 Compute Cost of Carpeting a Room
CMIS 102 Assignment 4 Compute Average quiz Grade
CMIS 102 Assignment 5 Secure Password
CMIS 102 Assignment 6 Converting Celsius to Fahrenheit
CMIS 102 Final Project Body Mass Index

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.