Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Second International Conference Acids Hue City Vietnam March 2010 Proceedings Part 1 Lnai 5990

Authors: Manh Thanh Le ,Jerzy Swiatek ,Ngoc Thanh Nguyen

2010th Edition

3642121446, 978-3642121449

More Books

Students also viewed these Databases questions

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

What are Electrophoresis?

Answered: 1 week ago

Question

10-9 How have social technologies changed e-commerce?

Answered: 1 week ago