Question: Integer numFish is read from input representing the number of fish per tank a fish hatchery has. The fish hatchery has 2 4 tank .
Integer numFish is read from input representing the number of fish per tank a fish hatchery has. The fish hatchery has tank Assign integer totalFish with the total number of fish in the hatchery.
Ex: If the input is then the output is:
public class FishData
public static void mainString args
Scanner scnr new ScannerSystemin;
int numFish;
int totalFish;
numFish scnrnextInt;
System.out.printlntotalFish;
can u complete this code
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
