Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
roman
- Page 1
Re: How Build video-player in html And css ?
Programming
2 Weeks Ago
by Kirubel_2
…; margin: 0; text-align: center; font-family: Georgia, 'Times New
Roman
', Times, serif; } .contain ul li a{ padding: 0; text-decoration…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
…;<td>374</td><td>
Roman
</td><td>Johanna</td>…
Minimizing roman number to use substraction rule
Programming
Software Development
12 Years Ago
by TrustyTony
Roman
numbers is a standard programming exercise, to give it a small twist, we input
roman
numeral, turn it to value and prepare minimal version of it using the substraction rule. Correctness of the input is not checked so Garbage in - Garbage out.
Re: Roman Numerals (Python)
Programming
Software Development
14 Years Ago
by woooee
… arabic = 0 for n in range(0, len(
roman
)-1): this_char =
roman
[n] next_char =
roman
[n+1] if (this_char in roman_to_decimal) and \ (… break if converted: ## add last
roman
numeral arabic += roman_to_decimal[
roman
[len(
roman
)-1]] print "\nThe
roman
numeral",
roman
, "is equal to"…
Re: Java Beginner Needs Help Debugging Roman Numeral Converting Code!
Programming
Software Development
12 Years Ago
by stultuske
roman
.toUpperCase??? I assume you'll use your instance of Scanner (
roman
) as a means to read a String instance, which you'll then set to UpperCase and why this: return -1; break; return automatically ends the method by returning the value.
Re: Help if you can??
Programming
Software Development
14 Years Ago
by WaltP
Roman
numerals don't have decimals. It's therefore undefined so you can pretty much do whatever you want.
Re: Word Association Game
Community Center
Geeks' Lounge
18 Years Ago
by meksikatsi
roman
candle--> lamp
Re: Roman Numerals to Arabic Numbers and Vice Versa
Programming
Software Development
13 Years Ago
by ibthevivin
…; break; default: throw new std::out_of_range( "Not a valid
Roman
numeral!" ); break; } } } int getArabic() { return m_arabic; }…quot;; std::string
roman
; cin >>
roman
; try { RomanNumeral rn(
roman
); cout << "
Roman
Numeral: " <<
roman
<<…
Roman Numerals to Arabic Numbers and Vice Versa
Programming
Software Development
13 Years Ago
by ibthevivin
… a program that will convert
Roman
numerals to Arabic numbers or Arabic numbers to
Roman
numerals. Your program should prompt…of conversion they would like to perform,
Roman
to Arabic or Arabic to
Roman
, and allow them to convert as many… they would like." Here's a quick refresher for
roman
numerals: M = 1000 D = 500 C = 100 L = …
Re: Roman Numerals to Arabic Numbers and Vice Versa
Programming
Software Development
13 Years Ago
by rubberman
… helping you? :-) Write down ALL of the rules to convert
Roman
to Decimal. Remember though L is 50 and X is… apply the math. Ditto regarding rules to convert Decimal to
Roman
.
roman numeral to decimal integer
Programming
Software Development
14 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
14 Years Ago
by Salem
… f[10]; char r[10]; printf("please enter the
roman
numeral :"); scanf("%s", &r); for…the 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 …
Re: Roman Numerals to Arabic Numbers and Vice Versa
Programming
Software Development
13 Years Ago
by Narue
Have you written a change making program? It's the same concept for converting to
roman
numerals: spit out the largest possible denomination until there's nothing left in the remaining total. Start with that so you're no overwhelmed.
Re: Roman Numerals to Arabic Numbers and Vice Versa
Programming
Software Development
13 Years Ago
by WaltP
…, if you enter [I]743[/I], what's the largest
Roman
numeral that fits into this number. [B]M[/B] doesn…
Re: Roman Numerals to Arabic Numbers and Vice Versa
Programming
Software Development
13 Years Ago
by ibthevivin
I showed it to my professor. He said all I need now is "if" statements, cause I told him my problem is when I put "9" in, I get "VIIII" instead of "IX". So he said, place if-then statements saying no more than
roman
characters in a row and promote them. He really lost me. >_<
Re: roman numeral to decimal integer
Programming
Software Development
14 Years Ago
by adnan.siddique
… have the best one that is [CODE]//code to convert
roman
numeral to integer #include<stdio.h> #include<…
Converting Roman Numerals to Decimals
Programming
Software Development
13 Years Ago
by xCrusade
… does the following: Store the number as a
Roman
numeral Convert and store the number into decimal form…lt;< endl; cout << "Please enter a
Roman
Numeral: "; cin >> romanNum; cout <<…{ cout << "Here is your number displayed in
Roman
Numeral form: " << romanNum << endl…
Re: Converting Roman Numerals to Decimals
Programming
Software Development
13 Years Ago
by xCrusade
… is my new set function, my main concern is the
roman
numeral conversion to a decimal/number, I've been cleaning…
needs help with few lines of codes. ( decimal - roman numeral converter)
Programming
Software Development
11 Years Ago
by yeeitsneo
…help in understanding this program. its a hindu arabic -
roman
numeral converter. i got it from some site. i … Len(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 …
Re: Converting Roman Numerals to Decimals
Programming
Software Development
13 Years Ago
by xCrusade
… initial plan is to use the switch based on the
roman
numeral array as it is up top and then do…
Re: needs help with few lines of codes. ( decimal - roman numeral converter)
Programming
Software Development
11 Years Ago
by AndreRet
… Text1.Text = sDecNum ''Value to be converted from numerical to
roman
... If sDecNum <> "0" And sDecNum <…), 0) ''Call Give Letters function... Else: Text2.Text = "No
Roman
value for 0" ''No value in text1... End If…
Denary number to roman numerals (golang)
Programming
Computer Science
8 Years Ago
by vegaseat
…. golang) to convert a denary number (base 10) to a
roman
numeral. Just a good exercise to explore Go's map…
Re: roman numeral calculator problems
Programming
Software Development
16 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;…
Roman Numeral to Arabic Converter
Programming
Software Development
15 Years Ago
by Straightone
… most coding is from Arabic to
roman
but i need from
Roman
to Arabic. [CODE=Python]from string… 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 …
Re: roman numeral calculator problems
Programming
Software Development
16 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…
Roman numer rules validating
Programming
Software Development
14 Years Ago
by moods125
…<SIZE; x++) { if(findIt(
roman
[x]) < (findIt(
roman
[x+])) integerValue-=findIt(
roman
[x]); else integerValue+=findIt(
roman
[x]); } return integerValue; } /////////////////////////////////////////////////////////////////////////////// bool isValidRoman…
roman numeral calculator problems
Programming
Software Development
16 Years Ago
by robotnixon
… with at least two functions (decimal->
roman
,
roman
->decimal). I started by designing three … [*]int sum; [*]int solution; [*]int result; [*]int convertToDecimal(string
roman
) [*]{ [*] char romanNum[100]; [*] [*] cin >> romanNum… operation; [*]cout << "Enter a
roman
expression." << endl; [*]cin>&…
Re: Roman Numeral to Arabic Converter
Programming
Software Development
15 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.
Roman to Integer and back conversion - "illegal call of non-static member function"
Programming
Software Development
12 Years Ago
by Griff0527
…a function "romanToDecimal" to convert
Roman
numerals into its equivalent decimal number. 3)…//Function to convert decimal numbers to
Roman
numerals //Postcondition: outputs
Roman
numeral equivilents of the decimal input…[10]; cout << "Please enter a
Roman
Numeral: "; //Prompt user cin >> roman_num…
Re: roman numeral calculator problems
Programming
Software Development
16 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…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
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
© 2024 DaniWeb® LLC