Help me if you can please ???
Got so far on my project and know gone brain dead!!
Project is for company called Zenith Paints ( please someone reconise this)

(The first program in the Visual C++ project is a validation program. You are required to validate three different types of records held on a single transaction file. Any records found to be invalid are to be written to an error report, all valid records will be written to a valid file held on disk. All the possible validation tests have been listed below.

The Record type needs to be validated on ALL records. If the record type is invalid (i.e. not ‘I’, ‘R’, ‘D’ or ‘C’) then the record should be written directly to the printed report. You may wish to test the length and break the details into the fields of the closest record type. This is acceptable but not mandatory)

Does this ring any bells with you? I have soted the structure side of the program but need to work out the modulus 11 checkdigit part next .

Any help would be top !!! :rolleyes:

Recommended Answers

All 6 Replies

I will get some notes together for you to look at, if this is ok??
I have made a transaction file as a .txt file in the format required and I have managed to get the file to read from A: into structures that I have set up in my program and I have created a union for these structures.
The part I have to do next is to validate a modulus 11 checkdigit code that is part of the customer number, I have a good idea on how the modulus checkdigit works but I just need to know the best way to get it to read into my program and validate.
If it best i can forward the code so far with all the info i ahve in txt format??

Been a long time since i started this project (other work comitments getting in the way as usual). The good news is that I have managed to get the check digit part of the program to work, But would really like some help in checking customer code.( I will give alot more infomation regarding the validation logic of this part of the code)
Please can anyone be of assistance or has anyone studied with Computeach in the UK ? if so please get in contact @
I wana pick ya brains!!!

>Does this ring any bells with you?
Of course. It's a common homework exercise and a common part of any business file processing. This is clearly homework, and you haven't shown an attempt, so the help you get will be minimal.

can you not post up code? that way we get evdience that your working and maybe an insight to your understanding too

I have attached my program that I have been working on.
It would be good if you could tell me if I am heading in the right direction or not.
Many Thanks.

Ps File name :- Test Data File.cpp.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.