Thread: help me in converting ordinary numbers to roman numerals..

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    15

    help me in converting ordinary numbers to roman numerals..

    ..help me to create a algorithm,flowchart and a solution(code)..
    i am only required to use a basic kind of statements..(if/else,nested if,switch/case..if/else if...else statement) and only a 2 kind of header files(The #include<stdio.h> and #include<conio.h>)..

    my actual problem is:

    Write a program that accepts an ordinary number and outputs its equivalent Roman numerals. The Ordinary numbers and their equivalent Roman numerals are given below:

    Ordinary Numbers = Roman Numerals
    1 = I
    5 = V
    10 = X
    50 = L
    100 = C
    500 = D
    1000 = M

    Sample input/output dialogue:
    Enter a number:734(input number)
    (DCCXXXIV)

    Note that the Maximum input number is 3000.
    Last edited by Salem; 07-05-2011 at 07:03 AM. Reason: snip email - you posted it here, you READ IT HERE

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Is this homework? If so show what you have done first and ask for help with specific problems.

    Nobody will do your assignment for you.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    We went through this yesterday.

    - Matt

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You don't need any help with a flowchart. You can do this exercise in your own mind, hence it is possible for you to create a flowchart.
    Just detail the steps YOU do when you do this exercise by hand.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Quote Originally Posted by Matticus View Post
    We went through this yesterday.

    - Matt
    That being the case, we dont need this thread.

    CLOSED

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do i display a roman numerals from ordinary numbers??
    By Carr Paulo in forum C++ Programming
    Replies: 36
    Last Post: 07-07-2011, 09:38 PM
  2. Roman Numerals
    By jfrizzy in forum C Programming
    Replies: 2
    Last Post: 11-23-2009, 07:43 PM
  3. converting arabic to roman numerals
    By kaisha8 in forum C++ Programming
    Replies: 2
    Last Post: 09-26-2004, 01:02 AM
  4. Making roman numerals into arabic numbers
    By Mule in forum C++ Programming
    Replies: 2
    Last Post: 04-12-2003, 11:35 PM
  5. Need help with Roman Numerals
    By kiddprogrammer in forum C Programming
    Replies: 6
    Last Post: 04-01-2003, 11:45 PM