Algorithms

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 43
Easy

A climate scientist writes a computer program to calculate the average daily rainfall over a year. The program executes successfully to the end without any warnings or crashes, but it outputs a negative value for the average rainfall because a subtraction operator was used instead of an addition operator in the summation loop.

State the type of programming error that is present in this program.

[1]

Algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Algorithms