Okay, I've been thinking about this and trying things for quite awhile and I'm getting no where. I just finished Say(a) and the following is a list of assumptions I'm making concerning version b of the Say assignment. 1.] Since I have the program working with numbers from 0-99, maybe I should try to make it work first with 0-999? 2.] Or maybe I should take the main method which works with 0-99 and turn it into a second method which the main method then calls? 3.] Or I start all over using array containers and read in a string of from 1-3 characters and then manipulate these? I need a smilie for :frustrated: as I am totally confused.
Ed, I like your second choice. Take the stuff you did in main on Say.a and make that a method. Then call that method when needed. Try to look for the pattern. I don't think you have to do just 999 first, but it may help. Bill
Part of the reason for doing 0-99 first is so you can use it when you go to 0-999,999,999,999. Your third option is definitely not the way to go. Option #2 is reasonable as is option #1. There are many approaches. It's part of the learning curve to figure out how you want to approach the problem.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I think that's where I go wrong so often. I see the final problem only and start of programming that. I up to now I have not submitted the a part of an assigment as a separate attempt. From this discussion I can see why it makes sense to do that. JdJ AND PSE dont make me submit the A's for the one's I already did
[This message has been edited by Johannes de Jong (edited March 15, 2001).]
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad: