Question: Fill in the missing line of code to compute the number of plants left over after filling a row that can hold FIT _ IN

Fill in the missing line of code to compute the number of plants left over after filling a row that can hold FIT_IN_ROW number of plants. For example, if the number of plants is 12, the number of leftover plants is 3. Variable scan is established to a Scanner object set to the keyboard.
final int FIT_IN_ROW =9; // number of plants that fit in one row
int numPlants = scan.nextInt();
int leftoverPlants =_________;

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!