D.3 Program development selection statements Answers
1. Using only an if statement create code with for the following. First initialise an int variable called grade to use for the logical tests. a) If a grade is greater than 80 print out "You got an A!".b) If a grade is less than 50 print out "You failed!".c) If a grade equals 100 print out "You scored a perfect score!" .d) If a grade is greater than equal to 50 and less than or equal to 100 print out "You passed!" then...
To access the contents of this site, you must subscribe.