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 ...
- Computer science - need help how do this program. Use the top-down modular ...
- math - Suppose the daily high temperature in a town is 3 degrees above average ...
- computer science - how to write c++ program to compute to display natural number...
- 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...
- computer programming - given three numbers A,B,C. draw a flowchart to compute ...

More Related Questions