Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PRINT YOUR NANEe usau Next 15 questions, 2 points each.) (Problem 1-7, 10 points

ID: 3735635 • Letter: P

Question

PRINT YOUR NANEe usau Next 15 questions, 2 points each.) (Problem 1-7, 10 points each. write a php script to reproduce the output below. Manipulate only one variable using no simple arithmetic operators to produce the values given in the statements. 1. Hint: In the script each statement ends with Value is now svariable." Value is now 8 Add 2. Value is now 10. Subtract 4. Value is now 6. Multiply by 5. Value is now 30. Divide by 3. Value is now 10. Increment value by one. Value is now 11. Decrement value by one. Value is now 10.

Explanation / Answer

$variable=8;
$variable=$variable+2;
echo "value is now $variable <br/> ";
$variable=$variable-4;
echo "value is now $variable <br/> ";
$variable=$variable*5;
echo "value is now $variable <br/> ";
$variable=$variable/3;
echo "value is now $variable <br/> ";
$variable=$variable+1;
echo "value is now $variable <br/> ";
$variable=$variable-1;
echo "value is now $variable <br/> ";

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote