Question: 1. Write a PERL script called tempConverter that takes one input argument for Fahrenheit-and processes the Fahrenheit to Celsius using the formula below to convert

1. Write a PERL script called tempConverter that takes one input argument for Fahrenheit-and processes the Fahrenheit to Celsius using the formula below to convert the temperature entered to Celsius:

Celsius: C = (F 32) * (5 / 9)

-First, prompt the user for the city name and read the city

-Second, prompt the user for the temperature in Fahrenheit

-Process the temperature conversion using the formula given above

-Based on the new Celsius temperature, display a short message telling the user if its winter, summer or fall based.

-Use the IF, ELSE statements to check for the season as we did in previous lab activities.

Note: You may need to use the chomp () function in PERL to remove any trailing string or extra space in the input.

2. Write a PERL script/program based on the following requirements. The program should prompt the user for how many courses they plan to take next semester and ask the user to enter each of those courses before displaying all the information entered back on the screen.

3. Write a PERL script that defines/declares an array or a list of elements. The array should hold three-letter abbreviations for the first six months of the year and display the array/list.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!