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.

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

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!