CSC 171 - Introduction to Computer Programming

Lab Assignment #23 - Finding the Average of a List of Numbers, excluding the Highest and Lowest Values

Due Wednesday, November 29, 2023

We have seen that a list is an ordered collection of data items, how to initialize it, who to add new values to the list.

We have seen how to open a file, how to read data from a file and how to write output into a file.

You are going to write a program that reads values from a file and places them on a list. You need to find the smallest and largest values, as well as the average of the values on the list, excluding the highest and lowest values.

Your output file should list all of the values that were read in, the maximum and minimum values and the average of the values (excluding the highest and lowest).

Include a flowchart and pseudocode

[Back to the Lab Assignment List]