b) Write an algorithm that will:
• allow the user to enter an integer value
• pass the value entered into the doCheck() function as a parameter
• store both the value input and the value returned from the function in a text file with
name "storedvalues.txt"
You should write your algorithm using either pseudocode or program code.
[5]