/* * Lab two, CSC 180, Fall 2001. * This file constitutes the version which inputs mass and acceleration, and * outputs force. This file gets linked with a main.c which uses the * strings below for the interaction with the user, and uses the calc() * function below to perform the appropriate calculation. */ /* what the user enters: */ char name1[] = "mass in kg"; char name2[] = "acceleration in m/s**2"; /* what this file's calc() function produces: */ char name3[] = "force in newtons"; double calc(double mass, double accel) /* returns force */ { return mass * accel; /* f = ma */ }