Mandatory Question(s) of the day ...
The "if - then - else" structure plays a fundamental role in all computer languages. Please write the PHP code that is syntactically correct (no errors in in it) that will execute the following:
Check to see if the variable $test_score1 is greater than or equal to 90, and if it is, makes $test_grade1 equal to "A" ... and if it isn't, assigns $test_grade1 to "B".
The "if - then - else" structure plays a fundamental role in all computer languages. Please write the PHP code that is syntactically correct (no errors in in it) that will execute the following:
Check to see if the variable $test_score1 is greater than or equal to 90, and if it is, makes $test_grade1 equal to "A" ... and if it isn't, assigns $test_grade1 to "B".
if ($test_score1 >= 90) {
ReplyDelete$test_grade1 = 'A';
}
if (test_score1 < 89) {
$test_grade1 = 'B';
}
--Sarah Kimmel
if ($test_score1 >=90) {$test_score1 = 'A';}
ReplyDeleteelse {$test_score1 = 'B'}
if ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A";
}
if ($test_score1 < 90) {
$test_grade1 = "B";
}
-Melissa Scenga
if ($test_score1 >=90) {$test_score1 = 'A';}
ReplyDeleteelse {$test_score1 = 'B'}
if ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A";
}
if ($test_score1 < 90) {
$test_grade1 = "B";
}
skyler
(test_grade1='A';}
ReplyDeleteif(test_score1<90){
-Nelson Mandela
if($test_score1>=100){
ReplyDelete$test_grade1="A+";}
-Nelson Mandela
if ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A";
}
if ($test_score1 < 90) {
$test_grade1 = "B";
}
-Jose Pena
A:
ReplyDeleteif ($test_score1 = 90) {
$test_grade1 = 'A';
}
B:
if (test_score1 89) {
$test_grade1 = 'B';
}
If($test_score1>=90){$test_grade1="A"
ReplyDelete-Grant Swix
f ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A";
}
if ($test_score1 < 90) {
$test_grade1 = "B";
}
-James Van Zile
if ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A";
}
if ($test_score1 < 90) {
$test_grade1 = "B";}
- Jaylen Fuentes
if ($test_score1 >= 90 ) then {
ReplyDelete$test_grade1 = "A"};
if ($test_score1 < 90) then{
$test_grade1 = "B"};
-ashlee smith
if($test_score>=90)
ReplyDelete{$test_score1= 'A';}
if ($test_score1<90)
{$test_score = 'B';} ~Morgan McCoy
if ($test_score1 >= 90 ) then {
ReplyDelete$test_grade1 = "A"};
if ($test_score1 < 90) then{
$test_grade1 = "B"};
if ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A"; }
if ($test_score1 < 90) {
$test_grade1 = "B"; }
if $test_score1 > 90
ReplyDelete$test_grade1 = A
if $test_score < 90
$test_score = B
if ($test_score1>=90)) {
ReplyDelete$test_score1 = "A";
}
if ($test_score1>=89)) {
$test_score1 = "B";
}
if ($test_score1 >= 90) {
ReplyDelete$test_grade1 = 'A';
}
if (test_score1 < 89) {
$test_grade1 = 'B';
}
If the (test_score1>=90)
ReplyDeletetest_garde1=A
Shakira k
~*abigail de la p.*~
ReplyDeleteif($test_score1>=90){
$test_grade1='A';
}
if($test_grade1=B';
if ($test_score1 >= 90 ) {
ReplyDelete$test_grade1 = "A";
}
if ($test_score1 < 90) {
$test_grade1 = "B";
}
Thats what i think....idk
Chris Lowure........
if ($test_score_1 >=90) {$test_score_1 = 'A';} else {$test_score_1 = 'B'}
ReplyDelete-Tim Blake
if($test_score1>=90){
ReplyDelete$test_grade1="A";}
if($test_score1<90){
$test_grade1="B";}
-Chris Pfeifer-