Pregled bibliografske jedinice broj: 1033332
On explaining variable range in standard programming languages (to STEM students)
On explaining variable range in standard programming languages (to STEM students) // ICERI2019 Proceedings / Gómez Chova, L ; López Martínez, A. ; Candel Torres, I. (ur.).
Sevilla: International Academy of Technology, Education and Development (IATED), 2019. str. 1551-1561 doi:10.21125/iceri.2019.0445 (predavanje, međunarodna recenzija, cjeloviti rad (in extenso), znanstveni)
CROSBI ID: 1033332 Za ispravke kontaktirajte CROSBI podršku putem web obrasca
Naslov
On explaining variable range in standard
programming languages (to STEM students)
Autori
Mikac, Matija ; Horvatić, Miroslav
Vrsta, podvrsta i kategorija rada
Radovi u zbornicima skupova, cjeloviti rad (in extenso), znanstveni
Izvornik
ICERI2019 Proceedings
/ Gómez Chova, L ; López Martínez, A. ; Candel Torres, I. - Sevilla : International Academy of Technology, Education and Development (IATED), 2019, 1551-1561
ISBN
978-84-09-14755-7
Skup
12th annual International Conference of Education, Research and Innovation (ICERI2019)
Mjesto i datum
Sevilla, Španjolska, 11.11.2019. - 13.11.2019
Vrsta sudjelovanja
Predavanje
Vrsta recenzije
Međunarodna recenzija
Ključne riječi
Programming, variable, range, integer, bit-length, education, C, Pascal, Python, JavaScript.
Sažetak
In addition to many specialised computing tools for solving different kinds of technical and mathematical problems, students in STEM fields are often required to develop and use their own solutions - often implemented as more or less complex programmes written in standard programming languages such as C/C++, Java, Python, Pascal and others. Depending on curriculums of lower stage education (secondary schools and high schools) and their personal interests and hobbies, those students may show different levels of knowledge related to programming skills. In our undergraduate courses (in electrical engineering and multimedia) we decided, based on quite pronounced divergence among students, to include full course for learning fundamentals of programming in C with some minor inclusion of C++ basics. In relation to other courses, for example computer architecture and digital electronics, we are always trying to give our students a wider perspective and somehow interconnect those fields. One of the first classes relates to the declaration of variables, with special notes about numeric variables (integer numbers in this case) and range limitations - the simple theory is not an issue, but when put in front of the real-world problem, students often somehow oversee those fundamental definitions. In this article we will present a simple function - calculation of factorials (direct multiplicative loop solution, not approximation expression) - and detect and depict a problem that appears due to limited range, or better to say, influence of bit- length of a certain integer type on obtaining proper results. Different kinds of variable types will be discussed, including mathematical explanation of result limits. The same function will be checked in a few programming languages in addition to C (Pascal among “standard old-school” languages and JavaScript and Python as other often used languages). Also, specialised, open-source and free, computing tool with its accompanying language, Scilab, will be used to check whether such tools give some better results out of the box. Comparison of results (calculation limits) will be given, with explanations. Some remarks about additional extension of integer type limits will be covered.
Izvorni jezik
Engleski
Znanstvena područja
Računarstvo, Interdisciplinarne tehničke znanosti, Informacijske i komunikacijske znanosti
POVEZANOST RADA
Ustanove:
Sveučilište Sjever, Koprivnica