Click here to Skip to main content
14,356,134 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 7:16
protectorJörgen Andersson6-Aug-19 7:16 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 7:19
memberhoney the codewitch6-Aug-19 7:19 
GeneralRe: Grrrr @ .NET Pin
Shuqian Ying5-Aug-19 23:48
memberShuqian Ying5-Aug-19 23:48 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:11
memberhoney the codewitch6-Aug-19 2:11 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 2:11
mveBillWoodruff6-Aug-19 2:11 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:19
memberhoney the codewitch6-Aug-19 2:19 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 2:40
mveBillWoodruff6-Aug-19 2:40 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:53
memberhoney the codewitch6-Aug-19 2: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 3:09
mveBillWoodruff6-Aug-19 3:09 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 3:20
memberhoney the codewitch6-Aug-19 3:20 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff7-Aug-19 3:25
mveBillWoodruff7-Aug-19 3:25 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch7-Aug-19 3:56
memberhoney the codewitch7-Aug-19 3:56 
GeneralLast week I stood at the edge... Pin
CodeWraith5-Aug-19 8:36
memberCodeWraith5-Aug-19 8:36 
PraiseRe: Last week I stood at the edge... Pin
RickZeeland5-Aug-19 8:54
mveRickZeeland5-Aug-19 8:54 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:04
memberCodeWraith6-Aug-19 1:04 
GeneralRe: Last week I stood at the edge... Pin
Mike Hankey5-Aug-19 9:35
professionalMike Hankey5-Aug-19 9:35 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:04
memberCodeWraith6-Aug-19 1:04 
GeneralRe: Last week I stood at the edge... Pin
Ron Anders5-Aug-19 9:46
memberRon Anders5-Aug-19 9:46 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:05
memberCodeWraith6-Aug-19 1:05 
GeneralRe: Last week I stood at the edge... Pin
glennPattonWork5-Aug-19 10:58
professionalglennPattonWork5-Aug-19 10:58 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:07
memberCodeWraith6-Aug-19 1:07 
GeneralRe: Last week I stood at the edge... Pin
Gary Wheeler6-Aug-19 8:03
memberGary Wheeler6-Aug-19 8:03 
Generalrube goldberg, computer scientist Pin
honey the codewitch5-Aug-19 8:23
memberhoney the codewitch5-Aug-19 8:23 
GeneralRe: rube goldberg, computer scientist Pin
Mark_Wallace5-Aug-19 9:23
memberMark_Wallace5-Aug-19 9:23 
GeneralRe: rube goldberg, computer scientist Pin
honey the codewitch5-Aug-19 10:31
memberhoney the codewitch5-Aug-19 10: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.