Checkques 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/Checkques.rb +62 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5d6ff9478b4530c157c4aa70cfaf37e077310b55
4
+ data.tar.gz: b5176dc9cfb71f3b05fa179df091dd220077e093
5
+ SHA512:
6
+ metadata.gz: 144f4aba52be8074a6140596d039b17fca4d1829ce17813b2680c34a17568dd21c23d0ab14b75b877f14df23631dfff4362c3001e04596ae119b4757dc057355
7
+ data.tar.gz: 152607515778db8519cffbb445293f12f88f3e31fa155c5c3d2ee062fdb799d618e40951143ef42a5a112af1fd48f7768970b4928e9c8e1356cb5a4da3c817cb
data/lib/Checkques.rb ADDED
@@ -0,0 +1,62 @@
1
+
2
+
3
+ class Checkans
4
+
5
+ def self.Checkques(ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8, ans9, ans10)
6
+
7
+ counter == 0
8
+ #Addition questions
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
+ #Subtraction questions
24
+
25
+ if ans4 == 1
26
+ counter = counter + 10
27
+ end
28
+
29
+ if ans5 == 1
30
+ counter = counter + 10
31
+ end
32
+
33
+ if ans6 == 1
34
+ counter = counter + 10
35
+ end
36
+
37
+ #Multiplication Questions
38
+
39
+ if ans7 == 1
40
+ counter = counter + 10
41
+ end
42
+
43
+ if ans8 == 1
44
+ counter = counter + 10
45
+ end
46
+
47
+ #Division questions
48
+
49
+ if ans9 == 1
50
+ counter = counter + 10
51
+ end
52
+
53
+ if ans10 == 1
54
+ counter = counter + 10
55
+ end
56
+ return counter
57
+ end
58
+ end
59
+
60
+
61
+
62
+
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Checkques
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/Checkques.rb
20
+ homepage: http://rubygems.org/gems/checkques
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.2.2
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Checks whether or not the answer is correct
43
+ test_files: []