Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In perl 1. Create an array with a list of ASCII values and then display it sorted. Example cat, Dog, Fish, Rabbit, Turtle, Ferret, batman,

In perl

1. Create an array with a list of ASCII values and then display it sorted. Example cat, Dog, Fish, Rabbit, Turtle, Ferret, batman, goofy, Lion, Tiger.

2. Modify exercise #1 where you made an array and sorted it to sort it properly using the method we learned in class. If you had already done this when you submitted it the first time, please submit a copy with this assignment so I don't inadvertently take points off.

3. Write a program that prompts the user for a string, and then display it back, reversed, to the user with hyphens between each of the letters in the string. If they entered This is a test you would display t-s-e-t- -a- -s-i- -s-i-h-T. It is ok if you have an extra hyphen before of after the string. In a production environment we could count the number of elements in the array and use while loop to not put the extra hyphen but the goal of the exercise was to show you how to reverse strings, the contents of an array and to use split.

4. Prompt the user for 5 strings and have the script populate an array with the 5 strings. Then sort the array and display the elements to the user

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago