16,012,821 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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