| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package App::Math::Tutor; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
40798
|
use warnings; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
60
|
|
|
4
|
2
|
|
|
2
|
|
8
|
use strict; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
79
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
App::Math::Tutor - lets one generate exercises for mathematical topic |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=cut |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = '0.005'; |
|
13
|
|
|
|
|
|
|
|
|
14
|
2
|
|
|
2
|
|
1081
|
use Moo; |
|
|
2
|
|
|
|
|
22350
|
|
|
|
2
|
|
|
|
|
10
|
|
|
15
|
2
|
|
|
2
|
|
3354
|
use MooX::Cmd; |
|
|
2
|
|
|
|
|
5260
|
|
|
|
2
|
|
|
|
|
10
|
|
|
16
|
2
|
|
|
2
|
|
179398
|
use MooX::Options; |
|
|
2
|
|
|
|
|
2074
|
|
|
|
2
|
|
|
|
|
12
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# shows which categories of exercises are supported |
|
21
|
|
|
|
|
|
|
mtut |
|
22
|
|
|
|
|
|
|
# shows which exercises for unit calculations can be generated |
|
23
|
|
|
|
|
|
|
mtut unit |
|
24
|
|
|
|
|
|
|
# generates 15 addition and subtraction exercises for natural number (15 each) |
|
25
|
|
|
|
|
|
|
mtut natural add -n 25 -f nnn -r "[0..999" |
|
26
|
|
|
|
|
|
|
# generates 40 multiplication and division exercises for vulgar fractions (40 each) |
|
27
|
|
|
|
|
|
|
mtut vulfrac mul -n 40 -f nn/nnn -r "59/999 .. 02/002" |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Provides a command line tool to generate math (calculating) exercides. |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub execute |
|
36
|
|
|
|
|
|
|
{ |
|
37
|
0
|
|
|
0
|
0
|
|
shift->options_usage(); |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Jens Rehsack, C<< <rehsack at cpan.org> >> |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 BUGS |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
|
47
|
|
|
|
|
|
|
C<bug-app-math-tutor at rt.cpan.org>, or through the web interface at |
|
48
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-Math-Tutor>. I |
|
49
|
|
|
|
|
|
|
will be notified, and then you'll automatically be notified of progress |
|
50
|
|
|
|
|
|
|
on your bug as I make changes. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SUPPORT |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
perldoc App::Math::Tutor |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
You can also look for information at: |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=over 4 |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Math-Tutor> |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
L<http://annocpan.org/dist/App-Math-Tutor> |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item * CPAN Ratings |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/App-Math-Tutor> |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=item * Search CPAN |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/App-Math-Tutor/> |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=back |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
I try to answer any support request within a week and tell how fast it's |
|
81
|
|
|
|
|
|
|
probably solved and a fix is released. However, this is free time and it's |
|
82
|
|
|
|
|
|
|
spare. Please be patient or buy support to receive an answer in a |
|
83
|
|
|
|
|
|
|
guaranteed time. |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Copyright 2010-2014 Jens Rehsack. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
|
93
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
|
94
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
1; # End of App::Math::Tutor |