Answer:
Function getFirstName(nameInput)
Declare nameInput
Display "Please enter your first name."
Input nameInput
Return nameInput
End function
Module main()
Declare name
Call getFirstName(name)
Display "Hi + 'name'!"
End module
Step-by-step explanation:
First, we define the function getFirstName(nameInput) that has the parameter nameInput to get the input name a retrieve it to the module main. Then, we define the module main that declares the variable name, calls and retrieves the name variable of the function previously defined.