Question: File: fixit3.php Purpose: What's wrong here? This program is supposed to open a file for reading, read three wage amounts from the file, close the

File: fixit3.php Purpose: What's wrong here? This program is supposed to open a file for reading, read three wage amounts from the file, close the file, calculate the total and average, and display the three wages, total and average. But when the program runs, error messages are generated for lines 24 - 26. Hint: each of the lines is associated with accessing the text file that we opened in line 23, which file is that? -->

Wage Report

WAGE REPORT

$totalWages = $wage1 + $wage2 + $wage3; $avgWage = $totalWages/3;

print("

Wage #1: $$wage1 "); print("Wage #2: $$wage2 "); print("Wage #3: $$wage3

"); print("

TOTAL WAGES PAID: $$totalWages

"); print("

AVERAGE WAGE: $$avgWage

"); ?>

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 Databases Questions!