You are on page 1of 1

Elsevier US Job Code:CAPA Chapter:0capaprelims 15-12-2006 6:22 p.m. Page:xvii Trimsize:8.

5 in×11 in

Using the Software and Excel Spreadsheet Programs

Microsoft Excel spreadsheets and a high-level programming A title is displayed and the user then presses any key from the
language (e.g. Fortran) have been employed in this book. Spread- PC console to continue. Once the screen is cleared, a list of eight
sheets have improved to the point that they are powerful tools options is displayed as follows:
for solving engineering problems. Additionally, the author has
employed spreadsheets for Microsoft® Excel because of its 1. OPEN Open a pre-existing file
widespread availability. Powerful packages such as MathCAD® , 2. CREATE Create a new data file
Mathematical® , Maple® , TK Solver® , Polymath® and others could 3. SAVE Save the data file you just edited
be used, but none has the widespread availability as of spread- 4. CALCS Start calculating
sheets. 5. PRT RES Print the result file
The author has developed various codes in the text using the 6. SAVE RES Save the result file
Fortran language, and some software using the screen-handling 7. FINISH Next problem?
format under the DOS environment. The use of the high-level 8. QUIT Exit to DOS
programming is still essential for more advanced topics, which TWOPHASE is user-friendly and the procedure in running the
cannot readily be handled by a spreadsheet. The author has provided program is as follows:
executable codes for all the Fortran source codes in the text. A
readme text is provided for the screen-handling software, which is 1. Create a data file (option 2). Assign the value to any fitting type
user-friendly. that is not included in the calculation. Press a return key or a
downward arrow key to continue.
2. Calculate the input data (option 4).
USING FORTRAN PROGRAMS 3. Print the results onto a printer (option 5). The results are also
The executable files can be run from Windows by double-clicking viewed on the screen.
on them from the Explorer. However, some programs may find 4. Quit the program by typing N (option 8) to return to DOS (Disk
input data files in the same directory. A text file using any text Operating System).
editor (e.g. notepad) can be used to create a data file. It is recom- 5. Press FINISH (option 7) before opening or creating a data file.
mended to run them from the DOS prompt or from any Fortran
compiler. The Absoft® Fortran compiler is a native 32-bit applica- Options 1, 3, 6 and 7 can be further used after the data file has
tion designed for Microsoft® Windows 95/98, Windows NT™ and been created.
Windows XT. Appendix I shows steps in compiling and running
the Absoft compiler. USING MICROSOFT EXCEL SPREADSHEET
The executable codes of the Fortran codes are provided in
relevant examples with an executable extension as *.EXE. The data Start the Excel spreadsheet by double-clicking on the icon. To open a
file has the extension *.DAT, and the result file has the extension file name, click on “FILE” on the menu bar, then choose “Open    ”.
*.RES. The screen-handling software uses the ANSI.SYS device To open an existing worksheet or file name from the folder,
driver in the CONFIG.SYS file. Each screen-handling software double-click on it. This will open the document (and will start the
uses a batch file that incorporates the ANSI.SYS device driver. Excel spreadsheet as well if it was not already running). To print
The program can be run from DOS using C:\ prompt from the output, you can choose “Printer Setup    ” to specify a printer, “Page
command line. For example, TWOPHASE.EXE in Chapter 4 is run Setup    ” to specify margins, automatic scaling, etc., and “Print
as follows: preview    ” to preview output. To quit the Excel spreadsheet and
return to Windows, choose “File    ”, “Exit”. To exit Windows,
C:\ >TWOPHASE.BAT (ENTER) repeat the same commands from the File Manager screen.

xvii

Fonts used:Times & Universal 55 family Margins:Top:3p6 Gutter:4p6 Font Size:9/10 pt Text Width:41p6 Depth:65 Lines

You might also like