This lab accompanies Chapter 10 of . Name: ___________________________ writing pseudocode. Read the following programming problem prior to completing the lab. The following program from Lab 9.1 will be used, with some modifications. Note that the getPints, getTotal, and getAverage functions do not change. Also note that the references to displayInfo, getgh, and getLow functions are removed to meet the new requirements. In the pseudocode below, add the following: In the Main Module In the writeToFile Module In the readFromFile Module This lab requires you to create a flowchart for the blood drive program in Lab 10.1. Use an application such as Raptor or Visio. Start Raptor and open your . Save this file as . The file extension will be added automatically. Remove the reference no longer need. This is the and variables, and the , , and modules. With the modules, first delete the function calls, and the right click on the tabs and select Delete Subchart. In main after the module call to , add a call to . Go to that module and add a call symbol. Add the following: Add an output symbol that prints the string Add an assignment symbol that sets to 1. Add a loop symbol that has the condition of . If it is , add an output symbol that prints to the file. This should look as follows: Add an assignment statement that increments by 1. If it is , add an output symbol that prints the string to the file. Add an output symbol that prints to the file. Add a call symbol that closes the file. This should look as follows: In main after the call to , add a call to . In the module, add a call symbol to , such as “). Add an Input symbol that gets . This should look as follows: A
dd an assignment statement that sets to 1. Add a loop statement. If the loop is , get the next value from the file and store it in This should look as follows: Increment by 1. If the loop is , get with an input symbol. Add an input symbol that gets . Add a call symbol that sets to . In the Main module, add an input symbol under the loop symbol. This should ask the user to enter 1 if they want to take in data and add to the file or 2 if they want to print information from the file. Store this in a variable called . Add a decision symbol that asks if is equal to 1. If it is, call the , , , and module. If it is not, call the module. Run your program once and be sure to select option 1 on the first time. This will create a file called in your directory where your Raptor flowchart is located. An example file might contain the following: Go to your file called and examine the contents. Paste the contents below. Run your program again, but select option 2. You can test to see if it is reading values properly into your program by examining the contents of the variables that are listed on the left. The following is an example: Paste your finished flowchart in the space below. The goal of this lab is to to Python code. Start the IDLE Environment for Python. Prior to entering code, save your file by clicking on File and then Save. Select your location and save this file as . Be sure to include the .py extension. Document the first few lines of your program to include your name, the date, and a brief description of what the program does. Start your program with the following code: #Lab 10-3 Blood Drive Execute your program so that it works and paste the final code below