Question: public class Exercise 0 6 _ RaceDay { / * * Registration for your company's annual 1 0 K is underway. * Participants are assigned

public class Exercise06_RaceDay {
/*
* Registration for your company's annual 10K is underway.
* Participants are assigned to a block based on their age (int) and whether
* they registered early (boolean).
*
* Return a participant's block according to the following criteria:
* If they are >=18 and registered early, they join the first block.
* If they are >=18 and did not register early, they join the second block.
* If they are <18, they join the third block.
*
* Given a runner's age (int) and early-registration status (boolean), return
* their assigned race block:
*
* Examples:
* determineRaceBlock(17, false)3
* determineRaceBlock(17, true)3
* determineRaceBlock(18, false)2
* determineRaceBlock(18, true)1
* determineRaceBlock(30, false)2
* determineRaceBlock(30, true)1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!