Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Perl program that implements a phone book as follows: 2.When the program is run, it prints a main menu on the screen, which

Write a Perl program that implements a phone book as follows:

2.When the program is run, it prints a main menu on the screen, which consists of three messages, as follows:

1- Enter a new name and phone number

2- Search for a phone number 3- Exit

3. The program then waits until the user enter an integer number from 1 to 3 and ignores the rest of the inputs

A. If the user enters 1, the program asks for the name and phone number of the person and stores them. Then, the program shows the main menu again.

B. If the user enters 2, the program asks for the name of the person and returns his/her phone number or a message that the number was not found. Then, the program waits for the user to press any key to show the main menu again.

C. If the user enters 3, the program terminates.

4- In your program,

a.Use a Perl hash table to store the data.

b.Use loop and selection statements to control the flow.

c. Use subprograms to implement the functionalities.

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

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

More Books

Students also viewed these Databases questions

Question

Understand the aspects of developing a social media plan? LO.1

Answered: 1 week ago

Question

(e) What is the resolution? Pg45

Answered: 1 week ago