Author |
Message |
lovevc
|
Posted: Mon Feb 04, 2008 10:40 pm Post subject: Beginning-Exit Loop |
|
|
Create a colour mastermind program that allows the user to enter a series of 3 colours and will then check if they guessed the colours correctly.
The colour choices should be referred to by a single capital letter (e.g. R for red).
You must give the user at least 6 colours to choose between.
Your program will count the number of times it takes the user to guess the correct colour series.
Define the correct colour series as 3 separate constants.
After each series of guesses you must tell the user whether they got any of the colours correctly.
Make sure you put a title centered on the output screen and give an introduction.
When the user finally gets the correct colour series, congratulate them and tell them how many guesses it took for them to get the right answer.
The program will wait on the output screen until the user types the word exit
SOMEBODY HELP ME DO THIS PLZ!!!! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
syntax_error
![](http://compsci.ca/v3/uploads/user_avatars/196798963948cf16794b6e5.jpg)
|
Posted: Mon Feb 04, 2008 10:52 pm Post subject: Re: Beginning-Exit Loop |
|
|
get a start on your own first create a attack plan; DO IT ON PAPER FIRST!
I cant stress how much you should get the logic on PAPER first then code it; btw no one here will tell you or do your code for you not the point of this forum
After you get the idea how to do it post the plan then we will help with how to play out that logic
so first TRY it yourself. |
|
|
|
|
![](images/spacer.gif) |
TokenHerbz
![](http://compsci.ca/v3/uploads/user_avatars/717170395558e628d9452b.jpg)
|
Posted: Mon Feb 04, 2008 11:51 pm Post subject: RE:Beginning-Exit Loop |
|
|
I'll do it for all your bits! and +kara rating!
......not... |
|
|
|
|
![](images/spacer.gif) |
Carey
![](http://mirkon.sneezepower.com/images/multilockon.gif)
|
Posted: Tue Feb 05, 2008 12:03 pm Post subject: RE:Beginning-Exit Loop |
|
|
we do not just give out programming assignments here, we provide help. Do something yourself first, then show us what you have and we will give you suggestions on how to improve. |
|
|
|
|
![](images/spacer.gif) |
|