https://forum.powerbasic.com/forum/u...ions#post24270

Kerry,

more of a blast than you might think.

The original version was written for a BBC micro in the 1980s.

Yes, it's the latest version.

I don't understand the rest of your comments..

"definitions of the fields"?

The idea is that you have a number of interconnected but unknown quantities and equations that link them.

You need to calculate the unknown quantities.

For example, you buy 3 apples, 2 oranges and 2 bananas and the cost is $20.

Then you buy 3 apples, 3 oranges and 4 bananas, and the cost is $30

Next you buy 2 apples, 1 orange and 1 banana, and the cost is $11.

How much is one banana?

The program calculates that and gives 1 apple costs $2, 1 orange costs $4 and one banana costs $3.

"when you say 'get the array data - can I type it in?"

That's what the example shows, the array data being typed in.

"How come this statement is before the dim statement?"

It isn't.

The first "LINE INPUT "array dimension?",d$ " gets the required array dimension and the array is dimensioned to that size in the next 2 lines.

The next "LINE INPUT d$ " gets the required amount of data to fill the array.

Kerry,

more of a blast than you might think.

The original version was written for a BBC micro in the 1980s.

Yes, it's the latest version.

I don't understand the rest of your comments..

"definitions of the fields"?

The idea is that you have a number of interconnected but unknown quantities and equations that link them.

You need to calculate the unknown quantities.

For example, you buy 3 apples, 2 oranges and 2 bananas and the cost is $20.

Then you buy 3 apples, 3 oranges and 4 bananas, and the cost is $30

Next you buy 2 apples, 1 orange and 1 banana, and the cost is $11.

How much is one banana?

The program calculates that and gives 1 apple costs $2, 1 orange costs $4 and one banana costs $3.

"when you say 'get the array data - can I type it in?"

That's what the example shows, the array data being typed in.

"How come this statement is before the dim statement?"

It isn't.

The first "LINE INPUT "array dimension?",d$ " gets the required array dimension and the array is dimensioned to that size in the next 2 lines.

The next "LINE INPUT d$ " gets the required amount of data to fill the array.

## Comment