Click here to Skip to main content
15,890,882 members

Comments by Tumwikirize (Top 1 by date)

Tumwikirize 17-Jul-14 8:27am View    
Please I need your help from you ,
please send me this project's running code


1) C project
Combinations generator
A number of clients normally want to come up with a list of words that follow a certain pattern. Sometimes the number of possible combinations is too many for them to generate. As a software engineering student who has studied C programming, you decide to lend a hand in writing software that can easily generate a combination of words. The companies therefore give you the following specifications on which you will base to generate any combination of words that match a given pattern. Only letters from A to Z, Numbers 0 to 9 and space are allowed in the combinations. To generate a pattern, one must know the following
a) Which letter(s) or number(s) must start the word
b) Which ones must be the last
c) Which ones follow after a given set
d) How many of the letters or numbers must follow/ start or end?
Once one knows all the above, a list of possible combinations is generated and written to a file which is later given to the client. The clients also want to assign the generated list of words to people. Once a combination has been assigned, it cannot be re-assigned to another person.
Your assignment : You are required to write a C project that solves the above problem, implemented using a makefile with the following files
i. Combination.c (contains the main function)
ii. CombinationAssignment.c and CombinationAssignment.h (Performs the assignment of the combinations to individuals)
iii. CombinationGenerator.c and CombinationGenerator.h (Gennerates the combinations )

For example:
I would like to generate a list of licence number plates starting with letters UA, followed by any other letter , which is followed by space, followed by three numbers, followed by one letter. The program is expected to display the following menu:
Menu
i. Start with
ii. Followed by
iii. End with
Every after any of the above options is selected, the user should enter the number of either characters or numbers or spaces required. Eg
If this is the output
Choose an option that suits you: i (I has been selected)
i- Letters?
ii- Words?
iii- Spaces?
>> I (letters have been selected)
How many ? 2 (2 has been entered)
Menu
i) Follow with
ii) End with

The process should continue until when one chooses the option of “end with”. This is when the system should stop prompting the user. It should then generate a list of combinations and put them in a file as below
UAA 000D Free
UAA 001D Free
ETC

If the client assigns the numbers, this is how the file should look like
UAA 000D Taken by Namata Carol
UAA 001D Free
UAB 112E Taken By Kansiime Teo