This program is similar to the previous exercise. Your chapter09 folder contains versions of weekly-report2.html, weekly-report2.php and weekly-data.txt. The code in weekly-report2.html does not need to be changed—it just provides a form with a Submit button to run weekly-report2.php. The file weekly-data.txt contains a list of daily income from completed paint jobs over a one week (7 day) period. Each line contains the total income amount for a single day. Use a FOR loop to read the 7 lines from the file. Assume that the first number represents the income for Monday, the second day for Tuesday, and so on, with the last number in the file representing the income for Sunday. For each line that the program reads from the file, display the day of the week, followed by the income for that day.
weekly-data.txt
236.00
284.00
148.00
128.00
0.00
110.00
0.00