

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for lab 4 in csci260, a fortran programming course. Students are required to write programs using select case statements to calculate the area of different shapes and if statements to determine travel costs based on user input. The steps to create and compile the programs, including editing files, setting up directories, and running scripts.
Typology: Lab Reports
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CSCI260 Lab 4 Spring 2009 Due : 11:59pm. Wednesday, February 4, 2009 Objective : Use SELECT CASE statements to do selective execution of code. Using IF statements to do selective execution of code. Coding scientific equations - Your program will get data from the user, perform computations dependent on input values and output results. Overview : You will be provided a Fortran shell with comments to lead you through the program’s development. The equations and process for decision making that you will use are provided below. You will write the code to prompt the user for the values of those variables. This prompting process is similar to the process used in lab2.
What option do you wish? 3 Please enter the side of your square.
The area of your square is : 4. The user enters an option that is used to control the SELECT CASE statement. Within the different parts of the SELECT CASE statement you will get the correct data from the user and display the results. In the example the user wanted the area of a square, so, the program only asks for one side of the square.
inside.
CSCI260 Lab 4 Spring 2009