5.7 Programming Activity 1: Working with if/else
In this activity, you will write an if/else selection statement to decide how a golfer’s score compares to par.
Copy to a folder on your computer all the files from the source code provided with this text for this chapter’s Programming Activity 1.
Open the SelectionPractice1Controller.java source file. You will add your code to the workWithIfElse method. Part of the method has been coded for you. Search for ***** in the source file.
You should be positioned at the code shown in Example 5.7.
Get Java Illuminated, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.