Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercises: 1. Write a script called elective that will contain a hash. The keys will be code numbers-2CPR2B IUNXIB, 3SH414, 4PL400. The values will be

image text in transcribed
image text in transcribed
Exercises: 1. Write a script called elective that will contain a hash. The keys will be code numbers-2CPR2B IUNXIB, 3SH414, 4PL400. The values will be course names-C Language, Intro to UNIX, Shell Programming, Perl Programming. a. Sort the hash by values and print it. b. Ask the user to type the code number for the course he plans to take this semester and print a line resembling the following: You will be taking Shell Programming this semester. 2. Modify your elective script to produce output resembling the output below. The user will be asked to enter registration information and to select an EDP number from a menu. The course name will be printed. It doesn't matter if the user types in the EDP number with upper or lowercase letters. A message will confirm the user's address and thank him for enrolling. Output should resemble the following: REGISTRATION INFORMATION FOR SPRING QUARTER Today's date is Wed Apr 19 17:40:19 PDT 2014 Please enter the following information: Your full name: Fred Z. Stachelin What is your Social Security Number (xxx-xx-xxxx): 004-34-1234 Your address: 1424 Hobart St Chico, CA 95926 "EDP" NUMBERS AND ELECTIVES: 2CPR2B | C Programming IUNXIB Intro to UNIX 4PL400 Perl Programming 3SH414 Shell Programming What is the EDP number of the course you wish to take? 4pl400 The course you will be taking is "Perl Programming." Registration confirmation will be sent to your address at 1424 HOBART ST. CHICO, CA 95926 Thank you, Fred, for enrolling The subject is Perl scripting. The software i use is Padre, the perl IDE Exercises: 1. Write a script called elective that will contain a hash. The keys will be code numbers-2CPR2B IUNXIB, 3SH414, 4PL400. The values will be course names-C Language, Intro to UNIX, Shell Programming, Perl Programming. a. Sort the hash by values and print it. b. Ask the user to type the code number for the course he plans to take this semester and print a line resembling the following: You will be taking Shell Programming this semester. 2. Modify your elective script to produce output resembling the output below. The user will be asked to enter registration information and to select an EDP number from a menu. The course name will be printed. It doesn't matter if the user types in the EDP number with upper or lowercase letters. A message will confirm the user's address and thank him for enrolling. Output should resemble the following: REGISTRATION INFORMATION FOR SPRING QUARTER Today's date is Wed Apr 19 17:40:19 PDT 2014 Please enter the following information: Your full name: Fred Z. Stachelin What is your Social Security Number (xxx-xx-xxxx): 004-34-1234 Your address: 1424 Hobart St Chico, CA 95926 "EDP" NUMBERS AND ELECTIVES: 2CPR2B | C Programming IUNXIB Intro to UNIX 4PL400 Perl Programming 3SH414 Shell Programming What is the EDP number of the course you wish to take? 4pl400 The course you will be taking is "Perl Programming." Registration confirmation will be sent to your address at 1424 HOBART ST. CHICO, CA 95926 Thank you, Fred, for enrolling The subject is Perl scripting. The software i use is Padre, the perl IDE

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

Students also viewed these Databases questions

Question

LOQ 13-22: What can we do to promote peace?

Answered: 1 week ago