473,888 Members | 1,279 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Decimal to Roman Numerals

Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIX

Jan 24 '07 #1
31 9856


On Jan 23, 8:36 pm, "ARMAS" <smart.a...@gma il.comwrote:
Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIX
OK, show us what you've got so far, and we'll make suggestions

Jan 24 '07 #2


On Jan 24, 9:40 am, "Lew Pitcher" <lpitc...@sympa tico.cawrote:
On Jan 23, 8:36 pm, "ARMAS" <smart.a...@gma il.comwrote:
Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIXOK, show us what you've got so far, and we'll make suggestions
I have no idea .... i'm just a feshmen.... maybe i could try but it
wil take me a long time... and i need a quick answer... plzzzz

Jan 24 '07 #3


On Jan 23, 5:43 pm, "ARMAS" <smart.a...@gma il.comwrote:
On Jan 24, 9:40 am, "Lew Pitcher" <lpitc...@sympa tico.cawrote:
On Jan 23, 8:36 pm, "ARMAS" <smart.a...@gma il.comwrote:
Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIXOK, show us what you've got so far, and we'll make suggestionsI have no idea .... i'm just a feshmen.... maybe i could try but it
wil take me a long time... and i need a quick answer... plzzzz
Quck answer:
DYOH!

Jan 24 '07 #4


On Jan 24, 9:54 am, "user923005 " <dcor...@connx. comwrote:
On Jan 23, 5:43 pm, "ARMAS" <smart.a...@gma il.comwrote:
On Jan 24, 9:40 am, "Lew Pitcher" <lpitc...@sympa tico.cawrote:
On Jan 23, 8:36 pm, "ARMAS" <smart.a...@gma il.comwrote:
Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIXOK, show us what you've got so far, and we'll make suggestionsI have no idea .... i'm just a feshmen.... maybe i could try but it
wil take me a long time... and i need a quick answer... plzzzzQuck answer:
DYOH!
>>I'm asking for help, not a bullshit answer
Jan 24 '07 #5
>I'm asking for help, not a bullshit answer

That is where you are wrong (in both regards).
You are not asking for help. You are asking for someone to do your
homework for you. That is decidedly not helpful for your future but
harmful.
Because of your attitude, I am sure that any code answer you receive
will be rather humorous.

Jan 24 '07 #6


On Jan 24, 10:15 am, "user923005 " <dcor...@connx. comwrote:
>>I'm asking for help, not a bullshit answerThat is where you are wrong (in both regards).
You are not asking for help. You are asking for someone to do your
homework for you. That is decidedly not helpful for your future but
harmful.
Because of your attitude, I am sure that any code answer you receive
will be rather humorous.

It ain't a homework....

Jan 24 '07 #7
"ARMAS" <sm********@gma il.comwrites:
On Jan 24, 9:54 am, "user923005 " <dcor...@connx. comwrote:
On Jan 23, 5:43 pm, "ARMAS" <smart.a...@gma il.comwrote:
On Jan 24, 9:40 am, "Lew Pitcher" <lpitc...@sympa tico.cawrote:
On Jan 23, 8:36 pm, "ARMAS" <smart.a...@gma il.comwrote:
Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIXOK, show us what you've got so far, and we'll make suggestionsI have no idea .... i'm just a feshmen.... maybe i could try but it
wil take me a long time... and i need a quick answer... plzzzzQuck answer:
DYOH!
>I'm asking for help, not a bullshit answer
No, you're asking us to do your homework for you.

If you're unable to do it yourself, we'd prefer that you fail the
class.

If you want *help*, we might be able to provide some, but we're not
going to do it all for you.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 24 '07 #8
/*
Since we know it's not for school but he just needs this to do his
important work,
I decided to write a nice converter for him. Enjoy:
*/
#include<stdio. h>
#include<stdlib .h>
int main(int q0,char*q1??(?? ))??<long q2,q3;int q4=1;typedef struct q5
??<int q6;char*q7;int q8;char*q9;??>q 10;q10 q11??(??)=??<
#ifdef q12
??<1000000,"\74 \115\55\142\141 \162\76",900000 ,
"\74\103\115\55 \142\141\162\76 "??>,??<500 000,
"\74\104\55\142 \141\162\76",40 0000,"\74\103\1 04\55\142\141\1 62\
\76"??>,??<1000 00,"\74\103\55\ 142\141\162\76" ,90000,
"\74\130\103\55 \142\141\162\76 "??>,??<500 00,
"\74\114\55\142 \141\162\76",40 000,"\74\130\11 4\55\142\141\16 2\
\76"??>,??<1000 0,"\74\130\55\1 42\141\162\76", 9000,
"\74\111\130\55 \142\141\162\76 "??>,??<5000,"\ 74\126\55\142\1 41\162\76"
,4000,"\74\111\ 126\55\142\141\ 162\76"??>,
#endif
??<1000,"\115", 900,"\103\115"? ?>,??<500,"\104 ",400,"\103\104 "??>,??<
100,"\103",90," \130\103"??>,?? <50,"\114",40," \130\114"??>,?? <10,"\130"
,9,"\111\130"?? >,??<5,"\126",4 ,"\111\126"??>, ??<1,"\111",1," \111"??>
??>;int q13=0;if(q0==2) q2=atol(q1??(1? ?));else??<if(q 0==3)??<q2=atol (
q1??(1??));q4=0 ;??>else??<prin tf("\n\105\156\ 164\145\162\40\ 141\156\40"
"\151\156\164\1 45\147\145\162\ 40\166\141\154\ 165\145\72\40"
);scanf("\45\15 4\144",&q2);??> ??>q3=q2;printf ("\n\45\154\144 \40\75\40"
,q3);do??<while (q2>=q11??(q13? ?).q6)??<printf ("\45\163",q11? ?(q13??).
q7);q2-=q11??(q13??).q 6;??>if(q4)if(q 2>=q11??(q13??) .q8)??<printf(
"\45\163",q11?? (q13??).q9);q2-=q11??(q13??).q 8;??>q13++;??>w hile(q2>0)
;return(0);??>

Jan 24 '07 #9
"ARMAS" <sm********@gma il.comwrote in message
news:11******** **************@ v45g2000cwv.goo glegroups.com.. .
>

On Jan 24, 9:40 am, "Lew Pitcher" <lpitc...@sympa tico.cawrote:
>On Jan 23, 8:36 pm, "ARMAS" <smart.a...@gma il.comwrote:
Make a program that allows the user to input a number and aoutput it's
roman numeral equivalent..... plzzzzzz help....
Ex: 109 output:CIXOK, show us what you've got so far, and we'll make
suggestions

I have no idea .... i'm just a feshmen.... maybe i could try but it
wil take me a long time... and i need a quick answer... plzzzz
There are these things called "books". You probably have not heard of them.
They are in:

a)Libraries.

b)Bookstores.

c)Other places.

You may want to explore "books"; specifically a book about the 'C'
programming language.

When you have something resembling a program that you can't get to work,
feel free to post back to this newsgroup.

Also, if you want to hire me to do your program, I will do a "Roman Numeral"
program for USD $1,500. That is probably about $25/line.

There may be others in this newsgroup who will do it for less. I won't be
hurt if you contract with one of them.

--
David T. Ashley (dt*@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)
Jan 24 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
4397
by: Christopher Benson-Manica | last post by:
Inspired by a thread on clc++, I decided to try it out... #include <stdio.h> #include <stdlib.h> int main( int argc, char *argv ) { int i; int result=0; int this;
4
11771
by: Patrick Blackman | last post by:
How do you write regular numbers eg 1 23 475896 in roman numerals inC#
3
2150
by: jcris25 | last post by:
pls help me on how to make a program by converting the day, month and year to a roman numerals... im looking forward..tnx and god bless...
7
14411
by: daming23 | last post by:
Hi, I'm taking an online C++ class and having some difficulty understanding the assignments. Can someone please look at the code I wrote to ensure validity? I am not asking for the answer just some guidance, I’m totally lost. The assignment is as follow: Write a prg to convert numbers entered in Roman Numeral to decimal. Your prg should consist of a class, say romanType. An object of the type romanType should do the following: a. Store...
3
3313
by: maojecel | last post by:
guyz just want to know the simple code or program how to convert integers to roman numerals.. plz do a reply soon.. i badly need it as soon as u answer. plzzz
2
1966
by: bluedemon | last post by:
I've written the program and it works fine. but my instructor said that i can make the program short and use functions in it, but i cant really understand functions that good. so i just need a little help making the program short and use functions too. I'm posting my code here but i'm not posting the cin statements and the validating user entry loops. i'm just posting the if statements that i used. so here is my code: thousands =...
22
3232
by: kotlakirankumar | last post by:
please help me out the program for converting the integers to roman numerals using files in the c language from 1-5000 range send the program to my mail id ::::::: kotlakirankumar@gmail.com thank you all
0
9961
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9800
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9597
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7148
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6015
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4642
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4247
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.