GoldenHaddock
Technical User
Hi there!
I'm new to all this stuff and I am doing some past questions from old tests that i have found to get up to speed with the whole thing.
there is a question regarding ships and the distances between them...i presume its just made up and isnt real
the function is:
function Ship_saftey () is
begin
read wind;
if (wind < 8)
safedist = 100;
else
safedist = 150;
endif
Pretty straight forward.
The questions asks for a driver to be written for this and im not too sure! The answer isnt given.... any pointers would be good, thanks
Also, does a stub simply return dummy data to test a module?
I'm new to all this stuff and I am doing some past questions from old tests that i have found to get up to speed with the whole thing.
there is a question regarding ships and the distances between them...i presume its just made up and isnt real
the function is:
function Ship_saftey () is
begin
read wind;
if (wind < 8)
safedist = 100;
else
safedist = 150;
endif
Pretty straight forward.
The questions asks for a driver to be written for this and im not too sure! The answer isnt given.... any pointers would be good, thanks
Also, does a stub simply return dummy data to test a module?