Back to Lesson # 7 - Branching and Decisions | Table of Contents | # 7 Assignment |
1. What is wrong with this?
if ( age = 16 ) alert("16 is legal driving age.");
3. In a certain high school, students with a 3.5 gpa have the message "Graduate with Honors" on their academic record. What is the best structure to handle this in a program?
5. Students are asked to mark radio buttons to indicate the sport that they participate in for fall season,( football, soccer, cross country, or none) and receive the correct messages from the athletic department.
6. In the cartoon quiz, what structure is used to score each quiz question
7. Since there are 4 possible choices to each question, which construct would be the best one to use here?