You will create a program that asks your Name, then your birth month and birth date, you need to store them into the programs memory.
You will have to also store into the program the months / dates for each sign, and then have the program look up the according sign for that date and print it out.
Very very simple. Everything needed to programm the program you should already know? visit your notes / other material from the course and it should be fairly easy for you, unless you have slept all the classes?
I dont know turbo pascal myself since I never studied it. But, heres some code to help you out to get started it has taken me less than 10 minutes to put this together without ever reading about turbo pascal myself.
Program ZodiacSign;
var
Name : String;
Month : String;
Date : Integer;
i : integer;
Sign : String;
begin
Write('Please tell me your name: ');
ReadLn(Name);
Write('Please tell me your birth month: ')
ReadLn(Month);
Write('Please tell me your birth date: (numbers only)')
ReadLn(Date);
for i := 1 to 2
begin
WriteLn('Hello', Name);
WriteLn('Your Zodiac sing is ', Sign);
end;
end.
This program is not complete but will give you something to start from.
×
195 views
Usually answered in minutes!
×