Computers & Internet Logo

Related Topics:

Anonymous Posted on Jul 13, 2011

Im a freshmen on a programming course and my assignment is this,my professor wants us to do a program out of this sample input input your name cheryl input birth month july input your birth date 12 ...and this is the sample output Hello Cheryl Your zodiac sign is gemini Ruling,Warmth,Generosity,Faithful,Initiative thats the given sample...how will i do a program for that in turbo pascal????please help...i had an upcoming exam about this on monday

1 Answer

Ekse

Level 3:

An expert who has achieved level 3 by getting 1000 points

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

  • Master 13,435 Answers
  • Posted on Jul 13, 2011
Ekse
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Joined: Feb 11, 2008
Answers
13435
Questions
82
Helped
3985005
Points
38023

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?

  • Ekse Jul 13, 2011

    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.

×

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

I have panasonic kx-t7730. How to set the intercom name and number?

Changing the name and extension number can be done through system admin programming from a phone extension allowed by the class of service assigned to that extension by the phone system installer. Typically the attendant phone is allowed this ability. From the programming phone press **1234(1234 is the default password) to access programming. Once in programming dial 003 for extension numbering then press . Enter the current extension number of the phone you want to change followed by the new extension number then press . Lift the handset to end programming. Access programming again by pressing **1234. Dial 004 for extension name programming then press . Enter the new extension number you programmed then enter the name for the extension. Press then lift handset to end programming.

It is possible that your phone has not been assigned an extension number, in that case system installer programming would need to be accessed to assign the port an extension number. The port number the phone is connected to would have to be determined. This could require tracking the wiring back to where it is connected into the phone system. If this is the case I advise calling a qualified service technician.
0helpful
1answer

Hi, I have microsoft web expressions and just finished doing a website for a school assignment. I want to send it to my prof, but I don't think he has the program. How can I get him to view it? Thank you.

Hey,
Your professor should not need this program to view your website. I am assuming that your website is all in HTML format (homepage.html), so if you send those files to him (along with any images that you used) all in one folder, he should be able to view it in his browser.
Hope this helps you, good luck!
1helpful
2answers

C++ poker program

Hi.

I suggest creating an Array of Cards (cardOne,cardTwo,etc. to five)

If you can enter them in one at a time, after declaring the array, assign the values to the array.

cin < cardOne; (Psuedo code by the way, hope you don't mind)

Afterwards, you'll have an array with 5 cards.

Declare what full houses, flushes, etc would require.
Use an if statement (If you don't mind lots of code) to compare the entered Array against possible hands.

I didn't necessarily give you any specific C++ code. However, if you Google C++ user input, you should find plenty of commands that may help you.

Good Luck

(And not sure about Linear search to be honest, you can use a Linear search, but if you did it the way I explained, you just have to compare hand to a series of conditionals.)


1helpful
1answer
3helpful
2answers

Error in running program

I agree with the previous solution and would like to add if you declare your variables using the local command then they will only reside in that program.
:prgm
:local db, e, plus other variable used in your program with a comma to separate them.
:prompt

And I think what the above solution is saying is to :Disp "k",k would work better.
I hope you used the Ti commands and not the ones you spell out on your listing, if so you might want to check them too. The store command I can understand why you typed it out.

I like the fact you want to program so remember fixYa to help you develop your programming.
0helpful
2answers

Pattern matching

Nice try!

It's been almost 15 months since you asked your question.

If nobody has helped you with your "homework" assignment,
you probably scored a "zero" on your computer-programming course,
and probably no longer need an answer to your problem.
0helpful
1answer

Plz give me C code for the given program

I have the code in java. can you convert.
if need
mail to [email protected]
Not finding what you are looking for?

195 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...