hey guys,
can anyone give me the test cases to test
1. State of the art Micro processor embedded Toaster
2. Microprocessor Embedded Elevator system?
Printable View
hey guys,
can anyone give me the test cases to test
1. State of the art Micro processor embedded Toaster
2. Microprocessor Embedded Elevator system?
erm..sure
i can't :(
but seriously... what, pray tell, are you talking about?
1) 2 slices of bread
2) a small elephant
That should get you started...Code:if( toaster.toast.color == COLOR_CHARCOAL || toaster.toast.flambing == TRUE )
{
toaster.springtension *= 100;
toaster.eject = TRUE;
}
Quzah.
The only test that needs to be done here is a blood alcohol level test on krithi. With any luck this thread will be closed very soon...
if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
thanx
if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
thanx
Stop posting new threads with the same basic topic. You need to clarify yourself by what you mean as a "test case".
I'm assuming it's amazingly simplistic to figure out the answer here. Seriously, what happens in a coke machine?
1) You put a coin or bill in.
2) The LED lights up telling you how much money you have.
3) You press a button.
4) The machine either:
... a) Flashes a light if there is nothing to dispense in what you press.
... b) Drops a drink.
5) Spits out change.
So given that, what's so difficult about figuring out test cases?
Quzah.
I think we can all read your question and assume what it is that you mean, but you should also realize that we aren't in class with you. For future reference you should be sure to ask you questions clearly.
> Flashes a light if there is nothing to dispense in what you press.
if ( Coke <= 0 || MoneyAmount < CostOfDrink )
Print("%s", CostOfButton)
else
DispensePop()
MinusFunds()
There's a test case to fool with. It might not be _exactly_ what you need, but it should get you started.