View the step-by-step solution to:

Write a Perl program (call it Ques5A.pl) that takes user entered lines from the keyboard and stores them in an array. When the user enters...

Hi please help write this program using Perl.
1. Write a Perl program (call it Ques5A.pl) that takes user entered lines from the keyboard and stores them in an array. When the user enters "quit", the program prints out all the lines sorted (ASCII order – i.e. a line starting with an “Ab. ..” would print out before one starting with “Ac. ..”). Now modify the program (call it Ques5B.pl) so it tells you how many lines have been entered, and then prints out only lines 2, 3, and 4. 2. Write a Perl program to read a file, and then print its lines in reverse order, the last line first. Create a dummy file and insert sequences or random text, to test your program with. 3. Ask the user for a list of sequence lengths,separated by whitespace (Example: 100 123 45 . ..etc.). The sequence lengths will be stored in a string called $input. a. Split the String $input and create an array. b. Use the foreach loop to get the sum of all sequence lengths. c. Print the average. 4. Write a program, called Convert, that asks a user for a temperature reading in Fahrenheit (F) and then returns the Celsius (C) equivalent, using the following formula: C = (F – 32) / 1.8
Background image of page 1

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question