Click here to Skip to main content
15,896,557 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson6-Aug-19 6:16
professionalJörgen Andersson6-Aug-19 6:16 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 6:19
mvahoney the codewitch6-Aug-19 6:19 
GeneralRe: Grrrr @ .NET Pin
Shuqian Ying5-Aug-19 22:48
Shuqian Ying5-Aug-19 22:48 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:11
mvahoney the codewitch6-Aug-19 1:11 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 1:11
professionalBillWoodruff6-Aug-19 1:11 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:19
mvahoney the codewitch6-Aug-19 1:19 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 1:40
professionalBillWoodruff6-Aug-19 1:40 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:53
mvahoney the codewitch6-Aug-19 1:53 
You need to establish your input alphabet first.

Age is one input. Another is time of travel. Another is area of travel (international v domestic)

consider it a tuple.

maybe i'm forgetting something as i am out of coffee at the moment.

But that tuple there is your input you can feed to a state machine.

Normally my inputs are chars most of the time but they don't have to be. =)

anyway, i see this as a state machine. Your accept states have the discount encoded as a percentage, and the different paths that are taken depend on the value of those tuples, with each transition being able to be on one of the tuple's members. So each arrow above it has a predicate like an age range or a destination region.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 2:09
professionalBillWoodruff6-Aug-19 2:09 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:20
mvahoney the codewitch6-Aug-19 2:20 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff7-Aug-19 2:25
professionalBillWoodruff7-Aug-19 2:25 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch7-Aug-19 2:56
mvahoney the codewitch7-Aug-19 2:56 
GeneralLast week I stood at the edge... PinPopular
CodeWraith5-Aug-19 7:36
CodeWraith5-Aug-19 7:36 
PraiseRe: Last week I stood at the edge... Pin
RickZeeland5-Aug-19 7:54
mveRickZeeland5-Aug-19 7:54 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:04
CodeWraith6-Aug-19 0:04 
GeneralRe: Last week I stood at the edge... Pin
Mike Hankey5-Aug-19 8:35
mveMike Hankey5-Aug-19 8:35 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:04
CodeWraith6-Aug-19 0:04 
GeneralRe: Last week I stood at the edge... Pin
Ron Anders5-Aug-19 8:46
Ron Anders5-Aug-19 8:46 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:05
CodeWraith6-Aug-19 0:05 
GeneralRe: Last week I stood at the edge... Pin
glennPattonWork35-Aug-19 9:58
professionalglennPattonWork35-Aug-19 9:58 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:07
CodeWraith6-Aug-19 0:07 
GeneralRe: Last week I stood at the edge... Pin
Gary Wheeler6-Aug-19 7:03
Gary Wheeler6-Aug-19 7:03 
Generalrube goldberg, computer scientist Pin
honey the codewitch5-Aug-19 7:23
mvahoney the codewitch5-Aug-19 7:23 
GeneralRe: rube goldberg, computer scientist Pin
Mark_Wallace5-Aug-19 8:23
Mark_Wallace5-Aug-19 8:23 
GeneralRe: rube goldberg, computer scientist Pin
honey the codewitch5-Aug-19 9:31
mvahoney the codewitch5-Aug-19 9:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.