+-------------------+ +-------------------------+
| Start | | Start Function |
+-------------------+ +-------------------------+
| |
v v
+-------------------+ +-------------------------+
| Call greet('Alice')|--------->| Receive parameter name |
+-------------------+ +-------------------------+
| |
| v
| +-------------------------+
| | Print "Hello, [name]!" |
| +-------------------------+
| |
| +-------------------------+
| | End Function |
| +-------------------------+
v |
+-------------------+ |
| End |<-----------------+
+-------------------+This flowchart shows two parts: the main program and the function named 'greet'.
1. The main program starts and calls the function 'greet' with the input 'Alice'.
2. The function starts and receives the input parameter called 'name'.
3. Inside the function, it prints the message "Hello, Alice!" by inserting the input name into the greeting.
4. The function ends and returns control back to the main program.
5. The main program then ends.
This shows how functions let us reuse code by defining a block that can be called with different inputs.