Today marked the fourth session of the second week for the participants of the National female Pre-Tech training program. The class continued their session on Variables and functions.
For today’s class, the trainer continued the lesson on variables and functions. The trainer took the class through a deeper dive into data types and functions. Ms Blessing led the class and together they created three functions. The first function created was one that printed strings, the next printed integers, and the final one was a combination of both. We also learnt about the double data type which returns floating-point numbers. We used this type of data type to create functions using the arithmetic operators to perform simple operations. We created three functions add, subtract and multiply and these functions return the parameters(value) passed to the functions. The functions and now called the main function which is a top-level function. Also, we opened our flutter application in VScode using the command line and worked in our main.dart file where we changed the colour of our flutter application.
The students then worked on their project work to make sure that they incorporated what they had learned into their work. Each person was tasked to create three functions and test them. They also learned how to read errors and correct them. Also, the students learned how to create comments to explain their codes and make them more readable.
The participants then took a thirty-minute lunch break at 1:30 pm and continued with their project work after they returned.
The last thing the students were taught was coding and its best practices. The trainer took them through what to expect if they wanted to become software developers. Finally, the class dispersed.