[Year 12 SofDev] PHP Question

Alexakos, Zach Z alexakos.zach.z at edumail.vic.gov.au
Thu Mar 1 22:19:01 EST 2018


Thank you Robert!




Regards,
Zach Alexakos

From: sofdev <sofdev-bounces at edulists.com.au<mailto:sofdev-bounces at edulists.com.au>> on behalf of Robert Hallworth <hallworth.r at wcc.vic.edu.au<mailto:hallworth.r at wcc.vic.edu.au>>
Reply-To: Year 12 Software Development Teachers' Mailing List <sofdev at edulists.com.au<mailto:sofdev at edulists.com.au>>
Date: Friday, 2 March 2018 at 14:06
To: Year 12 Software Development Teachers' Mailing List <sofdev at edulists.com.au<mailto:sofdev at edulists.com.au>>
Subject: Re: [Year 12 SofDev] PHP Question

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<mailto: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.



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/9ca6f86c/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/9ca6f86c/attachment-0001.jpg>


More information about the sofdev mailing list