Hint: Steps for developing the program

21 Jul 2025 - 18:11 | Version 1 |
Don't proceed to the following step until you can "prove" that the current step works.
  1. Get the program to read the file and print out the first line (using two different variables)
  2. Get the program to do with for every line (not using a count controlled loop)
  3. Change it so that instead of printing the English word, it asks the user for the English word and then displays if it was correct
  4. Add to the display if it is not correct, what the correct English word is.
  5. Add a counter to count the number of lines in the file (follow example from class). Don't forget to initialize it!
  6. Add a second counter to count the number of times correct. Don't forget to initialize it!
  7. After the loop, print out the statistics.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine