CSC 174 - Computer Organization and Assembly Language
Dr. R. M. Siegfried
Assignment #11 - Finding the sum of the absolute values
Due Wednesday, April 27, 2016
Write a program that asks the user to enter a set of (no more than) 10
numbers. When the user enters a zero or after the user enters the tenth
number, the program adds the absolute value of the numbers.
Your program should use procedures:
- A procedure to read in your numbers (into an array)
- A procedure to calculate the sum of the absolute values
and - A procedure that prints the original numbers and the sum of
their absolute values
[Back to the Assignment Index]