Step 6 Recap and More
Table of contents
- Extra Task 6.1 Close the book
- Extra Task 6.2 Save the page number
- Extra Task 6.3 Indicate Progress
- Extra Task 6.4 Debug this code
Extra Task 6.1 Close the book
When reaching the end of the book, the program should terminate.
Extra Task 6.2 Save the page number
Save page number in a file and read it at the start of the program to resume reading where you stopped.
Extra Task 6.3 Indicate Progress
At the top of the screen, the eReader indicate the page number. How could we indicate the progress (percentage read)?
Extra Task 6.4 Debug this code
In this code the line numbers are in the incorrect order for some reason. Find out why this is happening. Don’t forget that you can use the logger or the assert statement as debugging tools.