Re: Euros to dollars
From: Bjorn Abelli (DoNotSpam.bjorn_abelli_at_hotmail.com)
Date: 02/13/05
- Next message: Cappy: "Re: Euros to dollars"
- Previous message: Stefan Schulz: "Re: Euros to dollars"
- In reply to: Cappy: "Euros to dollars"
- Next in thread: Cappy: "Re: Euros to dollars"
- Reply: Cappy: "Re: Euros to dollars"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 13 Feb 2005 17:33:20 +0100
"Cappy" wrote...
> I'm a begginner. Please help.
> I need to write some code that will convert eruos to dollars. I was
> hoping that someone could push me in the right direction.
1. Define the problem
The "problem" seems pre-defined...
2. Outline the solution
How would you calculate it *without* a computer program? Write down *that*
solution...
3. Develop the outline into an algorithm
Exhange the variables in your equation to program variables.
Let constants be literals to begin with.
4. Test the algorithm for correctness
If you can't do it by hand, you'll probably not be able to make a program
for it either.
5. Code the algorithm into a specific programming language
So, code it in Java...
Use primitive datatypes for the variables, and exchange the literals to
constants.
6. Run the program on the computer
7. Document and maintain the program
// Bjorn A
- Next message: Cappy: "Re: Euros to dollars"
- Previous message: Stefan Schulz: "Re: Euros to dollars"
- In reply to: Cappy: "Euros to dollars"
- Next in thread: Cappy: "Re: Euros to dollars"
- Reply: Cappy: "Re: Euros to dollars"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|