Glad I could help, just try and give it a go
One thing to say: STOP!
What exactly are you trying to achieve with the conditional (if..else) statements? As I could see from your previous post, you would like to use the length and the width for your calculation. But why would you want to trigger it via an if statement? Think about that (and off course if you need such a statement at all) and you probably find out an answer by yourself.
Personally, I always see a method as a small operation, which is part of a bigger operation. Using your exercise as an example, you can define some steps, which a user needs to take before the whole operation is done.
1) Show instructions
2) Get dimensions
3) Calculate area
Now, step 2 can be divided up in several more steps (which all can be put either in one method or separate methods for re-usage)
2.1) Get length
2.2) Get width
Off course, this can be extended with data validation and so on.
Well this is what I have worked out so far:
GetDimensions for length
GetDimensions for width
GetPrice of carpet
I would really like to do them in this order.. Now I know I will need to use results from multiple methods in each method.
DetermineSquareMetres needs GetDimensions()
DetermineCost needs DetermineSquareMetres and GetPrice
DisplayResults will need DetermineSquareMetres and DetermineCost
Now as for the if statements, I somehow need a way to pull those certain values or results from each method. I'm looking at the different if statements to see if any of them do what I'm needing.. Am I heading in the right direction?