Development of a Mini Calculator Application for Processing Odd and Even Numbers Using Dev-C++
Keywords:
Even Numbers, Odd Numbers, Calculator, Mini, Dev-C++Abstract
A mini calculator is a simple application designed to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. This mini calculator program was developed using Dev-C++ with the primary goal of providing a practical solution for users to perform numeric calculations interactively. During the development process, several key issues were identified, including difficulties in accessing the calculator after the initial calculation, input errors, and the program’s inability to handle repeated operations without restarting the application. The development method utilized in this application was procedural programming, incorporating the use of the do-while loop structure. This approach enables the calculator to continuously request input and perform computations based on user choices without the need to close or restart the program. The do-while loop ensures that users can carry out multiple operations in succession until they choose to exit. To address the aforementioned issues, several solutions were implemented. These include input validation mechanisms to handle errors such as division by zero or invalid inputs, as well as an interactive menu system that facilitates operation selection. Moreover, error handling features were incorporated to provide users with clear messages in the event of incorrect operations. Separate functions were implemented for each mathematical operation to enhance code modularity and maintainability. The development stages of this application involved the following steps: (1) designing the algorithm and calculator menu structure; (2) implementing individual functions for each arithmetic operation; (3) applying the do-while loop to control the program’s iterative flow; (4) conducting testing and debugging to ensure proper functionality; and (5) refining the user interface and error messages to enhance user experience. In conclusion, the use of the do-while loop as a program repetition method has proven to be effective in maintaining the calculator application’s interactivity without requiring a restart. The program provides an efficient and user-friendly solution for repeated calculations through a simple and responsive interface.
References
Aditya, R., Pranatawijaya, V. H., & Putra, P. B. A. A. (2021). Rancang bangun aplikasi monitoring kegiatan menggunakan metode prototype. Journal of Information Technology and Computer Science, 1(1), 47–57.
Fahriani, N. (2022). MENGENAL FUNDAMENTAL PROGRAMMING DENGAN DEVC++.
Hakky, M. M., Sulindawati, S., & Permana, R. (2018). Development of interactive learning media using information and communication technology in programming learning. Jurnal Pendidikan Teknologi dan Kejuruan, 15(2), 123–132.
Indahyanti, U., & Rahmawati, Y. (2020). Buku ajar algoritma dan pemrograman dalam bahasa C++ (pp. 1–146). Umsida Press.
Nita, S. (n.d.). Algoritma dan pemrograman-I. Deepublish.
Pradipta, A. A., Prasetyo, Y. A., & Ambarsari, N. (2015). Pengembangan web e-commerce Bojana Sari menggunakan metode prototype. eProceedings of Engineering, 2(1).
Pressman, R. S. (2012). Software engineering: A practitioner’s approach (7th ed.). McGraw-Hill.
Putra, A. B. W. (n.d.). Pemrograman dasar pada program vokasi: Buku ajar. Media Nusa Creative (MNC Publishing).
Rahmani, A., Syafrudin, A., & Wulandari, I. (2022). The effectiveness of instructional media in improving programming skills among undergraduate students. International Journal of Computer Science and Education, 10(1), 45–52.
Taufiq, R. (2022). Algoritma dan pemrograman.
Uska, M. Z., Wirasasmita, R. H., & Kholisho, Y. N. (2023). E-modul dasar pemrograman berbasis Android sebagai media pembelajaran bahasa C++. Educate: Jurnal Teknologi Pendidikan, 8(2), 129–138.
Wali, M., Nengsih, T. A., Hts, D. I. G., Choirina, P., Awaludin, A. A. R., Yusuf, M., & Baradja, A. (2023). Pengantar 15 bahasa pemrograman terbaik di masa depan (referensi & coding untuk pemula). PT. Sonpedia Publishing Indonesia.