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
-
Hi can anyone help me. I have a apple macbook laptop OSX 10.5.8 . When i push print, it shows my printer but says cannot communicate with printer. (epson stylus nx125). Do I need new drivers? Please help . regards Cindy
Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
Some basic printer troubleshooting steps before worrying about a printer driver:
1. Have you tried turning the printer off and back on?
2A. Is the printer attached with a cable?
If yes, have you tried unplugging and re-plugging both ends of the printer cable?
If that does not help, can you test the printer with another cable?
2B. If your printer is not connected to the computer with a cable, have you tried restarting your printer (assuming wireless connection)?
Have you tried restarting your wireless router?
3. Have you tried restarting your MacBook? (Be sure to save your work first.)
4. Does the printer have ink? (Doesn't usually generate a 'communications error' though)
5. Have you updated OS X or the program you're trying to print from recently? -
I have QuickTime Player 7.6.8, I cannot update or remove it b/c I am missing QuickTime.msi file. It is gone and I need it back. Please help.
Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any QuickTime entries and click "Remove".
Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
(If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.) -
I just bought a new iPhone and accidentally backed it up with my old iPhone backup, I do not want this. I lost everything on my new phone and I need it back. PLEASE HELP! This includes pictures and texts, etc.
So just to be clear, when you say "just bought" how long ago was that? Is it on this new iPhone that you had pictures, texts, etc that you want? Were you backing up to iCloud or onto iTunes?
This may not help for everything but if you go to iCloud.com and log in, are you able to find your pictures there? -
My ipad and mini pad won't update though it says several apps are in need of updates. Please help!
Try updating from here:
App Store>Purchased
Note: You'll have to look out for apps that need update. -
I have a macbook 13in mid 2010, im trying to update it from 10.6.4... i update it and restart i but when it finishes restarting, it says its still 10.6.4 and i need to update? please help!
Try downloaded the Mac OS X 10.6.8 Update Combo v1.1 standalone updater and installing it.
-
Where to find my Serial Number for Photoshop CS6 Extended? The program has been on my computer for at least a year now and for some reason it is now requiring my serial number to run the program. Please help!
Log in into your Adobe account and go to "My Products". You'll find a list of all the products you've ever registered with Adobe.
-
When I turn on my PC with Vista 64 bits it gives me a message "ApplePhotoSream.exe" has stopped working correctly. Windows will close the program.
Please help!!!Hi, I have the same problem. Has anyone come forward with any advice on fixing the problem?
-
I installed both 10.1.4 and 11.0.08 updates this week and now I can't use the Digital "Sign" document feature. It's been completely removed. Need it back. Please help.. Can't sign or add text to any pdf document. Even when security properties allow it.
I would remove Reader and repair or reinstall Acrobat.
Having different major versions can cause some users issues. Reader is not necessary if one has Acrobat installed. Even though Adobe has improved the capability of having both Reader and Acrobat with the same major version level there are still user configurations that have problems with this setup. -
yesterday I have purchased Ipad2 with 3G but did not able see in built aceTime on my scree do we need to Install? please Help, yesterday I have purchased Ipad2 with 3G but did not able see in built FaceTime on my scree do we need to Install? please Help.
See this support doc on how to use FT... http://support.apple.com/kb/HT4319
-
all my programs are opening in adobe even the system restore and the regisrty -
how do I reset all programs to their originall default programs.
Please help.
PS I have also tried starting in save mode and still have the same problem.Hi,
As
BurrWalnut mentioned, first please run a virus scan to eliminate virus infection (if AV program is not opened in adobe)
The files association could be corrupted in your situation, apart from the solution posted in the first reply, I also suggest you check Control Panel\All Control Panel Items\Default Programs\Set your Default Programs or Associate a file type or protocol
with a progra,, manually check the association and check if it can do some help.
Add: another way to open restore point is launching it in recovery console, please refer to this guide
http://windows.microsoft.com/en-hk/windows/what-are-system-recovery-options#what-are-system-recovery-options=windows-7
Yolanda Zhu
TechNet Community Support -
just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy
Is the iTunes window in FullScreen mode?
If so, press esc key. -
I lost my iphone4 i need to block it please help me i live in dubai
i lost my iphone i need to block it
please help meYou could do that, if you had "Find my iPhone" installed prior to the loss:
Locate your missing iPhone with Find My iPhone.
There is no other way to do this, and Apple can't do this for you. -
The''' Outlook links do not connect to Firefox '''even after setting the customize option in Default Programs. Please help.
Message to Toad-Hall
Thank you, for that. To be sure, I tried your suggestion, and selected "System Proxy" as the choice, for Thunderbird and Firefox. Rebooted, and looked at the outcome.. NO Joy.. :-(
I believe that I shall send the output of the Error Log in my next post. Perhaps someone can point me in the right direction after looking at the Error.log.
Thank you...Toad Hall. If you think of something else to try, I am ALL ears.. I shall keep trying.. -
Hi I need a password, CPNU94094BO please help asap much needed
Hi I need a password, CPNU94094BO please help asap much needed
Hi,
In that case, the only option left to try would be to remove the rtc cell - see Page 63 of your Maintenance & Service Guide - then hold down the power button for 30 seconds.
Leave the notebook like this for 20 minutes, then replace the rtc cell, reassemble and try booting again.
Regards,
DP-K
****Click the White thumb to say thanks****
****Please mark Accept As Solution if it solves your problem****
****I don't work for HP****
Microsoft MVP - Windows Experience
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