Show Bid Request
Program
Bid Request Id: 14436
|
|
|
Posted by: |
mbaul (2 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Unverified
|
Approved on: |
Apr 23, 2002 10:11:54 PM EDT
|
Bidding Closes: |
Apr 24, 2002 11:00:00 PM EDT
|
Viewed (by coders): |
188 times
|
Deadline: |
4/25/2002 11:59:00 PM
TIME EXPIRED
|
|
|
|
Description:
Details:
Your program should read its input from a file. Each arithmetic operation will consist of a Roman numeral followed by an arithmetic operator (+, -, *, or /), followed by another Roman numeral. For example, one input line might be:
MDCLV + LXXVI
Your program should read the input, perform the operation, and write the result in both Roman numeral form and decimal form to both the screen and an output file. An example of the output (for the above input) would be:
MDCLV + LXXVI = MDCCXXXI
1655 + 76 = 1731
The subtractive Roman numeral notation commonly in use today (such as IV, meaning 4) was used only rarely during the time of the Roman Republic and Empire. For ease of calculation, the Romans most frequently used a purely additive notation in which a number was simply the sum of its digits (4 equals IIII, in this notation). Each number starts with the digit of highest value and ends with the digit of smallest value. This is the notation you will use in this problem. The values of the Roman digits are as follows:
I 1 C 100
V 5 D 500
X 10 M 1000
L 50
Thus, the number MDCCCCLXXXXVIIII represents 1999.
One way of approaching this problem is to convert the Roman numbers into decimal integers, perform the required operation, and then convert the result back into a Roman number for printing.
You will have to create all of the documentation (description, inputs/outputs, constants, formulas, assumptions, and sample test cases) and the program.
Grading:
Use constants where appropriate. The problem must be broken into sub-problems as necessary. (i.e., you MUST have functions) Your program should allow for any number of operations to be performed, all within a single input file. Your program should do the appropriate error checking and issue error messages where appropriate. Any invalid numerals should generate an error message. You must ensure that the numbers are in purely additive form—that is, digits are followed only by digits of the same or lower value. Any operators other than +, -, *, and / should generate an error message. You may assume that all numbers are unsigned (all are positive numbers).
Deliverables: Turn in:
1. Code listing /source code 2. Output to text file
Platform:
Windows 98 Microsoft Visual C/C++
Must be 100% finished and received by buyer on:
Apr 25, 2002 11:59:00 PM EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
I would have to email the file to use for the program.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$15 (USD)
|
Apr 24, 2002 3:39:21 PM EDT
|
None Yet
|
|
|
Well, I've a teaching experience of 1 year and I can make this program within 4hrs time. The code will be fully commented and the program fully tested with proper validations and rror control. Please accept my bid, so that I can start the work and complete it before the deadline and show my capabilities.
Regards
Rajat Chaudhary |
|
|
|
|
|