Write an if/else structure that prints the word complete to the screen if the variable named percent_complete is equal to 100 and prints the phrase not complete to the screen otherwise. I am unsure about the section in underline.
No.
Line 14 is incorrect: if(percent_completed =100)
There is an assignment statement there which has three effects:
1. it sets the value of variable percent_completed to 100.
2. as a boolean expression, any non-zero value is considered to be true, thus the statement on line 15 will always be executed.
3. Similarly, as we know for certain the value of the variable (it is 100), the if statement on line 18, though correct in itself, will always be true, because of the earlier error.