Common Computer Science References
At the end of this lesson, you will be able to:
create the program that accepts user input and does basic mathematical calculations
variables
we call "=" , "is assigned" not "equal"
some_var = some_var + 1
go over "use strict"
no more "sloppy" code!
go over using variables and doing calculations
see below "Area and Perimeter" below
create a web page that will do the following:
has standard HTML, CCS & JS files; with image, favicon and MDL
calculates the area of a triangle
ENSURE you use parseFloat and NOT parseInt, so that decimal numbers can be used!
create the above program in PHP
you will notice that we do not convert the "string" to an int or float in PHP; this is because PHP will coerce values of the wrong type for you and by default we always let it