In VB.NET 2008, what is "coupling between a subprogram and the program"

A friend of mine is taking a course in Visual Basic .NET 2008. The course manual constantly refers to "subprograms" and has exercises which reference "programs" and "subprograms".

In particular, this one TRUE/FALSE question:

"Coupling between a subprogram and the program that calls it may be through arguments, global variables, and/or control objects."

Doesn't seem to really make sense. Can anybody explain what is meant by "coupling between a subprogram and the program"?
LVL 31
Frosty555Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StealthyDevCommented:
It means the flow of data.

Say for example, if you are making an online-transaction, assume that your fund-transfer module has a sub-module, check account-balance. For which you need to send the account number to the "Account-Inquiry" module.

How will you send the account number? In this example, you can send the a/c no. using the argument.

ie,
AccountDetails = MyAccount.Account_Inquiry(AccountNumber); // Arguments

or, in someother case,
myGlobalAccountNumber = AccountNumber; // Global Variables
AccountDetails = MyAccount.Account_Inquiry();

Regards.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike TomlinsonMiddle School Assistant TeacherCommented:
Good answer by senthurpandian.

Taking it a step further, the flow of data itself can be "loosely coupled" (generic in nature such as simple passing of strings) or "tightly coupled" (communication and passing of structures specific to the apps possibly via remoting or other methods).

http://en.wikipedia.org/wiki/Coupling_(computer_science)
http://en.wikipedia.org/wiki/Loose_coupling
0
Frosty555Author Commented:
Turns out what the prof was talkign about was just passing "parameters" from a main() method to some a function via a function call. He used the word "coupling" and "subprograms" to try and make the concept easier to understand and it had nothing to do with the more advanced concepts of loose coupling / data flow.

Man this is a stupid course. You guys are great though. Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.