Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Dev Pascal Help

pascal

  • Please log in to reply
3 replies to this topic

#1 Pyreforge

Pyreforge

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 15 November 2008 - 10:53 PM

Here is what I need, just some basic stuff through pascal.

1. A program which accepts two real numbers, asks whether the user requires a rounded or truncated result and then outputs their product in the form requested.

2. A program which outputs triangle numbers - 1, 3, 6, 10, 15, etc.

3. A program which accepts a temperature value and then offers the user a choice between converting from C to F or from F to C.

4. A Program which produces fibonacci numbers. (For an example, do a google search on Fibonacci_number)

5. A program which finds the factors of a number.

6. A program which finds and displays the 'perfect numbers' up to a user-supplied value. (A perfect number is one whose factors add up to the number itself, eg 6 = 1+2+3.)

7. A program that converts any number (up to and including 3,999) into Roman numerals. i.e. Input of 52 would produce LII.


++++++++++++++++
I am not looking for already compiled .exe's of these programs, just looking for help coding each one. (Links to tutorials, etc)
If anyone would like to help me, please message me or reply here.
++++++++++++++++

Thanks in advance to anyone who can help me.
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 16 November 2008 - 07:10 AM

Are you looking for the logic, syntax help, other? We are not in the habit of simply providing solutions to homework problems (or problems that strongly resemble homework problems).

These questions cover a wide variety of concepts. What concepts of the Pascal language are you currently familiar with?
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 16 November 2008 - 07:11 AM

Are you looking for the logic, syntax help, other? We are not in the habit of simply providing solutions to homework problems (or problems that strongly resemble homework problems).

These questions cover a wide variety of concepts. What concepts of the Pascal language are you currently familiar with?
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#4 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 16 November 2008 - 07:27 AM

Nice homework problems. lol

Most of them should be simple if you do some reading on the language.

Anyways I like the last one.

A program that converts any number (up to and including 3,999) into Roman numerals. i.e. Input of 52 would produce LII.


That one could be a challenge.
  • 0





Also tagged with one or more of these keywords: pascal

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download