CS 1323 Section 30, Spring 1997

Individual Project 7

Deviations

Due Monday, April 21, 3:30pm

What to Hand In

Project Description

Write a program that retrieves a sequence of numbers from the keyboard and displays on the screen the deviations of those numbers from their average and the relative positions of the numbers within their range, on a scale of zero to one.

To compute the average of the numbers, use the calculation method of the arithmetic mean function in the NumericUtilities module (accessible from the Supplied Software page of the class website). That is, incorporate each successive number into the running average of the previous numbers.

The range of a collection numbers is bounded by the smallest and largest of the numbers.

The relative position of a number x within the range low <= x <= high is (x - low) / (high - low). Compute the range of the numbers retrieved from the keyboard by finding the largest and smallest of them.

Ground Rules


CS 1323 Section 30 - Fundamentals of Computer Programming - Spring 1997
Instructor: Rex Page (Email: page@ou.edu)
Up to: Welcome Page ~~~ Up to: University of Oklahoma ~~~ Go to: Next Semester ~~~ Go to: Previous Semester