Posted by **jamal** on Thursday, February 2, 2012 at 6:05am.

You work for a company that requires you to compute the average temperature for 8 A.M. to 6 P.PM. each day. You are to computer program to compute the average temperature.

- computer science -
**Steve**, Thursday, February 2, 2012 at 10:32am
use Util::List;

print "Enter hourly temperatures: ";

$_ = <STDIN>;

@t = split;

$avg = sum(@t)/@t;

--------------------------

add error checking if you wish, to watch for invalid format, or an empty list.

## Answer this Question

## Related Questions

- computer programming - Write a fortran program to compute the geometric ...
- Computer class - how do I design a program using a flowchart, the program needs ...
- PreCal - A trainee is hired by a computer manufacturing company to learn to test...
- PreCal - repost - A trainee is hired by a computer manufacturing company to ...
- programming - Write an algorithm to compute average score for each student in ...
- Computer science - Write an HTML form that prompts the user to enter loan amount...
- Math word gr 8 - For the month of January, the average afternoon temperature in ...
- computer science - a program to input the prices of two items as well as the ...
- Computer - Programming - Please how do I compute an algorithm to compute the sum...
- computer programs - How do I start a program containing a single dimensional ...

More Related Questions