<- back to home

🤖

002. Introduction to Artificial Intelligence



TL;DR

  • The Assignment: Build a registration system and a marks calculator that actually "thinks"—calculating averages and categories.
  • The Panic: A looming deadline and a brain that still hadn't fully processed how Function FindHighestMark actually worked.
  • The Lifeline: My first real interaction with ChatGPT. It didn't just write the code—it bridged the gap between my notes and the final product.


The Assignment Was Clear. The Logic Was Not.

The brief was straightforward: build a student registration system and a marks calculator that could think—calculating averages, finding the highest mark, and slotting each student into a result category. On paper, manageable. In practice, it was the most complicated thing I'd been asked to write up to that point.


It was my first real exposure to things like Try...Catch to stop the app from crashing on bad input, and Select Case to swap UI labels on the fly. The kind of things your lecturer explains once and then expects you to just know.


The Logic That Felt Like a Puzzle

The part that made the most sense—once I sat with it long enough—was the category function. Three conditions, three outcomes. Clean.


Function Category(mark As Integer) As String
    If mark < 40 Then
        Return "Failed"
    ElseIf mark < 75 Then
        Return "Passed"
    Else
        Return "Passed with Distinction"
    End If
End Function

Below 40: Failed. Below 75: Passed. Anything else: Passed with Distinction. I understood that part. It was the rest—the imports, the ListBox updates, how all the functions were supposed to talk to each other—that felt like assembling furniture with half the instructions missing.


The Deadline Was Not Waiting

I remember the pressure clearly. The assignment wasn't impossible—it was just that the deadline was breathing down my neck and I didn't have the full picture yet. My notes were there. The concepts were there, somewhere. But connecting them into something that actually ran? That was the gap.


That's when I turned to AI for the first time. Not to cheat—to see. I needed someone to show me the architecture, not just hand me the answer.


The Lifeline

My first real conversation with ChatGPT wasn't about getting code written for me. It was about understanding how the pieces fit. One of the things I needed to figure out was how to generate a student number—unique, structured, automatic. The solution turned out to be simpler than I expected:


ComponentLogicResult Example
Current YearDateTime.Now.Year2023
Gender CodeMale = 2000 / Female = 30002000
Student No.Year & (Gender + Count)20232001

It wasn't perfect. I was still learning what a Class actually did. But it worked. And in the lab, "it works" is the only sentence that matters.


This wasn't just an assignment. It was my introduction to the future of how I'd be building everything from then on. The difference between a failing grade and a finished project turned out to be a well-placed prompt.


The logic is finally loading.



<- Back to blog


All rights not reserved. Do you want a website like this? Just copy it 👍🏾