APUS Computer Science Programming Code Project
Description
Directions
- Rewrite your program from Unit 5 so that it reads strings from the file and builds the list courses instead of defining all the data as part of your program itself.
The file aspect should be the only thing that you change – the rest of the program logic should remain the same.
Note that when reading from a file, each line contains a newline character, n, which will cause your table to be double spaced. See the string method .strip() in Chapter 9.5 for an easy way of fixing this. - Add your test cases from the program in Unit 5 at the end of the text file.
You can edit the text file with Notepad, or IDLE, or Thonny or any text editor on your system.
- Write a reflection in the comment box answering the following questions:
- In a sentence or two, what did you learn?
- In a sentence or two, what did you like about this project?
- In a sentence or two, what did you find confusing or would like to see done differently regarding this project?
- In a sentence or two, if you had another hour or two, what would you like to add to the project or how would you do things differently?
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."