Question: Write one or two PHP statements that print even if an integer variable $num is even. ( Hint: Use the modulus operator ) . Write
Write one or two PHP statements that print "even" if an integer variable $num is even. Hint: Use the modulus operator
Write one or more PHP statements that print "even" if an integer variable $num is even, and "odd" otherwise. These must be new lines of code and not the same lines of code as in item
Write one or more PHP statements that print A for a grade of B for C for D for and F otherwise. If you don't like being an F you can modify these for grades greater than Name your variable $grade.
Write a switch statement and other necessary statements that take an integer variable $num and print the corresponding month, eg "January" for "February" for
Test your code with different values for $num and $grade. Use arrays or loops or arrays and loops to test.
Test item with a variable or array using values and
Do not use or in any PHP conditional statement if else if else, :
Test item with a variable or array using values and
Do not use or in any PHP conditional statement if else if else, :
Test item with values
Test item with values
Add PHP comments before each of these items to keep them separate. The code for each is its own code. Do NOT write code that tries to do and together.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
