Computer Science Write an AT&T assembly program that can be compiled in the same way the blackboard samples are compiled. The program should take the following inputs from the user: * An integer n. *...


Computer Science



Write an AT&T assembly program that can be compiled in the same way the blackboard samples are compiled.
The program should take the following inputs from the user:
* An integer n.
* n floating point numbers (Use the "double" type. Do not use "float" type.)
The program should output the sum and the average of the n input numbers.
Example:
The user inputs: 3 1.2 2 6.1
The program outputs: sum=9.3 avg=3.1




Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here