Write a Perl program that creates an array to store the list temperature (in Fahrenheit) for 7 days.
78, 74, 71, 69, 66, 65, 50
2. Modify the above program to create an other array
3. Take each temp from the first array and convert it to Celsius and store it in the second array. To convert temperatures in degrees Fahrenheit to Celsius, subtract 32 and multiply by .5556 (or 5/9).
4. Add code to generate the following output:
Next Week Forecast
in Fahrenheit in Celsius Feels
78 26 Too Hot
74 23 Just Right!
71 22 Just Right!
69 21 Just Right!
66 19 Too Cold
65 18 Too Cold
50 10 Too Cold
Note: In the above output, program output the values stored in two arrays, it also prints "too hot" if the temperature is above 75 f, prints "too cold" if it's below 68 f, and "just right!" otherwise.
2 freelancere byder i gennemsnit $13 på dette job
Hello, I have 3 years of programming experience in perl language. I am sure that I can write a perl script to perform the temperature conversion and display the message accordingly. Best regards. AWM.