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. DELTA_T and P are INPUT values provided by the user.

Solution

1. Read DELTA_T and P
2. Intialize TIME= 0 and TOTAL=0;
3. Calculate MUL = P* DELTA_T
4. TOTAL= TOTAL+ DELTA_T and TIME = TIME + 1
5. if TOTAL < MUL goto 4 else goto 6
6. STOP

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 who

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site