Question: LABWORK 1 - Section 2 . 1 Your input file contains numbers. Each three digit of a number is separated by , and

LABWORK 1- Section 2.1
Your input file contains numbers. Each three digit of a number is separated by "," and in the end, it contains a floating-point value. Write the appropriate lex code to obtain the desired outputs.
Writing the correct regular expression (60 points)
You need to write a regular expression to gather the desired output as in the "exampleOutput.txt" file (50 points)
If you want to reject the incorrect ones you need to write another regular expression (10 points)
The last regular expression can be . In
Writing the necessary C code (40 points)
Warning: Your codes should not work with only example inputs. Write your code according to the given pattern.
PS: You can use the ./a.out input.txt > output.txt command to write your output to a file.
\table[[Description,Examples,Action,Output],[Numbers,123,689.23,Print the count of the,123,689.23 has 1,],[,12,445,123.0,commas,12,445,123.0 has 2,]]
LABWORK 1 - Section 2 . 1 Your input file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!