Question: ( 1 0 pts ) Write a while loop segment of code that a ) Prompts the user for a word or Done to exit
pts Write a while loop segment of code that
a Prompts the user for a word or Done to exit
b As long as the word entered is not Done
i Increment a counter for the total number of words entered
ii Prompt for and read another word
c Repeat step b until Doneis entered.
d Output the number of words entered. Done is not included in the total.
Declare all variables required by your code segment. Assume user enters words only
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
