Home Schedule

Lab 14 (10 pts)

Setup

  1. Locate your "CS102" folder
  2. Download lab14.zip
  3. Extract the content of the zip file to lab14 in your CS102 folder
  4. Open "lab14.py" with Thonny
  5. READ THE COMMENTS

Now that we are writing functions, make sure your work today (and all future assignments) follows our class Python style guidelines and you include function comments. Be careful of your indentation!

Assignment

For this assignment you will be reading data from a text file saved_audio.txt to create a sound file. The first line of the text file has the number of samples that make up the audio file. Every single line after is the value of a sample that needs to be added to the sound file. Use the sample code from lecture to help you accomplish this task.

Requirements

Useful Media Functions

Lab Submission

For this lab you will upload your lab14.py code file.