An Effective Approach For Teaching Computer Programming To Freshman Engineering Students
M Seyf Naraghi, Bahman Litkouhi
Abstract
Note that Tstart in the above routine is set equal to the beginning of the computation (value of Timer at the beginning of the computation). Also, t (time in equations) is set to zero. The maximum allowable value of t is 20S and it is incremented by 0.02 seconds. Note that most personal computers have a time resolution of 20ms (0.02 s). The loop after time increment statement (t=t+0.02) is a dummy loop (does nothing other than kill the time) which keeps looping until the difference between the current computational time and starting time becomes equal or more than the time in the code for real-time animation. The following example illustrates the application of this time routine in Visual Basic programs.
Topics & Concepts
Computer scienceProgramming languageFortranThird-generation programming languageJavaComputer programmingSoftware engineeringProcedural programmingObject-oriented programmingSecond-generation programming languageMathematics educationProgramming paradigmFifth-generation programming languageInductive programmingMathematicsExperimental Learning in EngineeringDistributed and Parallel Computing SystemsTeaching and Learning Programming