Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

1. Write a script called elective that will contain a hash. The keys will be code numbers2CPR2B, 1UNX1B, 3SH414, 4PL400. The values will be course namesC 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 doesnt matter if the user types in the EDP number with upper- or lowercase letters. A message will confirm the users address and thank him for enrolling. Output should resemble the following:

REGISTRATION INFORMATION FOR SPRING QUARTER

Todays 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

1UNX1B | 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.

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_2

Step: 3

blur-text-image_3

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

Samsung Galaxy S23 Ultra Comprehensive User Manual

Authors: Leo Scott

1st Edition

B0BVPBJK5Q, 979-8377286455

More Books

Students also viewed these Databases questions

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago