Question: 2) (15 pts] Assume your code is in the main method. Don't include the import statement. Write iterating code that counts strings entered by the
2) (15 pts] Assume your code is in the main method. Don't include the import statement. Write iterating code that counts strings entered by the user, until "finished" is entered exactly as it is written here, meaning your code is case sensitive. Your code prints out the number of strings entered, not including the "finished" string. See sample run below. Input any string (or finished to quit): dog Input any string (or finished to quit): cat Input any string (or finished to quit): finished Number of strings entered = 2 Write constant here: f LOST = "finished
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
