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} }
Write a program that generates three sets of numbers between 1 and 1000:
the first set consists of all numbers that are divisible by 3, the second consists of all numbers that are divisible by 7, and the third consists of all numbers that are divisible by 11. Then, produce sets of all numbers between 1 and 1000 that are
(a) divisible by both 3, 7, and 11,
(b) that are divisible by 3 and 7, but not by 11, and
(c) that are neither divisible by 3, nor by 7, nor by 11.