I need to write a skeletn program for the assignment. It should have a menu system with at least 5 options. The menu keeps repeating after each procedure is called. When one of the procedures is called just return a message to the screen saying what this procedure will do: ie "this is task 1".
The menu opions are:
1 Enter a new stock item
2 Delete a stock item
3 Update current item's details
4 Pint reports on stock status
5 Exit
My answer is:
program project1;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
user_choice: integer;
begin
writeln('Please enter an integer in the range 1...5');
readln(user_choice);
while not(user_choice in [1,2,3,4,5]) do
begin
write('Invalid entry. Please re-enter .. ');
readln (user_choice);
end;
readln;
end.
What are missing? What can I do to do show the above screen?
Cheers,