For the problem statement below:
Write the code according to the problem statement and submit the code for marking.
Complete the Code documentation Word document and submit your completed document using the submission link (Practical 1 Code Documentation submission) on Learn for marking.
The template for the “Code documentation” is available on Learn in section “Programming Practicals”, under “Practical Resources”.
Problem statement:
Write a program to automate the weekly payment of a contractor on the building site.
The calculation takes into account the fact that the contractor may work normal time and overtime. The pay rate for normal time is $10.5/hr, and for overtime, $20.5/hr. Your program should ask the user to input their First name, Surname and the number of hours worked, both normal time and overtime. All the input must be in order.
Your program will then calculate the weekly payment and display the following:
Congratulations First_name Surname. This week you earned $XXX
Where First_name, Surname are the name entered by the user and $XXX is the actual amount calculated based on the number of hours worked.