!-- What\'s wrong here? The program runs but it is displaying extra characters.
ID: 3734673 • Letter: #
Question
!--
What's wrong here? The program runs but it is displaying extra characters.
<html>
<head>
<title>Wage Report</title>
</head>
<body>
<h1>WAGE REPORT</h1>
<?php
$hourlyWage = 15.75;
$hoursWorked = 19;
$wage = $hourlyWage * $hoursWorked;
print("<p>Your hourly wage is $hourlyWage and you worked
$hoursWorked hours.</p>');
print('<p>You wages are $wage.</p>");
?>
</body>
</html>
<--
Explanation / Answer
<html>
<head>
<title>Wage Report</title>
</head>
<body>
<h1>WAGE REPORT</h1>
<?php
$hourlyWage = 15.75;
$hoursWorked = 19;
$wage = $hourlyWage * $hoursWorked; ?>
<p> Your hourly wage is $hourlyWage and you worked $hoursWorked hours.
</p>
<p>You wages are $wage.</p>
</body>
</html>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.