Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 340 results for
roman-numeral
- Page 1
Roman Numeral to Arabic Converter
Programming
Software Development
16 Years Ago
by Straightone
… am having trouble changing the inputted
roman
numeral
into arabic number so I can … 500 "M" == 1000
roman
= upper(raw_input("Enter the
roman
numeral
to convert to arabic: ")) "…; == 1000 if
roman
[0] >
roman
[1]: arabic =
roman
[0] +
roman
[1] print "The
roman
numeral
",
roman
, "Is equal…
Re: Roman Numeral to Arabic Converter
Programming
Software Development
16 Years Ago
by shadwickman
… need to call it by saying [code=python]
roman
= raw_input("Enter the
roman
numeral
to convert to arabic: ").upper() [/code] Try…
Roman Numeral to Decimal Converter
Programming
Software Development
16 Years Ago
by gretty
Hi I am making a
roman
numeral
to decimal converter, I have the decimal to
roman
numeral
converter but I am having trouble …doing it from
roman
to decimal. How do you…> using namespace std; int numeral_converter(int a); void
roman
(int a, int b, int c, int d); int…
roman numeral to decimal integer
Programming
Software Development
15 Years Ago
by naveenreddy61
the code takes each character and stores where and how many times a
roman
numeral
appears and the assess the integer. this is my first code im posting. anything to make the code better is most welcome.
roman
numeral
refers to M=1000 D=500 C=100 L=50 X=10 V=5 I=1 and uses the standard method of assessing
roman
numeral
.
Re: roman numeral to decimal integer
Programming
Software Development
15 Years Ago
by Salem
… f[10]; char r[10]; printf("please enter the
roman
numeral
:"); scanf("%s", &r); for (; …prefix notation. [code] $ ./a.out please enter the
roman
numeral
:II value is 2 $ $ ./a.out please enter …the
roman
numeral
:XIX value is 21 $ [/code] The second one…
roman numeral calculator problems
Programming
Software Development
17 Years Ago
by robotnixon
… any where. I have to design a
roman
numeral
calculator (input romans, output romans) with …at least two functions (decimal->
roman
,
roman
->decimal). I started by designing three programs… [*]int sum; [*]int solution; [*]int result; [*]int convertToDecimal(string
roman
) [*]{ [*] char romanNum[100]; [*] [*] cin >> romanNum;…
Re: roman numeral calculator problems
Programming
Software Development
17 Years Ago
by robotnixon
…]# int convertToDecimal(string&) # { # char
roman
[20]; Try int convertToDecimal(char
roman
[20]) Or better yet, make
roman
your std::string variable. By…;); int sum; int main () { cout << "Enter a
roman
numeral
: "; convertToDecimal(sum); cout << "The decimal number…
Re: roman numeral to decimal integer
Programming
Software Development
15 Years Ago
by adnan.siddique
… have the best one that is [CODE]//code to convert
roman
numeral
to integer #include<stdio.h> #include<conio…
Java Beginner Needs Help Debugging Roman Numeral Converting Code!
Programming
Software Development
13 Years Ago
by ThaiAmL
…(decimal > 3999) { throw new NumberFormatException("The
roman
numeral
should have a value strictly less than 4000."); } …toString() { // Return the standard representation of this
Roman
numeral
. String
roman
= ""; // The
roman
numeral
. int N = num; // N represents the part…
Re: Java Beginner Needs Help Debugging Roman Numeral Converting Code!
Programming
Software Development
13 Years Ago
by ThaiAmL
…(decimal > 3999) { throw new NumberFormatException("The
roman
numeral
should have a value strictly less than 4000."); } …toString() { // Return the standard representation of this
Roman
numeral
. String
roman
= ""; // The
roman
numeral
. int N = num; // N represents the part…
Re: Java Beginner Needs Help Debugging Roman Numeral Converting Code!
Programming
Software Development
13 Years Ago
by DavidKroukamp
…(decimal > 3999) { throw new NumberFormatException("The
roman
numeral
should have a value strictly less than 4000."); } …toString() { // Return the standard representation of this
Roman
numeral
. String
roman
= ""; // The
roman
numeral
. int N = num; // N represents the part…
Integer to Roman Numeral Help
Programming
Software Development
13 Years Ago
by Spontaneous
… (using cin) and prints out a simple
Roman
numeral
. A simple
Roman
numeral
does not use the subtraction rule. For example… be MMMDCCCLXXXXVI. Your program should print the entire
Roman
numeral
on a single line, with no spaces between letters… loop just twice, one for each kind of
Roman
numeral
being printed. Thus, the first iteration will print…
Re: Integer to Roman Numeral Help
Programming
Software Development
13 Years Ago
by Spontaneous
… 1 run. [code]//Eric Sanders //9/16/2011 //CS142-02 //
Roman
Numeral
Project #include <iostream> using namespace std; int main…
Re: Decimal to Roman Numeral
Programming
Software Development
15 Years Ago
by vernondcole
… thing. This one defines a class (
roman
.
Roman
) so you can add and subtract
roman
numbers and print them out directly. […CODE] >>>import
roman
>>>two =
roman
.
Roman
(2) >>>print two + two …keep going on, it shows you how to make a
roman
numeral
converter that is almost impossible to break: [url]http://…
needs help with few lines of codes. ( decimal - roman numeral converter)
Programming
Software Development
12 Years Ago
by yeeitsneo
…help in understanding this program. its a hindu arabic -
roman
numeral
converter. i got it from some site. i cant…sDecNum), 1), 0) Else: text2.Text = "No
Roman
value for 0" End If End Function Private Function…instance. my input is 2345 to be converted to
roman
numeral
which should be. MMCCCXLV as we go over to…
Unit Testing for Roman Numeral Calculator program in C++
Programming
Software Development
7 Years Ago
by shadab96
Hi, I have written a code for
Roman
Numeral
basic mathematical operation in C++. How to do unit testing … number = 0; for (int i = 0; i<
roman
.length(); i++) { switch (
roman
[i]) { case 'M': number += 1000; break; case 'D': number…
Arabic and Roman Numeral Converter
Programming
6 Years Ago
by Jonathan_30
…an arabic number I cannot convert it into a
roman
numeral
. Thanks in advance! This is the code I…{ while(1){ cout << "Enter a
Roman
or Arabic Number to be converted- Q to quit: &…string num){ int value = 0; //this will be the
roman
value char prior = 'n'; // use this for 4, …
Re: Decimal to Roman Numeral
Programming
Software Development
16 Years Ago
by sneekula
…that is between 1 to 4999 to
Roman
Numeral
Form. However, though the code … while number >= value: result +=
numeral
number -= value return result print int2roman(input…while number >= value: result +=
numeral
number -= value return result print int2roman(input…
Decimal to Roman Numeral
Programming
Software Development
16 Years Ago
by curiouskitten
… that is between 1 to 4999 to
Roman
Numeral
Form. However, though the code I have…M"} result="" for value,
numeral
in sorted(numerals.items(), reverse=True): while …number >= value: result +=
numeral
number -= value return result print int2roman(input("…
Re: Decimal to Roman Numeral
Programming
Software Development
16 Years Ago
by lllllIllIlllI
Here is a site where they do just what you are doing, the first bit talks about unit testing, just ignore that and keep going on, it shows you how to make a
roman
numeral
converter that is almost impossible to break: [url]http://www.diveintopython.org/unit_testing/index.html[/url]
***Help! Code not working out-Roman Numeral Converter
Programming
Software Development
16 Years Ago
by tech12
… lost. I'm suppose to write a program to convert
Roman
numerals to arabic numbers. It is also suppose to handle… far: def roman_converter(): R=str.upper(raw_input("Enter a
Roman
numeral
to convert to Arabic: ")) d={'I':1, 'V':5…
C++ Integer to Roman numeral conversion
Programming
Software Development
13 Years Ago
by Jared1337
I'm having trouble getting this program to work for
roman
numeral
conversion. I hope it says that i have one error, …[h] + tens[t] + ones[o]; cout << "The
roman
number for this integer is " << romanNumber; } else…
[needs comments and full explaination]hindu arabic - roman numeral program.
Programming
Software Development
12 Years Ago
by yeeitsneo
soooo. i saw a working code for a hindu arabic -
roman
numeral
converter. the thing is. i need to fully understand the …(sDecNum, Len(sDecNum), 1), 0) Else: text2.Text = "No
Roman
value for 0" End If End Function Private Function…
Re: C++ Integer to Roman numeral conversion
Programming
Software Development
13 Years Ago
by WaltP
…]I'm having trouble getting this program to work for
roman
numeral
conversion. I hope it says that i have one error…
Re: Roman Numeral to Arabic Converter
Programming
Software Development
16 Years Ago
by GrimJack
Do not forget that anywhere in the string that if a
numeral
is smaller than the one that comes next, it is subtracted from the the one that comes next: [code]# if
roman
[0] >=
roman
[1]: # arabic =
roman
[0] +
roman
[1] Else arabic =
roman
[1] -
roman
[0][/code] Or something like that.
Re: Roman Numeral to Arabic Converter
Programming
Software Development
16 Years Ago
by GrimJack
Just being my pedantic self, you are changing inputted
Roman
Numerals to Hindi numbers- the Arabs borrowed the numbers from India (in Arabic they are known as 'Indian numbers' - arqa-m [B]hindi[/B]yyah)
Re: Roman Numeral to Arabic Converter
Programming
Software Development
16 Years Ago
by Straightone
…;837487]Just being my pedantic self, you are changing inputted
Roman
Numerals to Hindi numbers- the Arabs borrowed the numbers from…
Re: roman numeral calculator problems
Programming
Software Development
17 Years Ago
by robotnixon
…; [*]int convertToDecimal(string&) [*]{ [*] [*] char
roman
[20]; [*] int length = strlen(
roman
); [*] int number = 0; [*] int counter =…operation; [*]cout << "Enter a
roman
expression." << endl; [*]cin&…;< endl; [*]cout << "Enter a
roman
expression." << endl; [*]} [*] return 0;…
Re: roman numeral calculator problems
Programming
Software Development
17 Years Ago
by Lerner
… convertToDecimal(char *
roman
); int main() { char
roman
[10]; cin >>
roman
; int num = convertToDecimal(
roman
); } int convertToDecimal(char *
roman
) { int length = strlen(
roman
); int number…
Re: roman numeral calculator problems
Programming
Software Development
17 Years Ago
by robotnixon
I changed this: [inlinecode] int convertToDecimal(string&) { char
roman
[20]; int length = strlen(
roman
); [/inlinecode] My output is in the correct format but there's no answer.
1
2
3
6
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC