from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'questionnaire' players_per_group = 4 num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): def total_payoff(self): totalpayoff = self.participant.vars['final_payoff'] + 100 return self.participant.vars['final_payoff'] + 100 dob = models.StringField() gender = models.StringField(choices = ['Male', 'Female', 'Other'], widget = widgets.RadioSelectHorizontal, label = "Gender") caste = models.StringField(choices = ['General', 'OBC', 'SC', 'ST', 'Others'], widget = widgets.RadioSelectHorizontal, label = "Caste Category") religion= models.StringField(choices = ['Hindu', 'Muslim', 'Sikh', 'Christian', 'Jain', 'Buddhist', 'Others'], widget = widgets.RadioSelectHorizontal, label = "Religion") marital_status = models.StringField(choices = ['Unmarried', 'Married'], widget = widgets.RadioSelectHorizontal, label = "Marital Status") pa_education = models.StringField(choices = [ 'Primary', 'Secondary', 'Class 10', 'Class 12', 'Graduate', 'Post-Graduate', 'Above Post-Graduate'], widget = widgets.RadioSelectHorizontal, label = "Father's Highest Level of Education") ma_education = models.StringField(choices = ['Primary', 'Secondary', 'Class 10', 'Class 12', 'Graduate', 'Post-Graduate', 'Above Post-Graduate'], widget = widgets.RadioSelectHorizontal, label = "Mother's Highest Level of Education") class10 = models.FloatField(label = "Your marks in Class 10 (in % without % sign, ex: for 74.16% enter 74.16") class12 = models.FloatField(label="Your marks in Class 12 (in % without % sign, ex: for 74.16% enter 74.16") educ = models.IntegerField( choices=[ [1, 'Bachelor of Arts'], [2, 'Bachelor of Commerce/Business Administration'], [3, 'Bachelor of Science'], [4, 'Bachelor of Engineering/Technology'], [5, 'MBBS'], [6, 'Chartered Accountancy'], [7, 'LLB'], [8, 'Master of Arts'], [9, 'Master of Commerce'], [10, 'Master of Science'], [11, 'Master of Engineering/Technology'], [12, 'Masters in Business Administration'], [13, 'M-Phil/PhD'], [14, 'Others'], ], label="Your previous level of education:") educ_other = models.StringField(label="Please specify, if you have indicated others", initial='0') entry_exam = models.StringField(choices = ['CAT', 'GMAT','GRE', 'IIMB test', 'Other'], widget = widgets.RadioSelectHorizontal, label = "Entrance exam taken for the course at IIMB") entry_other = models.StringField(label="Please specify, if you have indicated others", blank = True) entry_score = models.FloatField(label="Your score in entrance exam ( for CAT enter percentile , for IIMB test enter '0', for others enter your score") previous_work_ex = models.StringField(choices = ['Yes', 'No'], widget = widgets.RadioSelectHorizontal, label = "Previous Work Experience") num_work_ex = models.IntegerField(min=0, label="Time duration of Work Experience (In Months)", initial=0) industry_work_ex = models.IntegerField( choices=[ [1, 'Management Consulting'], [2, 'Corporate Finance & Commercial Banking'], [3, 'General Management'], [4, 'Information Technology'], [5, 'Sales & Marketing'], [6, 'Operations & Technology Consulting'], [7, 'Business Analytics'], [8, 'e-Commerce / Startup'], [9, 'Govt/PSUs'], [10, 'Others'], [11, 'Not Worked Before'],], label="Sector Previously Worked In:") industry_work_ex_other = models.StringField(label="Please specify the sector/industry if you have indicated others", initial='0') prev_inc = models.FloatField(min=0, label="What was your gross annual salary before you joined IIMB. Mention the figure in Lakhs per anum. (For example, ₹ 10,00,000 should be written as 10.00) Please put 0 if you have not work before." , initial=0) b1 = models.IntegerField(min=0, label="A set of Book and Pen cost Rs.110. The Book Costs Rs.100 more than the pen. How much does the pen cost? (Rs)") b2 = models.IntegerField(min=0, label="A manufacturing plant takes has 5 machines that take 5 minutes to make 5 soaps. How much long would it take to make 100 soaps? (In Minutes)") b3 = models.IntegerField(min=0, label = "In a lake, there is patch of weed growing. The patch doubles in size every day. If it take 48 days to for the patch to cover the entire lake, how many days will it take to cover half the lake? (In Days)") c1 = models.IntegerField(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],label="") c2 = models.IntegerField(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],label="") c3 = models.IntegerField(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],label="") c4 = models.IntegerField(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],label="") d1 = models.StringField(choices = ['Yes', 'No'], widget = widgets.RadioSelectHorizontal, label = "1. Do you tend to procrastinate?") d2 = models.IntegerField(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], label="") #d3 = models.FloatField(min=0, label="") #d4 = models.FloatField(min=0, label="") #d5 = models.FloatField(min=0, label="") dchoice1 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice2 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice3 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice4 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice5 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice6 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice7 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice8 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice9 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") dchoice10 = models.StringField(choices = ['A', 'B'], widget = widgets.RadioSelectHorizontal, label = "") e1 = models.IntegerField(min=0, max=10000, label="") e2 = models.IntegerField(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],label="") e3 = models.StringField(choices = ['Most people can be trusted', 'Need to be very careful'], widget = widgets.RadioSelect, label="") #f1 = models.StringField(choices = ['Not at all Important', 'Not very Important', 'Rather Important', 'Very Important'], widget = widgets.RadioSelectHorizontal, label = "") #f2 = models.StringField(choices = ['Not at all Important', 'Not very Important', 'Rather Important', 'Very Important'], widget = widgets.RadioSelectHorizontal, label = "") #f3 = models.StringField(choices = ['Not at all Important', 'Not very Important', 'Rather Important', 'Very Important'], widget = widgets.RadioSelectHorizontal, label = "") #f4 = models.StringField(choices = ['Not at all Important', 'Not very Important', 'Rather Important', 'Very Important'], widget = widgets.RadioSelectHorizontal, label = "") #f5 = models.StringField(choices = ['Not at all Important', 'Not very Important', 'Rather Important', 'Very Important'], widget = widgets.RadioSelectHorizontal, label = "") #f6 = models.StringField(choices = ['Not at all Important', 'Not very Important', 'Rather Important', 'Very Important'], widget = widgets.RadioSelectHorizontal, label = "") #f7 = models.StringField(choices = ['Not at all Happy', 'Not very Happy', 'Rather Happy', 'Very happy'], widget = widgets.RadioSelectHorizontal, label = "") g1 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g2 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g3 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g4 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g5 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g6 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g7 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g8 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g9 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") g10 = models.StringField(choices = ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'], widget = widgets.RadioSelectHorizontal, label = "") i1 = models.FloatField(min=0, max=4, label="") i2 = models.FloatField(min=0, max=4, label="") i3 = models.FloatField(min=0, max=100, label="") i4 = models.IntegerField( choices=[ [1, 'Management Consulting'], [2, 'Corporate Finance & Commercial Banking'], [3, 'General Management'], [4, 'Information Technology'], [5, 'Sales & Marketing'], [6, 'Operations & Technology Consulting'], [7, 'Business Analytics'], [8, 'e-Commerce / Startup'], [9, 'Govt/PSUs'], [10, 'Others']],label="" ) i5 = models.FloatField(min=0, label="") i6 = models.FloatField(min=0, label="") i7 = models.StringField(label="", initial='0') #j1 = models.StringField(choices = ['Most people can be trusted', 'Need to be very careful'], widget = widgets.RadioSelect, label="") k1 = models.StringField(choices=['Paytm', 'G-Pay', 'Cash-in-Campus'], widget=widgets.RadioSelectHorizontal, label="") k2 = models.StringField(label="Please mention the account details (if Paytm or Gpay), 0 otherwise" , initial='0') totalpayoff = models.FloatField()