Vote
This exercise focuses on the primitive type Boolean.
Download files: Vote.java
Areas: Primitive types.
Download files: Vote.java
Areas: Primitive types.
|
|
Vote.java |
|
View full source |
| Question 1 |
| What is the programmer trying to do? |
| Question 2 |
| Assuming the programmer is trying to set vote to true if all of the people voted yes, is this program correct? |
| Question 3 |
| How should the programmer change the last line of code so that vote has the value true if and only if all of the people vote yes? |
