Please help me again. I have 2 questions in this time.
Question 1.
Write a program that asks for a start and stop letter and then
produces the following:
Question one: This time create an array of 7 numbers. Fill each slot
with a randomly generated number between 1 and 10. Show the user the
7 numbers, pause the program briefly, clear the screen and then ask
the user to guess the seven numbers. Work out how many of the numbers
are correct.
First part of my answer is:
{$APPTYPE CONSOLE}
Uses SysUtils, OurCrt;
Var computer: Array [1..7] of integer;
guess: Array [1..7] of integer;
count: integer;
Begin
randomize;
For count:= 1 to 7 do
begin
computer[count]:=random(10);
writeln(computer[count]);
end;
sleep (5000);
clrscr;
For guess:= 1 to 7 do
begin
if computer[count]=guess[count] then
begin
writeln ('You''ve got right');
end;
begin
writeln ('You''ve got wrong');
sleep (5000);
clrscr;
(Now I don’t know how to going on….what it should be?)
Question 2
Write a program that asks for a start and stop letter and then
produces the following:
For start value a and stop value e:
a
ab
abc
abcd
abcde