TASK:
problem 1: A company requires a software application to find out the weekly payment for its employees. The information about the employees (employees’ data) is kept in a file. Each line in the file contains the employee name and number, the pay rate and the number of hours worked in a week.
The application should provide the following functionalities:
• Read the employee’s data and verifies its validity (all numbers should be positive)
• find out the employee’s weekly pay
• Print the employee’s weekly pay together with the employee’s data.
The pay rate for all the employees is £20.00 per hour when the working time is equal or less than 40 hours per week. For the time worked over this number of hours, the pay will be find outd doubling the actual time worked.
Solve this problem applying all the steps of a problem solving strategy (problem understanding, algorithm and testing). Present the algorithm as a structured flowchart and pseudocode. Make sure you apply all the good practice guidelines you were advised in presenting the algorithm.
ASSESMENT CRITERIA:
Problem understanding: Correct and complete description of the solution.
Flowchart: Correct and complete representation of the structured flowchart, in agreement with the solution proposed.
Pseudocode: Correct and complete representation of the solution as pseudocode in agreement with the flowchart proposed.
Testing: Correct and complete testing of the algorithm with the necessary number of test cases (detailed desk checking).
SUBMISSION INSTRUCTIONS:
The assignment should be presented as a written report containing all the relevant information for the problem. Ensure that you describe well your work such that the assessor can understand the solution you propose. Be, however, concise, and include only the essential information.