Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

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!"...

Help