C Programming Project Problems..

I am just having few problems with the program again. This is a followup from the previous post titled: "C Programming Project"

Just in case, i am going to post u the question or the task.

Hey guyz,

I got a c programming project due in the next 2 days.. and i am stuck.....

Here is the project:

Write a program that will simulate a slot machine.
The program should start by presenting the user with a menu: 2 dollars for regular prizes or 4 dollars for increased prize values or 0 to stop. Make sure you validate user’s input.

The program then should generate randomly three values. The program should display to the user the combination.

If the user played only 2 dollars, for all lucky combinations offer as a prize a regular prize of 50 dollars.
If the user played 4 dollars, offer as first prize 500 dollars, second prize 250, third prize 100 dollars.

For an unlucky combination offer 0 dollars.

The program should continue the execution until the user chooses to quit.
Before quitting the program should display to the user the amount of money the user spent and won during the game.

[ok. these are the functions that i am supposed to implement in the project]

But, for the $4 entry, All of them coming out right except when the combination is: B-C-C, A-B-B, C-B-B, A-C-C

The output is:

1. So, for B-C-C its showing: Congratulations! you have won $250
2. and for A-B-B its saying: Congratulation! you have won $500
3. and for C-B-B its saying: Congratulations! you have won $100
4. and for A-C-C its saying: Congratulations! you have won $500

So, something is going really wrong, when the last 2 combinations are the same....I can't figure out whats going on here..

I mean..it is supposed to check the combination for equality..., hmm, why is it giving the output like that for the above..??

Featured Post

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control. For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…

Preface
I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…