Question: 1. Write a Perl program that asks the values of the length and width of a rectangle and prints the area of the rectangle. (10

1. Write a Perl program that asks the values of the length and width of a rectangle and prints the area of the rectangle. (10 points. File name:hw3_1)
2. Write a Perl program that asks a number and prints the sum from 1 to the entered number. (10 points. File name:hw3_2)
Ex) $ Enter a number: 10 $ The sum from 1 to 10 is 55
3. Write a Perl program that asks a series of words (with one word per line) until end-of-input then prints the series of words in an inverse order. (15 points. File name:hw3_3)
Ex) $ Enter a series of words: Hello Apple World Good $ The result is: Good World Apple Hello
4. Write a Perl program that asks a series of words (with one word per line) until end-of-input, prints the above words in ASCII order, and then prints the repeated words. (15 points. File name:hw3_4)
Ex) $ Enter a series of words: Fred Barney Wilma Betty Fred $ The result is: Barney Betty Fred Wilma $ The repeated words: Fred
1. Write a Perl program that asks the values of the length and width of a rectangle and prints the area of the rectangle. (10 points. File name:hw3 1) 2. Write a Perl program that asks a number and prints the sum from 1 to the entered number (1U points. File name:hw_2) Ex) Enter a number: 10 $ The sum from 1 to 10 is 55 Write a Perl program that asks a series of words (with one word per line) until end-of-input then prints the series of words in an inverse order. (15 points. File name:hw3 3) Ex) $ Enter a series of words Hello Apple World Good $The result is: Good World Apple Hello 4. Write a Perl program that asks a series of words (with one word per line) until end-of-input, prints the above words in ASCIl order, and then prints the repeated words. (15 points. File name:hw3 4) Ex) $ Enter a series of words Fred Barney Wilma Betty Fred $The result is: Barney Betty Fred Wilma $The repeated words Fred
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
