Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a LEX program in c to get the following output: souce file: Expected output file Output.txt Malaysia 1109090 Hawaii 8081234567 8089876554 8769787878 India 8081234567

Write a LEX program in c to get the following output:

souce file:image text in transcribedExpected output file

Output.txt

Malaysia 1109090

Hawaii 8081234567 8089876554 8769787878

India 8081234567 8089876554 8769787878 7056565566

Jamaica 8769787878

Japan 8081234567 8089876554

format for the countries

image text in transcribed

GNU nano 6.2 8081234567 1109090 8089876554 8769787878 7056565566 ((1)[09]{6}) \{phone_print (0, yytext, yyout );} ((808)[09]{7}) \{phone_print(1,yytext, yyout );} ([69][09]{9}) \{phone_print(2, yytext, yyout ); } (876[09]{7}) \{phone_print(3, yytext, yyout) ;} ([69](0)[09]{8}) phone_print(4, yytext, yyout );}

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

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

ISBN: 1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

undefined

Answered: 1 week ago

Question

d. Present your teams conclusions to the class.

Answered: 1 week ago

Question

The amount of work I am asked to do is reasonable.

Answered: 1 week ago

Question

The company encourages a balance between work and personal life.

Answered: 1 week ago