Python:: Easy lab
# cse5120_decrule_learn.py # CSE 5120 in March with Dr. Voigt # after Nils Nilsson's GSCA algorithm # Student Programmer Name _________________________ # Student ID ____________________________ import random # the example from Nils Nilsson textbook DATATABLE = [{'id':1, 'app':1, 'rat': 0, 'inc': 0, 'bal':1, 'ok': 0},\ {'id':2, 'app':0, 'rat': 0, 'inc': 1, 'bal':0, 'ok': 0},\ {'id':3, 'app':1, 'rat': 1, 'inc': 0, 'bal':1, 'ok': 1},\ {'id':4, 'app':0, 'rat': 1, 'inc': 1, 'bal':1, 'ok': 1},\ {'id':5, 'app':0, 'rat': 1, 'inc': 1, 'bal':0, 'ok': 0},\ {'id':6, 'app':1, 'rat': 1, 'inc': 1, 'bal':0, 'ok': 1},\ {'id':7, 'app':1, 'rat': 1, 'inc': 1, 'bal':1, 'ok': 1},\ {'id':8, 'app':1, 'rat': 0, 'inc': 1, 'bal':0, 'ok': 0},\ {'id':9, 'app':1, 'rat': 1, 'inc': 0, 'bal':0, 'ok': 0}] ATTRIBS = ['app', 'rat', 'inc', 'bal'] DEC = 'ok' # continue with your program starting here ...