Commit 305b05d
authored
Arithmetic on the Command Line for 12-cmdline.md suggestions
I think maybe a few clarifications could help this section.
1. The operators `add` and `subtract` maybe should have dashes like the actions in the previous example ==> `--add` and `--subtract`. This is just a matter of form, but may be more intuitive for some students. If so the operators would change in the problem and solution sections.
2. In the problem section the program output shows an expected integer result rather than the float cast used in the solution. The problem expected outputs should show float values to agree with the solution.
3. Giving a hint to the student that the solution may also include multiplication and division could be an incentive to try these operators as well.
Of these, I think (2.) should be changed with the others being optional.1 parent d051b23 commit 305b05d
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | | - | |
| 669 | + | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
| 677 | + | |
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
| 682 | + | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
| 687 | + | |
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
| 699 | + | |
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| |||
0 commit comments