msashley09

Hi everyone,

I am a newbie here and I haven't read anything--I know I should. Sorry in advance if I break any rules in this posting.

I am having a problem with this project I am working on. The assignment is to create an application that will give a user the choice of displaying the roman numeral equivalence of a number between 1 and 10 or displaying a count of roman numerals from 1 to 10.

program should not end before the user decides to end it
must use the if, while, for and switch structures in code
and output format should resemble:

"This program can display any roman # between 1 and 10.
This program can also count from 1 to 10 in roman #

enter the # 1 to display the roman equivalent of a number
enter #2 to count from 1 to 10 in roman numerals
enter any other # to end application

enter ur choice.... 1

enter any # from 1 to 10: 7

roman numeral VII Decimal 7

and it should loop back to enter 1 or 2 options

than enter ur choice 2

it should list roman numeral I-X and decimal 1-10 but in 2 separate rows

if anyone could help it would really be appreciative...i think im going through writers block

ff4930 24

I am a newbie here and I haven't read anything--I know I should. Sorry in advance if I break any rules in this posting.

If you knew you should, why didn't you?
One of the rules is if you show no work = no help.

commented: Damn straight! +23

msashley09

Because I didn't feel like it at that time...

i have no work to show because i dont know where to start or how to set it up. if i did i wouldve posted it.

Salem 5,138

How about starting with the basics, like making sure the 1, 2, 3 bit works

Like if you input 1, all you have is
cout << "Choice is 1" << endl;

If you can do that much, fine - then we can work on the next step.
If you can't, there's no point in starting out with an explanation of the finer points of roman numerals.

Your code helps us calibrate our answers to be most useful to you.

nevermind

msashley09

Oh let me state whats wrong..lol

1.) I have to enter #1 choice twice before it displays what number needing to translate.

2.) when i enter choice 2 it does not display the roman numerals for 1 through 10

thanks!!

msashley09

ok another thing is...i need someone to run it if they can because it also wont display correct roman numerals/decimals...... i messed something up.

VernonDozier 2,218

ok another thing is...i need someone to run it if they can because it also wont display correct roman numerals/decimals...... i messed something up.

Run what? I don't see any code.

chococrack 74

Running this code

``````//============================================================================
// Name        : mashley09_daniweb.cpp
// Author      : chococrack
// Version     : 1.0
//============================================================================

1.) I have to enter #1 choice twice before it displays what number needing to translate.

2.) when i enter choice 2 it does not display the roman numerals for 1 through 10``````

The mingw compiler gives me the following error (in Eclipse)

**** Rebuild of configuration Debug for project mashley09_daniweb ****

**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\mashley09_daniweb.o ..\src\mashley09_daniweb.cpp
..\src\mashley09_daniweb.cpp:2: error: expected unqualified-id before numeric constant
..\src\mashley09_daniweb.cpp:2: error: invalid token
Build error occurred, build is stopped
Time consumed: 78 ms.