Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 7th, 2007, 7:42 AM   #1
Haxor_Lee
Newbie
 
Join Date: Jan 2007
Posts: 1
Rep Power: 0 Haxor_Lee is on a distinguished road
Pascal Program Help.

I want to make a program in Pascal. Something like a Calendar.

I wanna Put some Roman numbers in it as Input.

I = 1
V = 5
X = 10
L = 50
V = 100
D = 500
M = 1000

And i want to put some of these Characters and Add them together and also Check if there are any Invalind Character Other than the ones Listed above.

E.G MCCXXVI = 1226




Another Example....

Enter the First Number
MCCXXVI
The first num is 1226
Enter the Second Number
LXVIII
The second Number is 69

Enter the Desired Arithemtic operation :
+

The sum of MCCXXVI and LXVIII is MCCLXXXXV (1295)




Like that

It's pretty simple but i am Stuck on a Part and cant get past it

Anyone can help me?
Haxor_Lee is offline   Reply With Quote
Old Jan 7th, 2007, 7:53 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Post the code you've written so far, indicate where you're having the trouble. If you don't know about using code tags and stuff, see the FAQ.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jan 8th, 2007, 9:28 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
You reference Pascal, in a C++ section? I haven't written in pascal since the early 90s... I'm sure it has changed since then, so I probably wouldn't be of much help.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jan 8th, 2007, 12:30 PM   #4
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
Pascal itself, like C, hasn't changed, but there are extended versions: Borland Pascal and Delphi (like C++).

This sounds a bit like a homework assignment :p
Klipt is offline   Reply With Quote
Old Jan 8th, 2007, 2:24 PM   #5
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
I have done this thing at least 1 year and 1/2 before. I know i have the code somewhere in my libraries. Just do as DaWei said, post the code.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Language display in program Prm753 C++ 3 May 30th, 2006 6:45 PM
Making a crossword construction program using Turbo Pascal RedMuse Other Programming Languages 1 Feb 25th, 2006 9:53 AM
Creating a program to test a program sixstringartist C 8 Jan 21st, 2006 2:15 PM
Pascal Program help elec Other Programming Languages 3 Apr 21st, 2005 10:55 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:20 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC