Creating Arrays (Tables)

Revision as of 06:57, 11 September 2007 by ReneeB (talk | contribs)

Creating an index variable

Creating an array (table)

Selecting an array index

Creating another array using the same index

Viewing results of an array calculation

Combining results from a table

Adding a dimension to a variable

H. Completing the model

1. Click icon button. Select ‘Definition’ from array popup menu. Click expr button, select table.

Definition fuel cost1.3.jpg

2. Click ‘Edit Table’ button. Edit table window should come up.

Mpy edit table.jpg


Index icon.jpg

3. Click the ‘index’ icon. Indexes window should appear. Select ‘Car Type’, click >>. Repeat the same procedure for ‘Year’. Click ‘ok’ button.

Index car type 1.1.jpg

4. Edit table should appear, zero is entered by default .


Edit table Mpy.jpg

5. Select the 1st column. Enter ‘12K’. Press arrow down key. Enter ‘12K’.


Edit table Mpy1.1.jpg


6. Select 2nd column, enter ‘20K’ press arrow down key enter ‘12K’. Repeat the same for the 3rd column, enter ‘12K’ for the 1st and 2nd row.

Edit table Mpy1.2.jpg

7. Select ‘fuel cost’. Click ‘Result’ from the menu items, select ‘mid value’. Result table window should appear.

Mid value Fuel Cost1.1.jpg

8. Examine mid value of fuel cost.

Result Fuel Cost1.1.jpg

9. Click diagram button to return to parent diagram. Select ‘Total cost’. Click the result button to examine the mid value.

Result total cost1.4.jpg

Comments


You are not allowed to post comments.