adinata15 / pe

0 stars 0 forks source link

Extension for loop area to include resetPowerUsage #10

Open adinata15 opened 3 years ago

adinata15 commented 3 years ago

image.png

Is the resetPower function supposed to be inside of the loop also? Since every occurance of resetPowerUsage() calls resetPower().

nus-pe-bot commented 3 years ago

Team's Response

Based on the code, resetPowerUsage() was calling the function once within Appliance class. Thus, the resetPower() should not be part of the loop, it was at a seperated place.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: image.png

Eventhough esetPowerUsage() was calling the function resetPower() once, this happens for each of the appliances. Hence, should be inside the loop.