Write some Software
$30-250 SGD
Paid on delivery
Data File Validation
You must write a C program that reads in a data file and validates the fields to ensure they conform to the file specification below (length of data i.e. < 50 characters and numeric ranges i.e. 1-1024).
The output from the program should be two files, one file containing the erroneous records and the other a suitable file for the simulator that should be saved as "[login to view URL]". The program should prompt for the input files filename that is to be processed.
Functional Specification
The program at start up should display a banner stating your name, course and id.
The program must prompt for the name of the input file. If it doesn't exist the program should stop with an error message.
The program must process every line in the file by reading each line and breaking down the data and storing it in a struct data structure that you must design. The program should also store all the valid records in memory and only write them out to file when the text file has been fully processed. (HINT: malloc, calloc)
Each packet should have all the fields validated such that they conform to the table below.
Source
1-1024
Destination
1-1024
Type
0-10
Port
1-1024
Data
1-50 Char
All records that conform to the specification should be output to a file of the name "[login to view URL]"
All invalid records must be placed in a file named "[login to view URL]". As the program runs it must display any records that have been rejected due to failing validation onto the screen with a sequence number incremented as each error is found.
The program must display at the end of the run the number of packets placed in the [login to view URL] file and the number of error records removed.
Project ID: #8929240
About the project
16 freelancers are bidding on average $95 for this job
Hi, I'd like to help. My full profile on this site: 280+ completed projects, customer rating 5.0/5 (click on my name).
Hi, client. Your task is no problem for me. Obviously there is no problem. I can complete it within half a day. Please help me get a star and a good review. Thank.
Hello! I am ready to help you with your task! What kind of programming is needed? Qt (C++) is ok? Please do not hesitate to contact me via messenger!
With around 4+ years of experience in IT field B.E. in IT M.Tech. in CS But without looking at the actual requirement I can't commit the timeframe/budget required to complete this task. I am good in this kind o More
C language - Data file validation project I am able to provide completed .c and .h source files which will compile into the described program within three days.
i have a team work, we have experience with c/c++ language programming. i think we can help you do this project. please contact me if you need. thank you
Hello, I teach C+++ to engineers world-wide and also help students a LOT(and teach students too) *** UPDATE ** I have done a demo for this program in Viswual C++ (for Windows). If you want, contact me and I will More
Fully developed, tested and documented. There are a number of traps with this project that need to be carefully worked around to get a full solution.
In addition to the C source code and the header files: Do you also want a complete project setup for an IDE / build environment (e.g. Visual Studio or Linux make files)?
i already did it i can get it to you right now, its already working, if you need a working exe i got it. if you need a source.c file i got it also enjoy
I have a lot of experience in programming in C including file reading and writing and data structures. I am willing to negotiate on price and time of completion - please contact me for more information :)
I have a BSc in IT from Curtin university. Currently working as a lecturer. I have several years experience in C programming. I Would d quality work. Thank you
Hi Sir, I have just started bidding on freelancer projects but that doesn't mean i am a new bie. I have 9 years experience in C programming and developent only and i can provide you a very nice C program for the pr More