Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions