Checkquestions 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/Checkquestions.rb +67 -0
  3. metadata +43 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ad09f3d1c62980f183b729a859c28ed3e5bf5102
4
+ data.tar.gz: aac064e8802c750d6f2c38c06908a0cf905a38c8
5
+ SHA512:
6
+ metadata.gz: bcdab99bfaa7dff1cb8bbf0cae86d154d6292c536dbbda5a66b96ad4976e15abb2abf75573735ee2a09a5a1a020680c388731952df72598c3bf3247a573b2e77
7
+ data.tar.gz: 0797db49a0d3d6aaacc672c8955038cc5fd7b8e406bc5cf3b2469e965b515a63cd68d02024a40bb53c8e03bec0e873e12fcdd28af4a27669f0ae9d9fdc85d065
@@ -0,0 +1,67 @@
1
+
2
+ require 'Mathsquestions'
3
+ class Checkans
4
+
5
+ def self.Checkquestions(ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8, ans9, ans10, ans11, ans12)
6
+
7
+ counter == 0
8
+ #Easy
9
+
10
+ if ans1 == 1
11
+ counter = counter + 10
12
+ end
13
+
14
+ if ans2 == 1
15
+ counter = counter + 10
16
+ end
17
+
18
+ if ans3 == 1
19
+ counter = counter + 10
20
+ end
21
+
22
+
23
+ if ans4 == 1
24
+ counter = counter + 10
25
+ end
26
+
27
+ #Medium
28
+ if ans5 == 1
29
+ counter = counter + 10
30
+ end
31
+
32
+ if ans6 == 1
33
+ counter = counter + 10
34
+ end
35
+
36
+ if ans7 == 1
37
+ counter = counter + 10
38
+ end
39
+
40
+ if ans8 == 1
41
+ counter = counter + 10
42
+ end
43
+
44
+ #Hard
45
+
46
+ if ans9 == 1
47
+ counter = counter + 10
48
+ end
49
+
50
+ if ans10 == 1
51
+ counter = counter + 10
52
+ end
53
+
54
+ if ans11 == 1
55
+ counter = counter + 10
56
+ end
57
+
58
+ if ans12 == 1
59
+ counter = counter + 10
60
+ end
61
+
62
+ return counter
63
+ end
64
+ end
65
+
66
+
67
+
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Checkquestions
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jack Healy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Answer checker
14
+ email: x11459018@student.ncirl.ie
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/Checkquestions.rb
20
+ homepage: http://rubygems.org/gems/checkquestions
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubyforge_project:
39
+ rubygems_version: 2.4.5
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Checks whether or not the answer is correct
43
+ test_files: []