Question: This program is similar to the previous exercise. Your chapter 0 9 folder contains versions of weekly - report 2 . html , weekly -

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 changedit 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!