Repository with assignments using the Test Informed Learning with Examples (TILE) method to integrate testing into existing programming courses for free.
Join our LinkedIN Community.
Use the following BibTeX entry to cite this work:
@INPROCEEDINGS{DVMB2023, author={Doorn, Niels and Vos, Tanja and MarĂn, Beatriz and Barendsen, Erik}, booktitle={2023 IEEE Conference on Software Testing, Verification and Validation (ICST)}, title={Set the right example when teaching programming: Test Informed Learning with Examples (TILE)}, year={2023}, volume={}, number={}, pages={269-280}, doi={10.1109/ICST57152.2023.00033} }
Implement a program that reads two integer numbers, calculates and prints their addition, subtraction, product, division and modulus or remainder (%
).
>>> %Run
Enter a integer number: 4
Enter another integer number: 6
The sum (4 + 6) is: 10
The subtraction (4 - 6) is: -2
The product (4 * 6) is: 24
The division (4/6) is: 0.6666666666666666
The modulus or remainder (4 % 6) is: 4
>>> %Run
Enter a integer number: 0
Enter another integer number: -100
The sum (0 + -100) is: -100
The subtraction (0 - -100) is: 100
The product (0 * -100) is: 0
The division (0 / -100) is: 0
The modulus or remainder (4 % -100) is: 0
TILEd by adding example test executions for them to test.