Implement the pseudocode below in perl, which simulates a phonebook. name this program phonebook.pl: 1. Create a hashtable with the entries (john, 1111111), (sally, 2222222) , (adam, 33333333), (sue, 444444444) , (albert, 55555555) 2. delete adam from the hashtable. 3. add (katherine, 888888888) to the table. 4. print only the names from the hashtable. You must use the key function here. 5. print only the phone numbers from the hashtable. you must use the values function here.
Code:
%phonebook = ('john' => 1111111, 'sally' => 2222222, 'adam' => 3333333,'sue'=>4444444,'albert' => 5555555); #creating hash table
delete $phonebook{'adam'}; #deleting adam
$phonebook{'katherine'} = 8888888; #adding number
@names=keys %phonebook; #getting names(keys) from table
foreach $a (@names){
print "$a\n";
}
@phone=values %phonebook; #getting numbers(values) from table
foreach $x (@phone){
print "$x\n";
}
Output:

Implement the pseudocode below in perl, which simulates a phonebook. name this program phonebook.pl: 1. Create...
CS 215 Program Design, Abstraction, and Problem Solving Programming Project #3 INTRODUCTION The goal of this programming project is to enable the student to practice designing a program that solves a problem using a class and a linked-list and developing a C++ program to implement the solution. PROJECT TASKS 1. Read the problem definition below and then analyze it before designing a solution. You will produce a document (external documentation) of this definition, analysis, and design. 2. Write a C++...
PL/SQL Auction Program 1. Create a user xyz, who is the owner of the auction. Create the schema, and package. 2. Create users x1 and x2 who are the participants in the auction. They will need acces to the package. 3. Bid on the same item and record your observations. Verify all scenarios. Upload the files with the missing code and a detailed sample run. AUCTION OWNER.TXT SQL> conn / as sysdba Connected. SQL> drop user xyz cascade; User dropped....