a for loop that runs 7 times using the variable. Inside the for loop, allow

This lab accompanies Chapter 8 of . Name: ___________________________ writing pseudocode. Read the following programming problem prior to completing the lab. Declare the following variables: Write a module call to a module named that passes the array. Additionally, write a module header named that accepts the array. (Reference: Passing an Array as an Argument to a Function, page 295). Write a for loop that runs 7 times using the variable. Inside the for loop, allow the user to enter values into the array. (Reference: Using a Loop to Step Through an Write a function call to a module named that passes the array and the variable. Additionally, write a function header named that accepts the array and the variable. Write a for loop that runs 7 times using the variable. Inside the for loop, total up the values of the array and store in the variable . Also, return the correct variable from the function. (Reference: Totaling the Values in an Array, page 289). Write a function call to a module named that passes the variable and the variable. Additionally, write a function header named that accepts the variable and the variable. Write a statement that will calculate the average pints donated over the drive period. Also, return the correct variable from the function. (Reference: Averaging the Values in an Array, page 290). Write a function call to a module named that passes the variable and the array. Additionally, write a function header named that accepts the variable and the array. Write the code that will determine the highest value in an array. Also, return the correct variable from the function. (Reference: Finding the ghest Value in an Array, page 291). Write a function call to a module named that passes the variable and the array. Additionally, write a function header named that accepts the variable and the array. Write the code that will determine the highest value in an array. Also, return the correct variable from the function. (Reference: Finding the Lowest Value in an Array, page 293). Write a module call to a module named Pass the necessary variable to the functions that are needed to display the averagePints, the highPints, and the lowPints. Also, write the module header that accepts the same variables. Using the program from Lab 9.1, complete the following checks for a better understanding of your work. Imagine the following number of pints were

💡 Buy the answer for only $12 Get it now →

entered into the array. Recall Step 5 of Lab 9.1 that accumulates the pints collected. Complete the following chart by writing what the counter and the totalPints value stores on each iteration of the loop. Recall Step 9 from Lab 9.1 that determines the high value. Complete the following chart by writing what the highPints and the pints array value stores on each iteration of the loop. Also conclude whether Recall Step 11 from Lab 9.1 that determines the low value. Complete the following chart by writing what the lowPints and the pints array value stores on each iteration of the loop. Also conclude whether This lab requires you to create a flowchart for the blood drive program in Lab 9.1. Use an application such as Raptor or Visio. Start Raptor and save your document as . The file extension will be added automatically. Start by adding a comment box with the necessary variables. Add your loop to run multiple times and your module calls in the main module. Add the getPints( ) module in main. Go to the getPints() module and add the following inside the module: Add the getTotal( ) module in main. Go to the getTotal() module and add the following inside the module: Add the getAverage( ) module in main. Go to the getAverage() module and add the following inside the module: Add the getgh( ) module in main. Go to the getgh() module and add the following inside the module: Add the getLow( ) module in main. Go to the getLow() module and add the following inside the module: Add the displayInfo( ) module in main. Go to the display() module and add the following inside the module: Using the following input values, check your results. If there are errors, verify steps 1 through 10. Output should be as follows: The average pints collected: 28.8571 The highest amount was: 43 The lowest amount was: 12 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 for main: #Lab 9-4 Blood Drive Execute your program so that it works and paste the final code below

💡 Buy the answer for only $12 Get it now →