Jodie Mitchem

Week 3 Assignment(Introducing Variables and Operators)

Printing Variables

integer: 955421

float: 1542.2232235

string: This is a string.

really big integer: 95623165498798746541



Constants

This is a test of defining constants.

Constants 2


This file is /home1/jodierud/public_html/php/week3.php
This is line number 36
I am using 5.2.13
This test is being run on Linux

Assign Script

Original value is 100

Added a value, now it's 125

Subtracted a value, now it's 113

Final answer: 113 chickens


Arithmetic Script

Original value of $a is 85 and $b is 24

Added $a and $b and got 109

Subtracted $b from $a and got 61

Multiplied $a and $b and got 2040

Divided $a by $b and got 3.54166666667

The modulus of $a and $b is 13


Comparison Script

Original value of $a is 21 and $b is 15

TEST 1: $a is not equal to $b

TEST 2: $a is not equal to $b

TEST 3: $a is greater than $b

TEST 4: $a is not less than $b

TEST 5: $a is greater than or equal to $b

TEST 6: $a is not less than or equal to $b


Logical Script

TEST 1: It's really hot!

TEST 2: It's bearable.


Back