【Definition】An algorithm is a finite set of instructions that, if followed, accomplishes a particular task. In addition, all algorithms must satisfy the following criteria: (1) Input There are zero or more quantities that are externally supplied
SUBROUTINE NAMEAGE(NAME, NLEN, AGE, TEMP) CHARACTER*(*)NAME 工 NTEGER NLEN,AGE REAL TEMP WRITE(6, 1000) NAME(1: NLEN), AGE, TEMP 1000 FORMAT (IX, 'Hello,A,, who is, I2 ears old, has a temperature of RETURN
1 If the voltage across a 5F capacitor is 2te -V, find the current and the power 2 In 5s, the voltage across a 40mF capacitor changes from 160v to 220V. Calculating the average current through the capacitor