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

Need the answer in PHP! Create one .php file that will demonstrate your knowledg

ID: 441425 • Letter: N

Question

Need the answer in PHP! Create one .php file that will demonstrate your knowledge of the random number function, if statements, switches and for loops Create a file called chapter2.php use a built in function to generate and print a random number between 1 - 4 (see p.86 #6 for help with the "rand()" function) use and if or if...else to print unique comments for each number use a switch to provide a second comment for each number use a for loop to print all odd numbers between 1 - 25 (each on a seperate line) use a while loop to print all even numbers between 2 - 24 (each on separate line)

Explanation / Answer

Save this file as chapter2.php

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