Friday, 29 April 2016

37. Questionnaire Extended (Name, Class Date, Activity Code)

#Participant data:

print ('Whats your name?')
NAME = input()
print ()
print (NAME + ', which is your class?')
CLASS = input ()
print ()

#Questionaire CODE
print ('ASK YOUR TEACHER FOR THE QUESTIONNAIRE CODE')
CODE = input()
print()

#Scores are set to 0
a=0
b=0
TOTAL = a+b

#Q1
print("Q1: Which is ...  ")

Q1 = ''
Q1 = input()

if Q1 ==("yes"):
    print ('correct')
    TOTAL = TOTAL + 1
elif Q1 ==("butt"):
    print ("10 extra points")
    TOTAL = TOTAL + 10
else:
    print ('incorrect')
    TOTAL = TOTAL - 1
print ('your points are ?...')
print (TOTAL)

#Q2
print("Q2: Why did ... ")

Q2 = ''
Q2 = input()

if Q2 ==("yes"):
    print ('correct')
    TOTAL = TOTAL + 1

elif Q2 ==("butt"):
    print ("10 extra points")
    TOTAL = TOTAL + 10
else:
    print ('incorrect')
    TOTAL = TOTAL - 1
print ('your points are ?...')
print (TOTAL)

#Q3 Copy and paste #1 and modify

#SCORES and DATE

import time
localtime = time.asctime( time.localtime(time.time()) )

print()
print ('****************** SHOW THIS TO TEACHER TO CHECK ***************')
print ('Name: ' + NAME)
print ('Class: '+ CLASS)
print ('Total Points: ... '), print(TOTAL)
print ('Activity CODE: ' + CODE)
print ('Today is: ' + localtime)