A good answer might be:
Notice that in this program that the true branch has one statement, which is not a block, and that the false branch has one statement, which is a block (and as a block contains three statements.) | |
PracticeAt a movie theater box office a person less than age 17 is charged the "child rate". Otherwise a person is charged "adult rate." Here is a partially complete program that does this:
In this program, the true branch and the false branch are both blocks. Each block has only one statement inside of it, but this is OK. All you need to do is complete the blank so the program picks the correct block for the age that was input. | |
QUESTION 9:Fill in the blank of the program. You might wish to make a copy of the program in NotePad, make your proposed correction, and run it to see if it works as you think. Click Here after you have answered the question |