[Year 12 SofDev] PHP Question
Robert Hallworth
hallworth.r at wcc.vic.edu.au
Thu Mar 1 22:06:40 EST 2018
Hi Zach
?? this works fine
$x=2;
$y=3;
$z=4;
$answer=$x*$y*$z;
echo $answer;
I have just tested it.
Kind Regards
Robert K Hallworth
Director of Learning Technology
[cid:image008.jpg at 01D373FD.084499B0]
From: sofdev [mailto:sofdev-bounces at edulists.com.au] On Behalf Of Alexakos, Zach Z
Sent: Friday, 2 March 2018 12:53 PM
To: Year 12 Software Development Teachers' Mailing List <sofdev at edulists.com.au>
Subject: Re: [Year 12 SofDev] PHP Question
Hi all,
I have a student question I need some help with.
The question is to calculate the volume of a rectangular prism using a function and subroutine.
As we know Volume = Length * Width * Height
But the student is only able to multiply two values at a time (L *W), then assign the answer to a third variable before multiplying again to find the volume.
In Swift it’s as easy V = L * W * H
But in PHP? Am I missing something?
Regards,
Zach Alexakos
IMPORTANT - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://edulists.com.au/pipermail/sofdev/attachments/20180302/86005cb2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 19900 bytes
Desc: image001.jpg
URL: <http://edulists.com.au/pipermail/sofdev/attachments/20180302/86005cb2/attachment-0001.jpg>
More information about the sofdev
mailing list