Saint Louis University |
Computer Science 1300/5001
|
Computer Science Department |
Topic: While Loops
Related Reading: Ch. 10
Due:
10:00am, Friday 5 October 2018
Please make sure you adhere to the policies on academic integrity.
Write a program that allows the user to enter words, continuing until the user first enters a duplicate. Your program should work as showin in the following interaction. (The underlined parts are those parts typed by the user.)
Start entering words: kiwi apple banana apple You already entered apple. You listed 3 distinct words.
Write a program that answers the following question. Starting
with the value
Submit both your source code and the answer you computed for the above question.