Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,450 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,159 people online right now. Registration is fast and FREE... Join Now!




Roman Number Addition

 
Reply to this topicStart new topic

Roman Number Addition, how to solve a roman number with the use of addition

godseye
23 Jan, 2008 - 06:01 PM
Post #1

New D.I.C Head
*

Joined: 23 Jan, 2008
Posts: 2

Write a program that shall ask a user to input two Roman numbers, adds the two numbers then output the result on screen. The following is a sample run of the program:

Input two Roman numbers separated by a space: IV XI
IV plus XI is XV.
Do you want to add another number [Y/N]? Y
Input two Roman numbers separated by a space: L XC
L plus XC is CXXX.
Do you want to add another number [Y/N]? N

please help me with this... wub.gif

This post has been edited by godseye: 23 Jan, 2008 - 06:04 PM
User is offlineProfile CardPM
+Quote Post

Nykc
RE: Roman Number Addition
23 Jan, 2008 - 06:09 PM
Post #2

That Just Happened!
Group Icon

Joined: 14 Sep, 2007
Posts: 4,461



Thanked: 18 times
Dream Kudos: 275
My Contributions
QUOTE(godseye @ 23 Jan, 2008 - 09:01 PM) *

Write a program that shall ask a user to input two Roman numbers, adds the two numbers then output the result on screen. The following is a sample run of the program:

Input two Roman numbers separated by a space: IV XI
IV plus XI is XV.
Do you want to add another number [Y/N]? Y
Input two Roman numbers separated by a space: L XC
L plus XC is CXXX.
Do you want to add another number [Y/N]? N

please help me with this... wub.gif



what errors are you getting? show us the code and we will be happy to help!

A simple program declaring the values of each roman numeral and then adding them variables together will help you achieve this. You can use the if, else statement for options.

Make sure to put code between the [code] tags.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 01:00PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month