Post a New Question

computer science

posted by on .

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 - ,

    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

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question