help with non void functions with an argument

i have a C++ project due at 5 p.m. pacific time today. my teacher did a poor job at explaining and missed telling us how to do part of the assignment. that being said my teacher is ruthless. my code is all over the place and this is my last resort.

my assignment is to write a program using VOID FUNCTIONS WITH AN ARGUMENT.
*I need one non-void function with an argument to generate the first 15 numbers greater than 500, another non-void function with an argument to generate the first 15 perfect squares that are greater than 500. Last, they need to be in columns next to each other.* also i cant use x,y, coordinates to align them. i must create a for loop with the

if a miracle happens and someone does it for me i will send them $20 in the mail.

these are some notes from examples in the class. i just don't know how to do it with non void functions with an argument.

I need one non-void function with an argument to generate the first 15 numbers greater than 500, another non-void function with an argument to generate the first 15 perfect squares that are greater than 500.

Should the first one be prime numbers here? The 'first 15 numbers greater than 500' seems a little easy for an assignment.

There seems to be a core understanding of arguments and returns types here, though. Do you understand each of those and their uses?

I realize that your assignment was due about two hours ago or so, but you still might like a quick explanation of "non void functions with arguments".

each function needs to have a return type.
each function can take parameters / arguments.

The two concepts are completely decoupled from one-another.

Note: There is a small difference between parameters and arguments, but it's nothing a beginner should have to worry about. In a sense, it's merely a naming convention.

When a function terminates, it returns something to the calling function / process. The function return type is what determines what the type of the thing that's being returned is.

If a function has a void return type, that means it doesn't return anything. If a function is non-void, it has to return something. If a function is void, it cannot return something.

Parameters / arguments are things you pass into the function. They can affect the flow or outcome of the function. For instance, depending on an argument, the value that a function returns could be different.

Here's an example of a function with a void return type (returns nothing), and no parameters / arguments:

123

void printHello() {
std::cout << "Hello" << std::endl;
}

Here's an example of a function with an int return type (returns an integer), and no parameters / arguments:

123

int retThreePlusFive() {
return 3 + 5;
}

Here's an example of a function with a void return type (returns nothing), and takes one string parameter / argument: