Need A Program Created (PLEASE HELP!!)

Using Metroworks Codewarrior, I need a program that does the following.
Design and develop a class and a driver application which simulate the operation of a Roman Numeral Claculator. Unfourtanetly for those doing the calculations in the Roman Republic and Empire, Arabic numbers with zero and column values had not caught on. Instead integers were represented begining with the digit of the highest value, ending with the one of lowest value using purely additive notation in which the value of a number was simply the sum of its digits. but we will stick with the original IIII for 4 etc:
M 1000
D 500
C 100
L 50
X 10
V 5
I 1
Input
A) keyboard input of two numbers in roman numerals
B) keyboard input of an arthimetic operator ( + - * /)
output
A) explanation of the program and the format for entering data
B) prompts for the output
C) final answer including original numerals operator and roman numeral result espressed in a message format
processing requirements
A) convert roman numerals into intergers perform appropriate arithmatic then convert the integer answer back into roman numerals
B)input of a letter not roman numerals or operator other than those specified should not cause program to fail.
if you complete please send the files as notepad files to the following email address
[email protected]

using purely additive notation in which the value of a number was simply
the sum of its digits. but we will stick with the original IIII for 4 Bah.
It is IV for 4.
A) convert roman numerals into integers Since parsing actual roman numerals (where IV is 4, etc) is not part of the assignment - here's a c function that does exactly that. ;-pint roman(char *s)
  int result=0;
  int t;
  int h=0;
  int i = strlen(s);
    while(i) {
      switch(s[--i]) {
        case 'I': case 'i': t = 1; break;
        case 'V': case 'v': t = 5; break;
        case 'X': case 'x': t = 10; break;
        case 'L': case 'l': t = 50; break;
        case 'C': case 'c': t = 100; break;
        case 'D': case 'd': t = 500; break;
        case 'M': case 'm': t = 1000; break;
        default: t = 0;
      if (t<h) result -= t;
      else result += t;
      h = max(h,t);
    return result;
please send the files as notepad files to the following email [email protected]
No thanks.

Similar Messages

Maybe you are looking for

  • Customer open balance analysis question

    Question: How do you easily track open balance of an invoice without using residuals? Scenario: Create invoice using transaction FB70 Apply a partial payment to the invoice or apply a credit memo to reduce the invoice balance. We do not want to use r

  • Audiobook sync issue with 2 ipods on ONE account... how to???

    Hi, I have 2 ipods connected to my mac which we only use one account. The problem I have just discovered is if we sync audiobooks to one ipod, start listening to it and then we sync that book on the other ipod the history of of where you were at in t

  • An error occured while trying to create directory C:\Program Files\Common Files

    iTunes and Quicktime kept giving errors when trying to update so I tried to uninstall and re-install but I get the same error and now don't have iTunes. I get multiple errors for c:\program files\common files\apple\apple application support\webkit.re

  • "Access denied" when external WD HDD moved to Win8 machine

    Hi all. My new Win8 machine does not let me access my backup external WD HDD. It's assigned a letter k:, but I only get "Access is denied". Old box died (Pavillion running Vista). I bought a new Pavillion running Win8. Updating the driver tells me I

  • IMovie locks/crashes when using firewire for camera and disk

    I've been archiving all my old movies from my Mini-DV camera. My setup is as follows: Mac OSX 10.5.6 and iLive '09 (latest updates), Intel Mac Mini (2008 version), MiniStack external Sata drive, and Canon ZR-60 (firewire). I have the camera hooked in