Posted by jamal on Thursday, February 2, 2012 at 6:05am.
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.
Related Questions
math - A company produces three types of color TVs: Models X, Y and Z. Each ...
math - A company produces three types of color TVs: Models X, Y and Z. Each ...
Math word gr 8 - For the month of January, the average afternoon temperature in ...
mba business reserach methods - Sampling A manufacturing company's quality ...
science - What is average daily temperature and average montly temperature?
statistics - A business researcher wants to estimate the average number of years...
Algebra - Manny works 40 hours per week. He must work for his parents where he ...
Statistics - A coffee company wants to make sure that there coffee is being ...
probability - out of 250 students interviewed at a community college, 90 were ...
science - Cagliari, on the island of Sardinia, receives almost no summer rain ...
For Further Reading