The introduction goal of this programming assignment is to enable the student to practice programming using functions. PROBLEM DEFINITION: Write a program that has four functions that do the following: A main() function that has a loop that calls the other three functions until a user enters ‘n’ in response to the question, “Do you need more payroll calculations? (y/n) ” An inputData() function to input employee name, hours worked and paid rate A computePay() function to calculate the amount to be paid based on the formula:For the first 40 hours, the rate is the given rate; For hours over 40, the rate is 1.5 times the given rate An displayPay() function to output the name and the amount to be paid. Example: The amount to be paid to John Doe in this pay period is $754.80Write a statement at the bottom of the program to call the main() function. THE PYTHON PROGRAMThe program should do what specified in the PROBLEM section above.
The program should have the following features:1) The first few lines of your program should be comments that state the program name, the author's (your) name, date the program is released, and a brief description of the main task performed by the program.2) Your program should have meaningful variable names. There should be a comment before each function definition and at each major function point: input, calculation, output. External DOCUMENTATIONType a report of your solution in a Word or OpenOffice Writer document. You should structure your document in four clear sections each with a subheading as follows:1. PROBLEM DEFINITIONThe problem definition comes here. This is a summary of the PROBLEM section above.2. ANALYSISGive the variables that you have identified to hold output data and explain the type of data for each variable. Similarly, give variables to hold input data and describe them. If any calculations are performed, give variables to store results of formulas. Also, give variables to hold constants. Give formulas to convert input data to output data using variable names that you identified.3. DESIGNGive the algorithm in pseudocode form of the step by step statements to carry out the required programming task in English phrases. Explain the reasoning of the structure and logic of your program. You may use diagrams such as structure charts and flowcharts in addition to the pseudocode to present hierarchy and logic of your program.
Pseudocode should not be in Python.4. implementation that was the platform and programming environment used? Name the Operating System and compiler. How did you test your program? Give the data used to test the program. Did you encounter any unusual situations when running the program (For example, what happens when an alphabetic character is an input instead of an account number)?*** You should not put your Python program in the external documentation ***
Get Free Quote!
392 Experts Online