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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started