12.07.2015 Views

flex Examples - LPIS

flex Examples - LPIS

flex Examples - LPIS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

26 Flex Example Listings*/action ask_questionsdo restartand ask firstnameand ask interestsand ask heightand ask ageand ask company_sizeand ask transport_typeand ask passwordand ask confirm_passwordand ask any_old_questionand ask any_other_questionand output_answers .action output_answersdo write('The user''s first name is: ')and write( firstname )and nland write('interests are: ')and write( interests )and nland write('height is: ')and write( height )and nland write('age is: ')and write( age )and nland write('company size is: ')and write( company_size )and nland write('transport types are: ')and write( transport_type )and nland write('any old question is: ')and write( any_old_question )and nland write('any other question is: ')and write( any_other_question )and nl .% The firstname question asks for typed input from the userquestion firstnamePlease enter your first name ;input name .% The interests question uses the default input which returns a set.% Because the question text is quoted the carriage returns are included% in the dialog question field.question interests'Please type in your interests.[Each interest should be separated by a spaceInterests that consist of more than one word should be quotede.g. reading surfing 'table tennis' etc...]' .A Guide to the Flex Expert System Toolkit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!