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 FITINROW number of plants. For example, if the number of plants is the number of leftover plants is Variable scan is established to a Scanner object set to the keyboard.
final int FITINROW ; 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
