Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise S: The Funny Characters 1. Write a script that will ask the user for his frve favonic oods (nead from STDIN The foods will

image text in transcribed
Exercise S: The Funny Characters 1. Write a script that will ask the user for his frve favonic oods (nead from STDIN The foods will be storol as a string in a scalar, each food sparaed by a comma a.Split the scalar by the comma and create n amy h. Print the Print the Print the e.Use an array slice ofthree elemms as the Aadamay andas-gathose vales to and and namber ef array Print the new amay with spaces betwon cach of the clements he following a Replace Ssae and Clerwith Berce, and Charles bRemove W from the anay , Add Lewis and Imy to end of the wray Remove Nick from the beginning of the array Revarse the array Add Arcir to the begiming of the aray Sont the aray. Remove Chet and Delly and replace them with Chr and Dnicl 3. Wrile a scrit called elective that will contain a hash. The keys will he code language. Iniro to UNIX, s ell Programming, Perl Programming a Sont the ha by vallues and perist i print a line resemNing the following You wall b aling Shell Progroming ns seest . Modey your elective scripe so oduce output resembling the output below The ser will e course name will be printed Ih doesn' maer if the user aypes in the EDP mber w upper- or lowercase letties. A EDP mamber from 's address and thank him Output should resemble the fllowing REGISTRATION INFORMATION FOR SPRING QUARTER Today'sdale is Wed Ape 19 17 40: 19 PDT 014 owr fall mame Fred Z Sachen hat is you Social Secity Nuber o004-34-1234 EDP NUMBERS AND ELECTIVES CPRESIC Programming The course yos will be taking 'Peri Prvgramming Restation confimation will your addre a 424 HOBART ST CHICO CA93926 Thavnk you. Fred. or orolg S. Write a scrie called Adem thar will do the ollowing a Assign the contents of the dstehook fiie to an array (The daebook ile is on the CD that accompanies this hook) b. Ask the aner for the name od a person to ind. Use the builin grop fanction to find the elemens of the aeray that coelain the pesen and sumber of times that person is found in the array. The seach wll ignoe case e.Uscthcaplir fuctim to get the current phanc 1mber. d. Use he splav function to replace the current plume nuther with now phone er, or use any of the other bill-in amay functions to prodace etput that resembles the Exercise S: The Funny Characters 1. Write a script that will ask the user for his frve favonic oods (nead from STDIN The foods will be storol as a string in a scalar, each food sparaed by a comma a.Split the scalar by the comma and create n amy h. Print the Print the Print the e.Use an array slice ofthree elemms as the Aadamay andas-gathose vales to and and namber ef array Print the new amay with spaces betwon cach of the clements he following a Replace Ssae and Clerwith Berce, and Charles bRemove W from the anay , Add Lewis and Imy to end of the wray Remove Nick from the beginning of the array Revarse the array Add Arcir to the begiming of the aray Sont the aray. Remove Chet and Delly and replace them with Chr and Dnicl 3. Wrile a scrit called elective that will contain a hash. The keys will he code language. Iniro to UNIX, s ell Programming, Perl Programming a Sont the ha by vallues and perist i print a line resemNing the following You wall b aling Shell Progroming ns seest . Modey your elective scripe so oduce output resembling the output below The ser will e course name will be printed Ih doesn' maer if the user aypes in the EDP mber w upper- or lowercase letties. A EDP mamber from 's address and thank him Output should resemble the fllowing REGISTRATION INFORMATION FOR SPRING QUARTER Today'sdale is Wed Ape 19 17 40: 19 PDT 014 owr fall mame Fred Z Sachen hat is you Social Secity Nuber o004-34-1234 EDP NUMBERS AND ELECTIVES CPRESIC Programming The course yos will be taking 'Peri Prvgramming Restation confimation will your addre a 424 HOBART ST CHICO CA93926 Thavnk you. Fred. or orolg S. Write a scrie called Adem thar will do the ollowing a Assign the contents of the dstehook fiie to an array (The daebook ile is on the CD that accompanies this hook) b. Ask the aner for the name od a person to ind. Use the builin grop fanction to find the elemens of the aeray that coelain the pesen and sumber of times that person is found in the array. The seach wll ignoe case e.Uscthcaplir fuctim to get the current phanc 1mber. d. Use he splav function to replace the current plume nuther with now phone er, or use any of the other bill-in amay functions to prodace etput that resembles the

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago

Question

What is sociology and its nature ?

Answered: 1 week ago

Question

What is liquidation ?

Answered: 1 week ago

Question

Explain the different types of Mergers.

Answered: 1 week ago