Write pseudocode to add one increment of time DELTAT for eac
Write pseudocode to add one increment of time DELTA_T for each cycle to get a new value of TOTAL for each cycle, until TOTAL reaches P*DELTA_T, where P is a whole number representing the number of cycles. Let your initial value of TIME be 0. DELTAJT and P are INPUT values provided by the user.
Solution
Below is the PSEUDOCODE for the same
1. Read DELTA_T and P
2. Intialize TOTAL=0 and TIME= 0;
3. Calculate MUL = P* DELTA_T
4. TIME = TIME + 1 and TOTAL= TOTAL+ DELTA_T
5. if TOTAL < MUL goto 4 else goto 6
6. STOP
